-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Vetur, VSCode and TypeScript issue #68343
Comments
Yeah, I need to revive vuejs/vetur#385 (comment). @mjbvz Do you do any special handling for |
The TSServe finds tsconfigs in sub directories and correctly handles when there are multiple tsconfigs in a project. However we do not pick up tsconfigs that are not named |
I took a look of TS extension, seems you are calling |
I enabled |
About 8 months ago I made an issue on the Vetur repo and on StackOverflow that causes an error and degrades the experience in VSCode when working with Vue and still no fix and the workarounds don't work for everyone.
As far as it seems the issue is when you open the project from a directory that has no
tsconfig.json
then TypeScript will complain about it and will result the following message:VSCode then will add red squiggles and mark the directories in red which makes the experience really unpleasant, one way to "solve" it is open the project from the location of the
tsconfig.json
but then you need to have two instances of VSCode one to work on.vue
files and another to work on other parts of the project and as I mentioned before there are other workarounds provided on the Vetur repo but they don't work for everyone due to different setups and whatnot.This might not be a VSCode problem per se but because we don't really know where it should be solved and what's the best approach to take here I decided to post this here, hoping that the VSCode team would know or at least shed some light on it.
p.s. It doesn't seems to happen in Visual Studio 2017 but then I don't need to install anything there for it to work as VS2017 support Vue out of the box.
The text was updated successfully, but these errors were encountered: