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
0 answers

How to access highlighted text with VSCode extension API?

There was an almost identically worded question asked to this here, but when they said highlighted, they actually meant selected. What I want is highlighted text, as shown in both div tags here: . I've read through the docs but I can't find this…
1
vote
0 answers

VScode terminal is not working with remote development extension

I have installed remote development extension on vscode. After successfully connecting to remote server, I can browse the folders and files without any issue. However, I open my vscode terminal and it has no text on it. I can't type in any command…
1
vote
2 answers

How to continue debug VSCode extension when extension open new windows?

I press F5 to debug a VSCode extension and VSCode will open a new window that will contain the extension. The extension will open a new VSCode window to open a specific project. But this new VSCode window didn't contain the extension and I can't…
Pandy
  • 138
  • 1
  • 4
1
vote
0 answers

In vscode extension, is there a way to watch file changes in node_modules without change files.watcherExclude?

I'm writing a vscode extension, and I want to watch specific file changes in node_modules according to the extensions's configuration, but I don't want user to change their default files.watcherExclude. What should I do? For example, considering…
Arichy
  • 93
  • 1
  • 2
  • 7
1
vote
1 answer

How to avoid opening a QuickInput when choosing files to compare in a vscode extension?

In my case I want to compare two files. But I don't want the user to select the File in the QuickInput form, i want to choose this directly for him. vscode.commands.executeCommand("workbench.files.action.compareFileWith", filePath) This results…
1
vote
1 answer

Autocorrect/complete extention for React Styled Components VScode

I'm not getting autocomplete or suggestions on my React styled components. Autocomplete works well otherwise except when I start writing the css in ``.
1
vote
2 answers

Sticky Scroll with custom language

In vscode, the new Sticky scroll doesn't seem to work out of the box with my custom language extension. Is there some interface my language needs to implement in order to support it?
MaddawgX9
  • 131
  • 8
1
vote
0 answers

vs code auto complete deletes word after cursor in C#

if the cursor is behind a word and i start typing the auto complete doesn't start and i have to manually press ctrl+space to make it show, and when i press tab or enter to auto complete it the word after gets deleted As a person who likes to code…
1
vote
0 answers

assigning a variable to an object resulting a different value

so, I'm using the notifications api to debug my extension for the status bar and I have this code this.statusBarItem.backgroundColor = bgc; n.window.showInformationMessage(this.statusBarItem.backgroundColor + ''); n.window.showInformationMessage(bgc…
Natasquare
  • 21
  • 4
1
vote
0 answers
1
vote
0 answers

VSCode Extension "Live Server" and nginx proxy

I'm wondering if anyone knows what the correct configuration is for getting the VSCode extension "Live Server" working with Nginx proxy. I want to proxy the extension from a subdirectory "/live". The initial server shows up correctly via ex:…
1
vote
2 answers

VS Code Branching Snippet Completion Items Extension

I am attempting to add Completion snippets to an extension I'm writing based on the completions sample ( https://github.com/microsoft/vscode-extension-samples/tree/main/completions-sample ). I would like to have it branch complete. In my extension,…
1
vote
1 answer

Not able to add new azure function in VSCode

I opened my project repo as usual , then I noticed that I can't add new azure function the + icon disappeared: I don't know how to get it back ?
1
vote
0 answers

Visual Studio Code ssl connection to MySQL Server

I've tried every available package, and none will allow me to connect to the campus MySQL server which requires ssl. However, I can connect using terminal and the mysql command, and I can also connect using MySQLWorkbench. I did not specify any…
crawdady
  • 137
  • 1
  • 6
1
vote
0 answers

mypy daemon keeps crashing

I have been using mypy and the mypy vs code extension for a while but recently I started to have an issue with the mypy daemon. Below the traceback of the error : Traceback (most recent call last): File "mypy\dmypy_server.py", line 230, in serve …
vianmixt
  • 703
  • 1
  • 6
  • 17