本文整理匯總了TypeScript中vscode-languageclient.LanguageClient.stop方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript LanguageClient.stop方法的具體用法?TypeScript LanguageClient.stop怎麽用?TypeScript LanguageClient.stop使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類vscode-languageclient.LanguageClient
的用法示例。
在下文中一共展示了LanguageClient.stop方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: configChanged
function configChanged(params) {
let newSettings = settings.loadSettings();
telemetry.onDidChangeConfiguration(newSettings);
juliaexepath.onDidChangeConfiguration(newSettings);
repl.onDidChangeConfiguration(newSettings);
weave.onDidChangeConfiguration(newSettings);
tasks.onDidChangeConfiguration(newSettings);
smallcommands.onDidChangeConfiguration(newSettings);
packagepath.onDidChangeConfiguration(newSettings);
openpackagedirectory.onDidChangeConfiguration(newSettings);
jlpkgenv.onDidChangeConfiguration(newSettings);
let need_to_restart_server = false;
if (g_settings.juliaExePath != newSettings.juliaExePath) {
need_to_restart_server = true;
}
if (need_to_restart_server) {
if (g_languageClient != null) {
g_languageClient.stop();
setLanguageClient(null);
}
startLanguageServer();
}
}
示例2: deactivate
export function deactivate(): void {
if (languageServerClient) {
// Close the language server client
languageServerClient.stop();
languageServerClient = undefined;
}
}
示例3: deactivate
export function deactivate(): Thenable<void> {
if (!client) {
return Promise.resolve();
}
languageServerConfiguration.dispose();
return client.stop();
}
示例4: deactivate
export function deactivate(): void {
if (languageServerClient) {
// Close the language server client
languageServerClient.stop();
languageServerClient = undefined;
}
// Kill the child process after some time just in case
setTimeout(() => {}, 3000);
}
示例5: deactivate
export function deactivate(): Thenable<void> {
let promises: Thenable<void>[] = [];
if (defaultClient) {
promises.push(defaultClient.stop());
}
for (let client of clients.values()) {
promises.push(client.stop());
}
return Promise.all(promises).then(() => undefined);
}
示例6: stop
private async stop(): Promise<void> {
this.logger.debug('stop');
this.statusBarItem.disable();
this.statusBarItem.setText('Stopping');
if (this.languageClient.needsStop()) {
await this.languageClient.stop();
}
this.languageClient.outputChannel.dispose();
this.statusBarItem.setText('Stopped');
}
示例7:
(exitCode) => {
languageServerClient.stop();
console.log("powershell.exe terminated with exit code: " + exitCode);
powerShellLogWriter.write("\r\npowershell.exe terminated with exit code: " + exitCode + "\r\n");
});
示例8: deactivate
export function deactivate(): Thenable<void> {
if (!client) {
return undefined;
}
return client.stop();
}
示例9: deactivate
export function deactivate(): Thenable<void> {
return client ? client.stop() : undefined;
}