visual-studio-code - 如何在Visual Studio Code中启用语言服务器

在Language Server Extension Guide中说:

'If you are using vscode-languageclient to implement the client, you can specify a setting [langId].trace.server that instructs the Client to log communications between Language Client / Server to a channel of the Language Client's name.

For lsp-sample, you can set this setting: "languageServerExample.trace.server": "verbose". Now head to the channel "Language Server Example". You should see the logs:


在VS Code中在哪里以及如何确切指定此设置?

最佳答案

我为php语言服务器所做的工作是将"log": true添加到launch.json文件中,然后当您按f5键开始调试时,编译器将尝试显示日志。但是,从我从您在问题中共享的文档中了解的内容来看,您可以按照以下说明进行操作(我不保证这将起作用,正如我提到的,这是您在问题中共享的说明):

  • 按Ctrl +逗号。
  • 搜索“跟踪服务器”。
  • 现在应该列出语言。如果您使用的是最新版本的vscode,请在所需的任何语言服务器中选择verbose。
  • 如果您使用的是vscode的较旧版本,请选择所需语言旁边的铅笔按钮,然后选择“详细”。
  • 关于visual-studio-code - 如何在Visual Studio Code中启用语言服务器的日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52447872/

    相关文章:

    powershell - 如何从 Mediainfo 中获取特定信息

    azure - 如何解压或获取存储在 Azure DevOps Build Piplines 变量组

    .net - 如何检索 SQALE 评级和技术债务信息?

    asp.net-mvc - 带有 Ckeditor 的 MVC2 应用程序“具有潜在危险的 Requ

    macos - Docker Mac 替代 --net=host

    maven - SonarQube 分析警告日志刷新操作(不结束)

    extjs - 商店的监听器功能在网格更新时触发两次

    r - 使用 `colnames` 的数值使用 `dplyr` 的 `mutate_at` 或替代方

    assembly - 在实模式下使用 BIOS 格式化磁盘时出错

    azure - OpenIDConnect Azure 网站托管在 Dynamics CRM Onl