Disable wordBasedSuggestions from an Extension

。_饼干妹妹 提交于 2019-12-20 02:06:34

问题


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 disable editor.wordBasedSuggestions but are there a way to this from an extension?


回答1:


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.



来源:https://stackoverflow.com/questions/40550536/disable-wordbasedsuggestions-from-an-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!