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

Listen for Git push event in a VSCode extension code

I am trying to create a VSCode extension that listens to Git push events from a repository and fetches the commit ID, which is sent to an API (REST) and performs several other operations. I have tried two approaches till now: A FileSystemWatcher…
Manas
  • 109
  • 3
  • 11
1
vote
0 answers

SFTP upload vs save issue

is there any option to set case sensitive file saving? My issue is when I press Ctrl+S, it saves and uploads to server but lower-case only, but when I upload it by right click -> Upload, it uploads correctly. Image about file explorer Any Idea?
deakgyuri
  • 13
  • 2
1
vote
1 answer

Open workspace when testing VS Code extension

I am writing a test suite for my VS Code extension using vscode-extension-tester, and my tests need to involve the opening of a workspace file. I need the workspace file to be opened as soon as the browser is launched, in order for my subsequent…
notexactly
  • 918
  • 1
  • 5
  • 21
1
vote
0 answers

The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command npm run watch" terminated with exit code: 1

I cloned that github repository on vscode, when i use f5 to run the extension i get displayed the error in the title, i did searched for the exit code error but didn't find a solution for it.
Migrove
  • 11
  • 1
  • 3
1
vote
0 answers

What is the minimum VSCode version that supports Web extensions?

I've published a VSCode extension. Some users requested that I lower the minimum required VSCode engine version so that they can install the extension.…
Ark-kun
  • 6,358
  • 2
  • 34
  • 70
1
vote
0 answers

vsCode extension how to create window/dialogue at statubar

I am trying to create a vs code extensions, I need to show a small window at statusbar when my extension icon is clicked, with some custom text and buttons in that window. For now I can only show tooltip. How to show window there.
Lutif
  • 11
  • 2
1
vote
0 answers

vscode install go dev extension error in macos 12 ? "linux_syscall.c:67:13implicit declaration of function 'setresgid'"

linux_syscall.c:67:13: note: did you mean 'setregid'? runtime/cgo linux_syscall.c:67:13: error: implicit declaration of function 'setresgid' is invalid in C99 [-Werror,-Wimplicit-function-declaration] linux_syscall.c:67:13: note: did you mean…
Bruce Dong
  • 11
  • 2
1
vote
0 answers

How to display a VSCode Hover when mousing over a Decorations before icon

I am developing a VSCode Extension https://github.com/dev-tools-ai/devtoolsai-vscode-plugin And referencing the image below, wondering... Is it possible to show a Hover when mousing over not just the decoration, but additionally the icon shown in 1…
1
vote
1 answer

VSCode OSX C#, classes not highlighted, no ⌘ + F12 goto implementation

I have Visual Studio Code (v. 1.69.2) running on OSX and it's not doing the following: Doesn't highlight any classes (custom or system classes) ⌘ + F12 doesn't go to implementation of a class or method Doesn't show tooltips over System classes…
mgmedick
  • 686
  • 7
  • 23
1
vote
0 answers

Why I have "ArrayBuffer is not a constructor" error?

I'm writing an extension to the extension "Binary File Viewer" for VS Code. My code is /** * Select the 'aid' extension. */ registerFileType((fileExt, filePath, fileData) => { return fileExt == 'wav'; }); registerParser(() => { const…
Dmitry
  • 116
  • 4
1
vote
1 answer

How to obtain a list of installed VS Code extensions using code

I want to get the list of installed extensions for VS Code in code. Not from the CLI, I want it in code so I can write it to the console for diagnostic purposes in the middle of a unit test that's behaving like things aren't installed. It could be…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
1
vote
0 answers

VSCode TreeItem - right click option off a right click option

I have a Treeview that extends to 3 levels. On the 3rd child node level, I have a right click option that then displays 6 or 7 options. That is all working fine. However, I want to add a few more right click options and rather than end up with as…
djacks
  • 63
  • 9
1
vote
2 answers

How to get highlighted text from VSCode Extension API

I'm using the VSCode API to build an extension, but I've found no documentation that covers how to grab the user's highlighted text, such as that shown below: There is a similar question regarding the word the cursor is currently on, but I would…
BVB44
  • 266
  • 2
  • 11
1
vote
1 answer

Check if a language use single or multiline comment - vscode snippet

I'm working on a vscode extension that lets me generate a section to organize my code example : Python : # ┌─MY─SECTION─┐ def test(): pass # └────────────┘ CSS : /* ┌─MY─SECTION─┐ */ .class { opacity: 0; } /* └────────────┘ */ Here is the…
1
vote
1 answer

Select a block of text via VS Code API

How can I select/highlight a block of text by two different vscode.Positions via VS Code API?
HamedFathi
  • 3,667
  • 5
  • 32
  • 72