当前位置: 首页>>代码示例>>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;未经允许,请勿转载。