Category "vscode-extensions"

visual studio code - language server extension that written in python

I would like to write a visual studio code extension that parse and analyse large log files. I thought to start with language server extension. I would like the

VS Code Extension - How to add a WebviewPanel to the sidebar?

According to this page webviews can be "rendered in the sidebar or panel areas". The examples show how to render as editor panels... vscode.window.createWebview

Create formatter in Visual Studio Code

When I try to auto indent my .ahk files, I get "There is no formatter for 'ahk'-files installed." How can I create a rudimentary formatter?

VSCode API check if path exists

In a VSCode extension, how can I check if a file path exists without opening or reading the file? The closest thing I've found are vscode.workspace.fs.Readfile

Getting error while bundling Vue app with rollup js. CreateElementVNode

Basically, I am building VS code extension using Vue js but bundling the app using rollupjs gives an error. Node version - 14.18.0 Vue Js Version - 2.6.14 Rollu

VSCode Problems Tab: How to subscribe to onclick event on one specific problem

I am developing a VSCode extension (a graphical modeler, not text based). On validate some errors/problems can show up in the VSCode problems tab. (Diagnostics

In a VS Code extension, is there a way to set the configuration options for the editor (such as word wrap) programmatically?

For an extension I am working on, our end-users would prefer to have options such as word-wrap on by default. We would like to be able to set this at the langua

Cannot find module 'vscode' in language server extension

We made a copy of the lsp sample project, and in server.ts we are importing the @types/vscode package to access the Range interface when creating Diagnostic ins

VSCode Extension: How to open a file if no workspace folders are available?

I've been working on an extension that allows adding files with pre-defined content and modifying them using a custom web editor. The custom command "Add new XX

How to fix Jupyter extension activation failed when opening python files?

I installed python lately on my macos system and when I try to open a python file I see this error popup about Jupyter extension :

"No extensions found" when running Visual Studio Code from source

When I try to install any extension in Visual Studio Code (i.e., by pressing Ctrl+P and then running ext install RustyCode), I get a message that No extensions

How to pass data through VSCode URL?

I'm building a VSCode extension, which needs to receive data from a web app. In the web app, I call vscode://file to open VSCode, but I also need to pass data t

Testing VSCode extensions - how to verify that decorations are set

I have an extension which adds text decorations at the end of some of the lines. I'd like to write a test which verifies that the text decorations are added and

How do I test a webview extension I've created for vscode?

By test I mean some kind of automated unit test. Manual testing takes too long.

How to build VS Code TreeView with custom JSON?

I'd like to build a TreeView based on a JSON file / REST Call and have an icon for each type of my objects. I have only three types of objects: Server, Host and

Adding drag and drop support in a custom TreeView

I have successfully populated a TreeView via creating a TreeDataProvider and customized the icons and its collapse-able property. Now I want to be able to drag

why doesn't TreeDataProvider exist in vscode?

I followed this link https://code.visualstudio.com/docs/extensions/yocode to create a vscode plugin project in javascript. I want to use TreeDataProvider to cre

VS Code Extension API - Replace a String in the document?

const textEditor = vscode.window.activeTextEditor; if (!textEditor) { return; // No open text editor } for(var i=

How to use window.crypto.subtle in vscode webview

In VSCode Webview, window.crypto.subtle not working. The possible reason is (from MDN): This feature is available only in secure contexts (HTTPS) And in VSC

VS Code - Configuration Properties - presentation order

Following this question from ~ 3 years ago, and linked Github issues that appear to have been worked on and closed in the 1.63 build onwards, I cannot get my pa