-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Syntax highlighting/autocomplete broken for .vue files #1107
Comments
Same here, for example the autocomplete for javascript in .vue in <script> tag is not working, yet it work good in .js files. in both vscode and code-insiders |
Hey guys, same issue here. Somehow in .vue file inside script tag |
The syntax highlighting is working for me. Did you install any other Vue extensions? For importing with .vue suffix, see FAQ. |
Hey @octref thanks for the quick response. So actually it turned out it was due to the fact that I opened my vscode in the parent directory of my SPA app :) I'm assuming some configuration files were not loaded correctly although the AutoComplete for the imports work (I already have a jsconfig in the root). Not sure if we need to account for that in general, but I think it'd be helpful to come up with a documented workaround and/or highlight it in the FAQ. All the dotnet core apps have a solution folder that groups your projects together so I'm guessing I wasn't the only one who messed this up. This is my first vue project however I've had several React front end projects set up and never similar issues. Let me know what you think, Rob |
@robertracz I have the same problem as you and others, and I also was in a parent directory (vue app in one subfolder, backend node app in another) but reopening vscode in the vue app folder did not fix the issue for me |
@robertracz That is tracked in #815. |
@kimini507 Please open new issue with full file. |
Info
Problem
1、none highlight for data/components/methods/props...
![image](https://user-images.githubusercontent.com/4887816/53077172-691f4180-352c-11e9-802f-db51b8aa7a4f.png)
2、import component from *.vue,complete with autocomplete...
![image](https://user-images.githubusercontent.com/4887816/53077470-067a7580-352d-11e9-8d69-3238eae412b6.png)
if import component with none suffix,none autocomplete...
![image](https://user-images.githubusercontent.com/4887816/53077497-14c89180-352d-11e9-9232-94cfb1e31fc9.png)
Reproducible Case
The text was updated successfully, but these errors were encountered: