Arnaud Leyder
Arnaud Leyder

Reputation: 7002

VSCode: [js] This constructor function may be converted to a class declaration

I have updated to Visual Studio Code version 1.23.0 recently and I am starting to see this code hint:

[js] This constructor function may be converted to a class declaration.
var _myFunctionName: () => void

How can I turn this hint off? I have not found the right setting so far.

Upvotes: 8

Views: 21981

Answers (1)

Mark
Mark

Reputation: 181060

From the 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

Upvotes: 9

Related Questions