vscode-extensions

How to focus a custom view when writing a VS Code extension?

左心房为你撑大大i 提交于 2021-01-27 07:27:40
问题 I need help with my VS Code extension. I've written a custom view which works just fine, however I'd like to activate / focus / bring into view that view by using a keyboard shortcut or a context menu command. I am unable to find how to use the VS code API to achieve that. context.subscriptions.push(vscode.commands.registerCommand('extensionId.showView', () => { // how to do that? })); I know this can be done, because one can display the file explorer by using this code snppet: vscode

How to focus a custom view when writing a VS Code extension?

和自甴很熟 提交于 2021-01-27 07:24:16
问题 I need help with my VS Code extension. I've written a custom view which works just fine, however I'd like to activate / focus / bring into view that view by using a keyboard shortcut or a context menu command. I am unable to find how to use the VS code API to achieve that. context.subscriptions.push(vscode.commands.registerCommand('extensionId.showView', () => { // how to do that? })); I know this can be done, because one can display the file explorer by using this code snppet: vscode

VSCode terminal process command failed to launch

时光怂恿深爱的人放手 提交于 2021-01-27 05:36:30
问题 I am trying out the Hello World sample extension. But when I run the extension from the 'Run Extension' task. It gives the following error: The terminal process command '/bin/zsh -c 'npm run watch'' failed to launch (exit code: 127) But I am able to run the above command from terminal without any errors. 回答1: Just found this https://github.com/microsoft/vscode/issues/76542 For me in OSX apparently is an issue when opening code from the terminal with code . and can be fixed by checking in

How to localise VSCode extension

谁说我不能喝 提交于 2021-01-01 03:44:18
问题 I wrote a VS Code extension to support printing. Since all the recent issues have been concerned with issues relating to foreign character sets, it seems like I should support languages other than English. But I can't find anything in on localisation in the VS Code API documentation. There's a section on languages but that's about parsing and syntax colouring etc for computer languages. Is there any support or at least convention regarding localisation of VS Code extensions? Thanks to Gama11

How to localise VSCode extension

喜欢而已 提交于 2021-01-01 03:42:25
问题 I wrote a VS Code extension to support printing. Since all the recent issues have been concerned with issues relating to foreign character sets, it seems like I should support languages other than English. But I can't find anything in on localisation in the VS Code API documentation. There's a section on languages but that's about parsing and syntax colouring etc for computer languages. Is there any support or at least convention regarding localisation of VS Code extensions? Thanks to Gama11

How to localise VSCode extension

隐身守侯 提交于 2021-01-01 03:38:41
问题 I wrote a VS Code extension to support printing. Since all the recent issues have been concerned with issues relating to foreign character sets, it seems like I should support languages other than English. But I can't find anything in on localisation in the VS Code API documentation. There's a section on languages but that's about parsing and syntax colouring etc for computer languages. Is there any support or at least convention regarding localisation of VS Code extensions? Thanks to Gama11

How to localise VSCode extension

梦想与她 提交于 2021-01-01 03:36:16
问题 I wrote a VS Code extension to support printing. Since all the recent issues have been concerned with issues relating to foreign character sets, it seems like I should support languages other than English. But I can't find anything in on localisation in the VS Code API documentation. There's a section on languages but that's about parsing and syntax colouring etc for computer languages. Is there any support or at least convention regarding localisation of VS Code extensions? Thanks to Gama11

VS code CSS class selector not found with angular and bootstrap 5 beta

断了今生、忘了曾经 提交于 2020-12-29 03:56:53
问题 I'm using bootstrap 5 with angular, and I add style and script to angular.json but the problem in VS Code It does not recognize the bootstrap classes Thanks 回答1: Uninstall this extension named "HTML CSS Support" and then reload. It worked for me, I hope it would work for you as well. 回答2: Install this extension https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css Then in your .vscode/settings.json: { "css.styleSheets": [ "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0beta1

VS code CSS class selector not found with angular and bootstrap 5 beta

假装没事ソ 提交于 2020-12-29 03:56:09
问题 I'm using bootstrap 5 with angular, and I add style and script to angular.json but the problem in VS Code It does not recognize the bootstrap classes Thanks 回答1: Uninstall this extension named "HTML CSS Support" and then reload. It worked for me, I hope it would work for you as well. 回答2: Install this extension https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css Then in your .vscode/settings.json: { "css.styleSheets": [ "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0beta1

Evaluating Environment Variables in VS Code Extension

五迷三道 提交于 2020-12-13 18:52:37
问题 I'm developing an extension in VS Code to add language support for OpenSCAD (Script-based 3D modeling program). Currently, I have been working on a way to open / preview a file in OpenSCAD from VS Code, which I have been able to do successfully using my own preview manager. My issue is that I want to add configurable naming formats when exporting an OpenSCAD file that use environment variables similar to those used in the tasks.json file. More info can be found here: https://code.visualstudio