VSCode: [js] 这个构造函数可以被转换成一个 class 声明
VSCode: [js] This constructor function may be converted to a class declaration
我最近更新到 Visual Studio 代码版本 1.23.0,我开始看到这个代码提示:
[js] This constructor function may be converted to a class declaration.
var _myFunctionName: () => void
如何关闭此提示?目前还没找到合适的设置。
来自March 2018 release notes: suggested code actions
Suggestion Code Actions are enabled by default in JavaScript and
TypeScript. You can disable them by setting:
"typescript.suggestionActions.enabled": false
or
"javascript.suggestionActions.enabled": false
我最近更新到 Visual Studio 代码版本 1.23.0,我开始看到这个代码提示:
[js] This constructor function may be converted to a class declaration.
var _myFunctionName: () => void
如何关闭此提示?目前还没找到合适的设置。
来自March 2018 release notes: suggested code actions
Suggestion Code Actions are enabled by default in JavaScript and TypeScript. You can disable them by setting: "
typescript.suggestionActions.enabled": false
or "javascript.suggestionActions.enabled": false