Questions tagged [vscode-extensions]

Use this tag for questions about the Visual Studio Code Extension API and extension development. Questions only about extension usage should use the [visual-studio-code] tag instead.

Questions about the Visual Studio Code (VSCode) Extension API and extension development. Questions only about extension usage should use the [visual-studio-code] tag instead.

If you have a question about extension development that isn't a good fit for the Stack Exchange model, use the VS Code Dev Community Slack channel where extension developers help each other out and you can ask questions and find support.

4227 questions
1
vote
1 answer

Error "Element with id .. already registered" and no SQL connections in the list of VSCode plugin SQLTools

I started learning SQL in VSCode via the SQLTools plugin. I tried to connect to MySQL database sakila via the "Add New Connection" button of the SQLTools plugin. On the first 2 tries, I pushed the "Save Connection" button before the connection was…
GegznaV
  • 4,938
  • 4
  • 23
  • 43
1
vote
0 answers

vscode-jsonrpc example

I'm trying to use vscode-jsonrpc to communicate between a VSCode extension and a Json-RPC server running in a child process. The minimal code I have so far: import * as rpc from 'vscode-jsonrpc/node'; // this is actually inside a VSCode command…
1
vote
1 answer

How to add a language to vscode web without using yeoman?

I use github.dev for a lot of my programming work because I don't like downloading programs. As such, I would not like to download either the vscode app or yeoman. Can I make my own extension inside github.dev (perhaps using the .vscode folder?)?…
AdamRaichu
  • 149
  • 1
  • 13
1
vote
1 answer

VSCode API Extension get URI of context menu

I am building a VSCode-Extension and I managed to call my function via 'right-click' on the files. This is my package.json: "main": "./extension.js", "contributes": { "commands": [{ "command": "flutter-localization-generator.create", …
Chris
  • 1,828
  • 6
  • 40
  • 108
1
vote
1 answer

How to use built-in icons for language contributions in a VSCode Extension?

I would like to use one of those built-in Icons at https://code.visualstudio.com/api/references/icons-in-labels package.json ... "contributes": { "languages": [{ ... "icon": { "dark": "$(account)", "light":…
user20282571
1
vote
0 answers

How to hide import references while peeking all references of a variable/class?

My question is that how can I hide all import references while peeking references of a variable in VSCode? For example how can I hide the import statement on the attached picture?
1
vote
1 answer

vscode LSP extension, how to get a custom action to appear in the dropdown menu?

I am writing an LSP server and vscode client and there is a server-side CodeAction that I wish the user to be able to invoke at any time when their cursor is in a text file. I can see how I can define custom codeactions on the server side, but I…
1
vote
0 answers

Neovim remap for vscode for commenting doesn't work

This is my current code map z, call VSCodeNotifyRange('editor.action.commentLine', getline('.'), getline('.') + v:count1, 1) Usage of VSCodeNotifyRange used as explained in the Neovim extension's readme: What I'm trying to do: I pass a…
Axlefublr
  • 13
  • 3
1
vote
0 answers

Apply custom colors to only specific output channel

How can I add custom colors to only output channel created by my extension? Currently I have this package.json { "name": "mytestextension-output-colors", "displayName": "My test extension - output colors", "version": "0.0.1", "publisher":…
vanowm
  • 9,466
  • 2
  • 21
  • 37
1
vote
0 answers

Extension Five Server Ver 0.1.9 of Microsoft Studio Code Ver 17.2.1

I have a problem with configuring the FIVE SERVER Ver 0.1.9 extension in Microsoft Visual Studio Code Ver 1.72.1. I want to set the browser on CHROME incognito (private mode) I tried adding the following line "fiveServer.browser": ["chrome…
1
vote
0 answers

ts-loader not working with two entry points in webpack.config.json

Description I have a vscode extension project. The project contains two complete separate apps, one for language client, the other for language server. The project structure is as follows: ├── client │  ├── package.json │  ├── package-lock.json │ …
1
vote
0 answers

using miktex portable INSTEAD of system wide installation with VSCode

I would like to create an USB-Stick you can put into any windows with VSCode, miktex (and perl) portable to work on my thesis with any win device. VSCode and perl are working just fine and miktex portable also starts. When trying to compile my…
1
vote
1 answer

Can't install release version of 'ms-vscode.remote-explorer' extension because it has no release version

I'm trying to install the extension pack for devcontainer development called "Remote Development", ms-vscode-remote.vscode-remote-extension pack. I get the following message: [Window Title] Visual Studio Code [Content] Can't install release…
Burt_Harris
  • 6,415
  • 2
  • 29
  • 64
1
vote
0 answers

VS Code is forcing to run go mod tidy

Error loading workspace: err: exit status 1: stderr: go: updates to go.mod needed, disabled by -mod=readonly; to update it: go mod tidy : packages.Load error go mod tidy upgrades my package version which is breaking my code base and I don't want to…
1
vote
1 answer

fast-glob not returning expected files

I'm developing a vscode extension, and I want to find all files under the current workspace folder, that match the ".ts" extension but exclude node_modules I'm using fast-glob but is not retuning all the expected ".ts" files import * as vscode from…
Mauricio Gracia Gutierrez
  • 10,288
  • 6
  • 68
  • 99