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

Vscode move to line X after openTextDocument

I'm developing a VS Code extension that jump to a specific file:num, but I'm stuck at the step of moving the cursor to a specific line after opening a file. How can I achieve this : export const openAndMoveToLine = async (file_line: string) => { …
1
vote
0 answers

How can I search for files by package in VSCode?

Standard logging libraries output package.to.Class names for log events. Which is really useful for quickly navigating to the file context, however, by default, VSCode only seems to support searching for files using forward slashes / as the folder…
justis
  • 447
  • 7
  • 13
1
vote
0 answers

how should slow diagnostics be handled in VS Code API direct implementation

The diagnostics in my VS Code extension, implemented directly (no language server), are blocking other things (e.g. completions) while they run. Furthermore, it seems, if they are triggered again before the prior analysis completes the delays are…
1
vote
2 answers

Custom IntelliCode prediction with Visual Studio extension

I would like to add the custom IntelliCode prediction/inline suggestion in Visual Studio with extension. In VSCode, I can use vscode.InlineCompletionProvider/InlineCompletionItem to do that. What's the class/method that would do the same things in…
Andre.L
  • 36
  • 1
  • 7
1
vote
0 answers

How to authenticate VSCode extension via browser SSO so extension can post to server API?

I want to create a simple VSCode extension that does a REST API POST of the contents of the editor window to a URL. The issue is the URL is in a corporate environment behind a browser based single sign on sequence that requires multi-factor…
Alex Kerr
  • 956
  • 15
  • 44
1
vote
1 answer

How to offline install vscode-server for windows remote target

I've been able to follow similar answers for offline installing vscode-server on remote linux targets but I cannot find out how to do this for windows. On the official page for vscode-remote-ssh https://code.visualstudio.com/docs/remote/ssh, it…
1
vote
1 answer

VSCode Extension - Exclude files of FileSystemProvider from recently opened files

I'm building a vscode extension that proposes changes to the user. The changes are shown in a diff editor, the proposed new content of the file is provided by a FileSystemProvider. The uri used for the scheme file is structured like…
1
vote
0 answers

Regex for Highlighting HTML between JS Template Literals for VS Code

I've built a VS Code extension to highlight template-literal strings in JavaScript. E.g. const templateLiteralString = `

Hello World!

frontsideup
  • 2,833
  • 1
  • 21
  • 23
1
vote
0 answers

Visual Studio Code C/C++ extension : The language server crashed 5 times in the last 3 minutes. It will not be restarted

I am using the C/C++ extension in visual studio code. I have been getting this error "The language server crashed 5 times in the last 3 minutes. It will not be restarted." for the last 1 week. I have tried to fix it using various versions of the…
Abhik Das
  • 11
  • 1
  • 2
1
vote
1 answer

LiveServer (Ritwick Dey) not reloading during inspect element

New dev here, I'm having issues with my LiveServer in VSCode. When I open the LiveServer on Chrome and make changes, it'll reload without any problems however, when I inspect element the page and make some changes to my HTML and then save it, the…
1
vote
1 answer

vscode extension quickpick activeItems doesn't work

const q = vscode.window.createQuickPick(); q.items = [{ label: "1" }, { label: "2" }]; q.activeItems = [{ label: "2" }]; q.show(); Based on my understand of vscode extension api doc. /** * Active items. This can be read and updated by the…
BarrySong
  • 11
  • 1
1
vote
1 answer

VS Code when clause context (for keyboard shortcuts) for LaTeX math mode

In VS Code I can define keyboard shortcuts to only work in certain conditions: https://code.visualstudio.com/api/references/when-clause-contexts So i can add different variables, e.g. this keyboard shortcut would only work when writing latex…
1
vote
1 answer

Reopen the file in the default editor from a VSCode custom text editor extension

I'm creating a VSCode CustomTextEditor extension. The extension activates on YAML files, but by design only supports a small subset of them. It's not possible to reliably detect supported files by file name/extension or the first line of the file. I…
Ark-kun
  • 6,358
  • 2
  • 34
  • 70
1
vote
0 answers

VSCode - HTML Include extension

Is there any VSCode extension to include HTML code during development? something like this:

Hello world.

Developer Mister
  • 572
  • 3
  • 11
1
vote
2 answers

Yeoman for VS Code extension says: Trying to copy from a source that does not exist

I am trying to kickstart a simple VS Code extension using Yeoman, on Windows 10 Pro. I am facing the same kind of problem that is described here "Error code Trying to copy from a source that does not exist", however, my configuration is totally…
Axel
  • 361
  • 2
  • 11