最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

When further developing my VS Code extension, should I disable or uninstall the installed version? - Stack Overflow

programmeradmin1浏览0评论

I'm new to working on VS Code extensions. I have my first extension working in JavaScript and published it to the Marketplace. Now I want to work on improving it.

But when I test it with F5 is the version I'm trying to test guaranteed to override the installed one?

And if I disable the installed one, does it do it in such a way that both the installed one and the one I'm working are both detected as disabled?

Is it better then just to uninstall while I'm working on it?

In short, what's the way to make sure there's no clash between your old version and testing version when working on your own VS Code extension in VS Code?

Google surprisingly doesn't find previous discussion of this for me. I have also tried adding a vscode.window.showInformationMessage and a console.log in various parts of the code but I don't see them. Not in the "output" or the "debug console" or either the editor I'm working in, or the one spawned for testing.

I'm actually trying to convert the extension from .js to .ts and I've tried F5 with the compiled .js or the .ts source in the editor. It seems to make no difference.

I'm new to working on VS Code extensions. I have my first extension working in JavaScript and published it to the Marketplace. Now I want to work on improving it.

But when I test it with F5 is the version I'm trying to test guaranteed to override the installed one?

And if I disable the installed one, does it do it in such a way that both the installed one and the one I'm working are both detected as disabled?

Is it better then just to uninstall while I'm working on it?

In short, what's the way to make sure there's no clash between your old version and testing version when working on your own VS Code extension in VS Code?

Google surprisingly doesn't find previous discussion of this for me. I have also tried adding a vscode.window.showInformationMessage and a console.log in various parts of the code but I don't see them. Not in the "output" or the "debug console" or either the editor I'm working in, or the one spawned for testing.

I'm actually trying to convert the extension from .js to .ts and I've tried F5 with the compiled .js or the .ts source in the editor. It seems to make no difference.

Share Improve this question asked Jan 18 at 8:58 hippietrailhippietrail 17k21 gold badges109 silver badges179 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

There's no generic answer to your question, since there can be many reasons why multiple versions could clash (e.g. when they use the same files or databases), but in general there's no problem developing your new version, while the old one is installed, because VS Code opens a development host with your new version when you start debugging.

发布评论

评论列表(0)

  1. 暂无评论