当前位置: 博客 /  IDE  / VS Code Warning: Experimental Support for Decorators Is a feature...

VS Code Warning: Experimental Support for Decorators Is a feature...

There is a warning message when I open a project folder in Visual Studio Code (VS Code), see the following screenshot:
Experimental support

so I need to set the “experimentalDecorators” option to remove this warning information. Here are my steps:

Step 1

Create a new file named “jsconfig.json“ in the root directory of the project.

Step 2

Copy the following code to this file and save.

{
    "compilerOptions": {
        "experimentalDecorators": true
    }
}

Step 3

Restart VS Code.

- END -