-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
experimentalDecorators in tsconfig.json stops working for new files #38201
Comments
Please try running the |
@mjbvz excuse me, how should I do it? :) |
@mjbvz well, I did it and got an info toast with |
What does your project structure look like? Where is the tsconfig and where is the file in relation to it? |
@mjbvz The file is in |
Are you working in a javascript or jsx file? |
@mjbvz jsx |
Can you try renaming your {
"compilerOptions": {
"target": "es6",
"jsx": "react",
"experimentalDecorators": true
},
"include": ["./src/**/*"]
} |
@mjbvz I did it. After this I created a new folder named
The problem still exist with the same behaviour. |
I encountered this issue on a new file also. Typescript: Go to Project Configuration returns Other files in the project do not exhibit the same behaviour and the project config command takes me to tsconfig as expected. Edit: Changing the typescript version back and forth between workspace & vscode, reloads something that fixes. |
Can you make sure the Also, please collect the TypeScript server logs to see if that has any leads:
Look for errors or stack traces. If you are able to share the logs, I can also look through them to see if anything stands out
|
@mjbvz I did all of your recomendations. At the end of day I created folder
|
Thanks. I believe this is a duplicate of microsoft/TypeScript#20023 . As a workaround, try downgrading your workspace to TS 2.5 Closing as upstream |
(22 theme extensions excluded)
I have a file tsconfig.json in my project folder with next content:
When I create a file and add a row with decorator (e.g.
@observable field
), VSCode underlines it with warning about experimental support of decorators. When I restart VSCode, the problem disappears until I create a new file.The text was updated successfully, but these errors were encountered: