當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript LanguageClient.stop方法代碼示例

本文整理匯總了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();
    }
}
開發者ID:JuliaEditorSupport,項目名稱:julia-vscode,代碼行數:28,代碼來源:extension.ts

示例2: deactivate

export function deactivate(): void {
    if (languageServerClient) {
        // Close the language server client
        languageServerClient.stop();
        languageServerClient = undefined;
    }
}
開發者ID:TheRockStarDBA,項目名稱:vscode-powershell,代碼行數:7,代碼來源:main.ts

示例3: deactivate

export function deactivate(): Thenable<void> {
  if (!client) {
    return Promise.resolve();
  }
  languageServerConfiguration.dispose();
  return client.stop();
}
開發者ID:christianvoigt,項目名稱:argdown,代碼行數:7,代碼來源:extension.ts

示例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);
}
開發者ID:Chiliyago,項目名稱:vscode-powershell,代碼行數:10,代碼來源:main.ts

示例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);
}
開發者ID:voodoos,項目名稱:vscode-extension-samples,代碼行數:10,代碼來源:extension.ts

示例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');
 }
開發者ID:KalitaAlexey,項目名稱:RustyCode,代碼行數:10,代碼來源:manager.ts

示例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");
 });
開發者ID:Chiliyago,項目名稱:vscode-powershell,代碼行數:5,代碼來源:main.ts

示例8: deactivate

export function deactivate(): Thenable<void> {
	if (!client) {
		return undefined;
	}
	return client.stop();
}
開發者ID:voodoos,項目名稱:vscode-extension-samples,代碼行數:6,代碼來源:extension.ts

示例9: deactivate

export function deactivate(): Thenable<void> {
	return client ? client.stop() : undefined;
}
開發者ID:rubyide,項目名稱:vscode-ruby,代碼行數:3,代碼來源:extension.ts


注:本文中的vscode-languageclient.LanguageClient.stop方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。