leitwolf

vscode 官方示例插件过时问题

  •  
  •   leitwolf ·
    leitwolf · Sep 24, 2017 · 3785 views
    This topic created in 3161 days ago, the information mentioned may be changed or developed.

    在 vscode 插件开发中使用 language server 时,官方示例中有些地方已过时。

    在 lsp-sample 中,要调试 server 时,在最新版本的 vscode 中并不成功。需要改动两个地方: 1、把 launch.json 中的"protocol": "legacy" 改为 "protocol": "inspector" 2、--debug=6009 改为 --inspect=6009

    原因在于从 1.14 版本开始,node debug 已将 legacy 模式改为 inspector 模式,相关参数也有所改变。

    详情见: https://code.visualstudio.com/updates/v1_14#_node-debugging

    Supplement 1  ·  Sep 24, 2017
    2、client/extension.ts 中 --debug=6009 改为 --inspect=6009
    2 replies    2017-09-24 20:39:47 +08:00
    noe132
        1
    noe132  
       Sep 24, 2017
    我选择 atom.....
    leitwolf
        2
    leitwolf  
    OP
       Sep 24, 2017
    @noe132 这只是插件开发相关。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1289 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 23:39 · PVG 07:39 · LAX 16:39 · JFK 19:39
    ♥ Do have faith in what you're doing.