Relative Content

Tag Archive for vscode-extensions

VSCode extensions: question regarding the use of other’s extensions commands in own extension

I am a beginner who is learning to use the VSCode extension API in order to build my own extension. I know that extension developers can create their own commands to be provided in the command palette by specyfying them within the package.json file. I also know that extension developers can make use of other extensions by using their API (i.e. the return value from their implementation of the activate function which you can receive by using the vscode.extensions.getExtensions function) or by calling their provided commands (which are also listed in the command palette) directly from code with the help of the vscode.commands.executeCommand function.

VSCode extension webviews mixed tree views

I’m trying to build VSCode extension where i want to have a button on top of tree view views. I created a webview for it, but when webview is listed with tree views it displays as tree view and also has expand icon in the top left corner. How can i implement this feature, having a fixed container with button on top of tree views.

Computer reset while VS Code remote debugging

While using VS Code to debug a remote Ubuntu Linux (apache2) web server/application, my Windows 11 PC resets on a seemingly random basis. No BSOD, no memory dump; just a black screen and a restart of the computer.

Can a VS Code extension load it’s colors during installation or right after install?

I’m developing a Visual Studio Code extension, and i’ve already created a package for it.
But when i install the package the colors i listed in the package.json are not loaded, only if i reload the window.
That causes the icons it adds at the explorer’s and extension’s view to be gray until the window is reloaded.
The contributes.colors part of the extension’s package.json: