本文整理汇总了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;
}