Closed cooldevdotcodes closed 1 month ago
@cooldevdotcodes May I know if you have installed another Vue 3 snippet extension? Because it works fine for me.
@zhaolinlau I've just checked it again. It works properly but it requires to restart VS Code or reload the VS Code window to take the effect.
@cooldevdotcodes for me, I don't need to restart lol
Sadly it doesn't work for me :-( Actually it doesn't work with all Nuxtr's settings, not just the script default language setting.
@cooldevdotcodes hmm... try using my PR one nuxtr-vscode-0.2.16.vsix.zip
@zhaolinlau I've just installed the extension from your ZIP file and it works perfectly.
BTW, vueBase snippet is missing in this one. I can only see vueBaseLayout snippet.
@cooldevdotcodes I think you were using the older version of nuxtr? Because I didn't change the snippet things, I only added a new functionality which is default language for nuxt files
Nope, I installed Nuxtr VSIX from your ZIP file. In your screenshot (https://github.com/nuxtrdev/nuxtr-vscode/issues/156#issuecomment-2346924328) I also can only see vueBaseLayout.
I mean even I install the original one from vscode market, it also appears the vueBaseLayout only
Could you try uninstalling my version and reinstall the original one from vscode extension market?
@cooldevdotcodes the vueBase snippet got removed in 0.2.16 version of nuxtr
@zhaolinlau I tried to install v0.2.16 from VSCode extension market and Nuxtr default language settings doesn't work. Check my video shot https://drive.google.com/file/d/1fCvRCLP__A2SHJLvEBsjfKmwSyfyUtZ6/view?usp=sharing
@cooldevdotcodes Yes, because the feature is not existed in v0.2.16, #159 this is my pull request
If the author/maintainer of this repo merge my pull request #159 , then the feature will only be added in next release
@zhaolinlau I tried to install v0.2.16 from VSCode extension market and Nuxtr default language settings doesn't work. Check my video shot https://drive.google.com/file/d/1fCvRCLP__A2SHJLvEBsjfKmwSyfyUtZ6/view?usp=sharing
That's a vue file, u should change this setting
Hello @cooldevdotcodes, @zhaolinlau
I feel bad to keep issues open but been having issues to respond sooner @cooldevdotcodes :)
Your original issue is clear, and will make sure next release has the issue fixed.
vueBase
wasn't removed from Nuxtr or the PR @zhaolinlau made. There are changes regarding extension API and snippets, and I believe more snippets aren't working as expected.
@cooldevdotcodes As much happy I am to see the PR with a major change, it's always better to check the code and build the extension locally yourself after checking these changes instead of installing the VSIX. Please, use build
and package
script commands for this.
@adhamfarrag Because my PR is based on your latest commit, and the vueBase
snippet is got removed from your latest commit
@zhaolinlau Is there any reason why you remove vueBase
snippet? I see it more popular than vueBaseLayout
.
The code block is gone @adhamfarrag
@zhaolinlau Is there any reason why you remove
vueBase
snippet? I see it more popular thanvueBaseLayout
.
I didn't remove it lol, it's got removed by you
LOL, I'm not @adhamfarrag :-D
LOL, I'm not @adhamfarrag :-D
My bad XD, got removed by @adhamfarrag
@adhamfarrag Is there any reason why you remove vueBase
snippet? I see it more popular than vueBaseLayout
.
Hello @cooldevdotcodes, I didn't mean to delete it. :) Reopening the issue as I'll work on both issues.
Thanks for reporting this issue @cooldevdotcodes❤️ Pushed a fix and will be added to next release. :)
Environment
Build Modules: -
What went wrong?
I set the default language for script tag to JavaScript as below
"nuxtr.vueFiles.script.defaultLanguage": "js"
but vueBase snippet still set language to TypeScript
How to reproduce it?
"nuxtr.vueFiles.script.defaultLanguage": "js"