vscode-extensions

VSCode - Open multiple files from tree view and quick open

◇◆丶佛笑我妖孽 提交于 2019-12-25 10:25:15
问题 How to select and open multiple files from tree view (File Explorer) and Quick open in Visual Studio Code? I'm looking for something by which I can shift-up/down or shift-mouseclick to select multiple files and open them on clicking enter. Is there a setting or extension to enable this? 回答1: v1.20 (Feb., 2018) adds some of this functionality. You can now multi-select files https://code.visualstudio.com/updates/v1_20#_multi-select-in-the-explorer and open them in a new editor group to the side

How to execute code when user uninstalls your VSCode Extension?

浪子不回头ぞ 提交于 2019-12-25 00:21:07
问题 I read the entire visual studio code extensibility documentation and didn't find something like that. I wanna do a clean up, not when extension is deactivated but when it is uninstalled. I also try using the "uninstall" and "postUninstall" scripts fields from package.json but it didn't execute the scripts. Is this even possible? 回答1: This was just added in v1.21: Extension uninstall hook If your extension has some clean ups to be done when it is uninstalled from VS Code, you can now do that

How to publish a LSP language server on VSCODE as we do extension

拟墨画扇 提交于 2019-12-24 09:46:51
问题 Have been through official site, the whole process is very well documented for publishing extension : vscode publish extension My doubt is regarding publish Language server(LSP) in vscode as file structure for LSP is different from that of Extension i.e extension just have Client but LSP has both Client and server directory separately as in LSP Code and Extension code. Do i need to run vsce publish separately in client and server directory ? Have been through various answers in stackoverflow

How to publish a LSP language server on VSCODE as we do extension

余生长醉 提交于 2019-12-24 09:42:08
问题 Have been through official site, the whole process is very well documented for publishing extension : vscode publish extension My doubt is regarding publish Language server(LSP) in vscode as file structure for LSP is different from that of Extension i.e extension just have Client but LSP has both Client and server directory separately as in LSP Code and Extension code. Do i need to run vsce publish separately in client and server directory ? Have been through various answers in stackoverflow

Using default VS Code icons on an extension

点点圈 提交于 2019-12-24 09:18:06
问题 I am making a VS Code extension for outlining TypeScript code structure. I am wondering how can I use the same icons VS Code uses in intellisense in my custom tree view: 回答1: I don't think there's any way to reference built-in icons, so you would have to include copies of these in your extension. This is what the vscode-code-outline extension does (along with many others). There's a relevant feature request here: [icons] Support to allow re-using VSCode icons in user extensions (#31466) There

How to change publisher name of already published extension?

我们两清 提交于 2019-12-24 08:49:35
问题 I want to change my publisher name in VScode marketplace. How do I do that? 回答1: (Late reply) Did you have a look at this VS Code Github issue? Basically they say they could technically transfer the ownership, but still there are some consequences for your extension users due to a different ID. The other suggested option is to openly create a new extension under the new publisher, and deprecate the former one. Specifically, this is the main comment: We can technically transfer ownership of an

Getting locations of the variable declarations

流过昼夜 提交于 2019-12-24 07:35:19
问题 I am developing an extension which requires me to get the locations of the variable declarations. For example, var x = 5; console.log(x); Does the VS Code API provide functionality like getVariableLocations() which will return the position of the var x = 5; ? 回答1: You can get the document symbols by running 'vscode.executeDocumentSymbolProvider' . Here's an example that executes the command on the active document, and then converts the nested list of symbols (each DocumentSymbol can have

How to access user settings for a snippets extension in VSCode

只谈情不闲聊 提交于 2019-12-24 02:45:34
问题 I am trying to give the option to customise a VS Code Extension with user defined settings (configuration) of their preferred quote style. I have configured it in my package.json : "contributes": { "configuration": { "type": "object", "title": "Jasmine code snippets configuration", "properties": { "jasmineSnippets.quoteStyle": { "type": "string", "enum": [ "'", "\"", "`" ], "default": "'", "description": "Code snippets quote style" } } } }, And can access it in my settings.json like this:

vscode on Windows 10: Activating extension … failed: Module did not self-register

こ雲淡風輕ζ 提交于 2019-12-24 01:39:25
问题 This problem has been brought up a few times and I tried every suggested solution, but nothing helped. What I have is a native module in a VS code extension. This works very well on Linux + Mac, but I cannot get it to load on Windows 10. Every time the extension is activated and tries to load the native module I get this error. What makes this so strange is that the native module works beautifully in a node session (in a Win command line). I checked what NodeJS version Visual Studio Code uses

A proper way of inserting built-in functions into VS Code extension

北城余情 提交于 2019-12-24 01:00:04
问题 Introduction I'm currently developing an application based on Bluegiga BLE-112 module. The module is programmable in BGScript scripting language. However, only editor I found, that has some kind of support for BGScript, is Notepad++, which does not suit my needs. Therefore, I started development of my own extension for Visual Studio Code (one available in the extension market is not working). I already went past through colorizer and error parsing, now I'm creating a part with code