tsvetan-ganev / nativescript-vscode-snippets

NativeScript XML snippets for Visual Studio Code.
MIT License
43 stars 7 forks source link

ns doesn't work with VS Code Version 1.33.0 (1.33.0) #18

Open mspusta78 opened 5 years ago

mspusta78 commented 5 years ago

After the update of VS Code on 4/4 to Version 1.33.0 (1.33.0)

this extension stopped working. Does anyone have any suggestions? Typing "ns" in the XML doesn't bring up any elements options

BobSynfig commented 4 years ago

[Workaround for who wants to use it in recent versions of Codium/VSCode] I wanted to install the extension in my current version of Codium (1.49.1) under Linux but it wasn't recognized. It still works, here is how I did it:

  1. Close Codium/VSCode
  2. Visit the page of the extension in the Marketplace https://marketplace.visualstudio.com/items?itemName=tsvetan-ganev.nativescript-xml-snippets
  3. Download it from "Download Extension" (on the right)
  4. Open a terminal in the folder where you downloaded it
  5. Install it with codium --install-extension ./tsvetan-ganev.nativescript-xml-snippets-1.0.7.vsix (Codium) or code --install-extension ./tsvetan-ganev.nativescript-xml-snippets-1.0.7.vsix (VSCode)
  6. Open any text editor (but avoid Codium/VSCode at the moment ;) )
  7. Browse to ~/.vscode-oss/extensions/tsvetan-ganev.nativescript-xml-snippets-1.0.7/ (Codium) or ~/.vscode/extensions/tsvetan-ganev.nativescript-xml-snippets-1.0.7/ (VSCode)
  8. Edit package.json Replace "engines": { "vscode": "0.10.x" } by "engines": { "vscode": "^1.40.0" } Note: This can be changed in the source code if you want to fork it
  9. Edit .vsixmanifest (it is hidden) Replace <Property Id="Microsoft.VisualStudio.Code.Engine"> Value="0.10.x" /> by <Property Id="Microsoft.VisualStudio.Code.Engine"> Value="^1.40.0" />
  10. Save everything, run Codium/VSCode and enjoy :)