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
25
votes
8 answers

why is my github copilot not working all of a sudden?

I have been using copilot for a while now, and one fine day on opening VSCode this error appeared. "[ERROR] [default] [2022-04-09T08:38:10.995Z] GitHub Copilot could not connect to server. Extension activation failed: "certificate has expired" I…
Arnish B
  • 251
  • 1
  • 3
  • 3
25
votes
1 answer

Purpose for subscribing a command in vscode extension?

Why does the VSCode Extension tutorial recommend subscribing a registered command to the context.subscriptions? It doesn't seem to be necessary or useful from what I can tell so far. Here's a code snippet from the VSCode extension official…
stuart
  • 1,785
  • 2
  • 26
  • 38
25
votes
3 answers

How to open a browser within VSCode just like another editor tab

For a VSCode extension i want open browser within VSCode not externally, wherein i can load some URL (https://developers.redhat.com/) I tried looking into various options to achieve it in VScode extension, what i came across is with help of webview…
invinciblejai
  • 1,103
  • 1
  • 8
  • 15
23
votes
4 answers

VS Code - size of description popup

I am creating a snippet for VS Code with long descriptions. I have noticed that the description popup window in VS Code has a scrollbar, but it would be greater if I can enlarge the window? Is it possible?
steff123
  • 441
  • 1
  • 4
  • 10
23
votes
4 answers

Read and Write file using vs code extension

i am building an extension to parse json using vs code extension. so my need is ,it should be able able to load .json file from a particular folder and iterate through content of the file. Then it should allow user to select few keys from it make a…
user6639252
  • 261
  • 1
  • 2
  • 9
23
votes
2 answers

How to open file and insert text using the VSCode API

How can I open a new read-only text file in tab and insert some formatted text in that file using the Visual Studio Code API? I didnt find any example regarding this to add simple text Following is my code that opens some untitled file. var setting:…
Shan Khan
  • 9,667
  • 17
  • 61
  • 111
22
votes
1 answer

How to add context menu with VSCode extension?

How do you add a context menu? (in the explorer and/or the editor) I tried the following which doesn't work: { "command": "extension.sayHello", "title": "Say Hello", "context": { "where": "explorer/context", "when":…
Manuel
  • 10,869
  • 14
  • 55
  • 86
21
votes
2 answers

how to fix vscode extension elixirls alert "OTP compiled without EEP48 documentation chunks"?

This is the alert I am getting and I don't know how to fix it... I created new bug for it on their github (providing a bit more details in there), but I am not sure if it is bug, or I am doing sth wrong.
21
votes
3 answers

Is there any way to disable GitHub Copilot comment suggestions?

I really like Copilot however its comment suggestions can be nonsensical and really distracting. Is there any way to leave the code suggestions on but turn Copilot off whenever I'm editing/adding a comment amidst the code?
Gustavo Maximo
  • 4,426
  • 3
  • 17
  • 26
21
votes
6 answers

How to enable Pylint in VSCode?

I can't get pylint errors to show up in VSCode. I installed pylint globally (sudo apt install pylint), I created venv and installed it there with pip, I selected pylint as linter in VSCode, enabled it, ran it, and it doesnt show any errors in my…
atlau
  • 881
  • 1
  • 7
  • 16
21
votes
1 answer

Possible to invoke a VSCode extension command from command line?

Is it possible to invoke a VSCode extension command from a terminal? I'm aware of the code command and all the switches under the Extensions Management category. However, I do not understand if it's possible to invoke a command implemented within…
ariestav
  • 2,799
  • 4
  • 28
  • 56
21
votes
1 answer

Launching Chrome without web-securities in VS Code

How can I configure the Chrome Browser without web-security in launch.json file in VS Code? I installed the VS Code extension Debugger for Chrome and my launch.json seems so: { "version": "0.2.0", "configurations": [ { "type":…
Ramosta
  • 626
  • 1
  • 7
  • 29
21
votes
2 answers

Connect external language server to VSCode extension

I want to implement a VSCode extension that uses the Language Server Protocol, but I want the server component to be on an actual server (in the cloud), and not a part of the VSCode extension. Can I set the client extension to connect to a server…
Ido
  • 951
  • 1
  • 13
  • 27
20
votes
3 answers

vscode extension: deprecation warning `Buffer()`, how to diagnose

I am rebuilding my comment highlighter in to a new extension. However I now run now in to an issue where I get the following warning: (node:4904) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please…
TessavWalstijn
  • 1,698
  • 1
  • 19
  • 36
20
votes
3 answers

Show last date modified in VS Code

Is it possible to show the last modified date for each file and folder in the specifically in the Explorer window of VS Code? If it's not possible by changing the settings, are there any extensions that do this?
ninja star
  • 319
  • 4
  • 7