How to use the vscode-languageclient.CloseAction.DoNotRestart function in vscode-languageclient

To help you get started, we’ve selected a few vscode-languageclient examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / vscode-mssql / src / languageservice / serviceclient.ts View on Github external
closed(): CloseAction {
        this.showOnErrorPrompt();

        // we don't retry running the service since crashes leave the extension
        // in a bad, unrecovered state
        return CloseAction.DoNotRestart;
    }
}
github PowerShell / vscode-powershell / src / session.ts View on Github external
closed: () => {
                        // We have our own restart experience
                        return CloseAction.DoNotRestart;
                    },
                },
github microsoft / azuredatastudio-postgresql / src / telemetry.ts View on Github external
closed(): CloseAction {
		this.showOnErrorPrompt();

		// we don't retry running the service since crashes leave the extension
		// in a bad, unrecovered state
		return CloseAction.DoNotRestart;
	}
}
github MaskRay / vscode-ccls / src / cclsErrorHandler.ts View on Github external
public closed(): CloseAction {
    logChan(`ccls server connection was closed`);
    const notifyOnCrash = this.config.get('launch.notifyOnCrash');
    const restart = this.config.get('launch.autoRestart');

    if (notifyOnCrash) {
      window.showInformationMessage(
          restart ? 'ccls has crashed; it has been restarted.' :
                    'ccls has crashed; it has not been restarted.');
    }

    if (restart)
      return CloseAction.Restart;
    return CloseAction.DoNotRestart;
  }
}
github microsoft / vscode-eslint / client / src / extension.ts View on Github external
closed: (): CloseAction => {
				if (serverCalledProcessExit) {
					return CloseAction.DoNotRestart;
				}
				return defaultErrorHandler.closed();
			}
		},
github deepscan / vscode-deepscan / client / src / extension.ts View on Github external
closed: (): CloseAction => {
                if (serverCalledProcessExit) {
                    return CloseAction.DoNotRestart;
                }
                return defaultErrorHandler.closed();
            }
        },
github editor-rs / vscode-rust / src / components / language_client / creator.ts View on Github external
public closed(): CloseAction {
        this.onClosed();

        return CloseAction.DoNotRestart;
    }
}