Disable wordBasedSuggestions from an Extension

后端 未结 1 928
独厮守ぢ
独厮守ぢ 2021-01-19 23:03

I\'m developing an extension for VSCode which is supplying completion items but there are word suggestions among them.

I know you can in your User/Workspace settings

1条回答
  •  一整个雨季
    2021-01-19 23:34

    Yes, extensions can change the default value of settings by contributing configurationDefaults in package.json:

    "contributes": {
        "configurationDefaults": {
            "[lang]": {
                "editor.wordBasedSuggestions": false
            }
        }
    }
    

    Where lang is the ID of the language in question.

    0 讨论(0)
提交回复
热议问题