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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
13 views

VS Code Debug can not be run in new version extension C# From v2.10.28

In vs code, When I updated C# extension to v2.10.28, the debug can not be run. Message: Couldn't find a debug adapter descriptor for debug type 'coreclr'(extension might have failed to activate) But ...
tokkn's user avatar
  • 11
0 votes
1 answer
12 views

How can we edit the current code of quickopen and add new feature of file openning to it?

we are trying to help with this issue - https://github.com/microsoft/vscode/issues/196580. we now incorporated this idea on the /vscode-extension-samples/quickinput-sample and did a demo of it. ...
Skylar Gan's user avatar
0 votes
0 answers
8 views

Monaco-editor with vscode extension webpack webview

I am trying to implement monaco-editor into custom vscode extension and I've tried it in so many ways to import it, but I cannot figure it out (there are either random errors from monaco-editor files, ...
Robson's user avatar
  • 1
0 votes
1 answer
17 views

How do I create a custom button in the git Message field of the VS Code Source Control tab?

I am creating a VS Code extension. I want to add a custom button to the Git message field of the VS Code Source Control tab? To be specific location, please see the screenshot below: I want to add a ...
Will Huang's user avatar
  • 3,031
0 votes
0 answers
17 views

How to remove auto generated comments with Microsofts VScode C++ extension?

When I create an if statement for example, I get this: if (/* condition */) { /* code */ } Can I edit the C++ extension settings to remove the auto generated /* condition / and / code */ ...
limonfuzz's user avatar
0 votes
0 answers
18 views

Autopep8 from venv

After the day 01/12 my autopep 8 / flake8 / mypy stoped working from VENV, any ideia how to configure this? { "[python]": { "editor.defaultFormatter": "ms-python....
Caio Romano's user avatar
0 votes
1 answer
39 views

How to compute minimal edits to a JSON document for a VSCode WorkspaceEdit?

I want to build a custom editor following this guide: https://code.visualstudio.com/api/extension-guides/custom-editors My editor is also backed by JSON, but when studying the example it says // Just ...
Pepijn's user avatar
  • 4,163
0 votes
0 answers
21 views

How can I open vscode:// links in Visual Studio Code

I need to open (Linux) a link of type vscode://some-extension?token=xyz, but it doesn't work, vscode never opens. My code.desktop is: cat ~/.local/share/applications/vsc.desktop [Desktop Entry] ...
Conde's user avatar
  • 837
0 votes
1 answer
26 views

How to add UI Elements in the View for a VS Code extension?

I am trying to figure out how I can add UI Elements to the Activity Bar in VS Code Extensions. For example this extension called ThunderClient. It has a button , and then tabs following it. Which ...
yogeshwar-b's user avatar
0 votes
0 answers
28 views

How do I run ARM/Assembly code using vscode?

I have 2 courses, one of them uses scheme, or rather Racket, which I have managed to implement in VSCode without too many problems. The second one teaches assembly, they suggest a program to emulate ...
UnLegitCombos's user avatar
1 vote
0 answers
32 views

Install haskell ghci debugger adapter on WSL

I am using the Windows Subsystem for Linux and I was trying to install the haskell debugger on vscode so I follow the instructions from the Haskell GHCi Debug Adapter Phoityne extension and I run ...
edamondo's user avatar
  • 151
1 vote
0 answers
17 views

Format completion in VSCode with built-in command

I'm creating the VS Code Language Server and Client. I want to be able to format the completion result before it is shown to the user and use the VS Code formatting capabilities. When the completion ...
Olena Horal's user avatar
  • 1,194
0 votes
1 answer
29 views

Can VScode extensions embed a mini-editor inside their sidebar/panel?

I have a VScode extensions that offers a custom sidebar/panel view. And in there, I have some text field enabling users to edit JSON code. The problem is, at the moment, this code is rendered as plain ...
Rémi Rousselet's user avatar
0 votes
0 answers
16 views

VS Code with "Spring Boot Extension Pack" doesn't finish loading java project

I am trying to use VSCode as Java dev env. I have these extension installed. PS C:\shaozr\myworks\sts1\gs-securing-web\initial> code --list-extensions redhat.java VisualStudioExptTeam.intellicode-...
grizzlybears's user avatar
0 votes
0 answers
5 views

Modify Skaffold options in CloudCode VSCode extension

I want to modify Skaffold options, like --verbosity or --cache-artifacts, at execution time in the CloudCode extension for vscode. I tried with environment variables, in skaffold.env file, but no ...
Dlizzz's user avatar
  • 1
-1 votes
1 answer
26 views

Breadcrumbs navigation for Test catalog / test environment

i've got a task at my job as internship to enable a breadcrumb navigation for their test catalog in vs code, which I unfortunately can't post here for security reasons. But basically looks like this: @...
Gilchrist's user avatar
0 votes
0 answers
18 views

The sign in option won't disappear after signing in VSCODE

I'm developing a Visual Studio Code extension and trying to create my own Authentication Provider. I've noticed that the 'sign in' option doesn't disappear even after I've already signed in. I have to ...
toho's user avatar
  • 1
0 votes
1 answer
33 views

Missing object initializations in transpiled pdfjs-dist module

I'm developing a vscode extension that requires extracting text from a provided PDF. The extension works fine during development but after exporting to .vsix I run into issues. On digging deeper I ...
yohoo's user avatar
  • 165
0 votes
1 answer
38 views

Can't compile a vscode extension

I started a new vscode extension with npm install -g yo generator-code yo code but when I try to compile it I get > [email protected] compile > tsc -p ./ ../node_modules/@types/imagemin-...
Daviid's user avatar
  • 1,391
0 votes
1 answer
24 views

debug adapter server not starting from vscode

I'm trying to implement a debugger plugin for vscode that uses a separate DAP server process. It seems like when I click "Start Debugging", nothing is happening. For simplicity, I just ...
mdgeorge's user avatar
  • 360
0 votes
1 answer
28 views

Change Character Position for VS Code CompletionItem

Extending on the LSP autocomplete fix from this answer, I am now trying to get a curly bracket autocomplete where the cursor is in the middle of the curly brackets on completion. This is what I have ...
Chris Redford's user avatar
0 votes
0 answers
40 views

After Synapse sign in from VS Code Synapse extension wrong environment is shown [closed]

We have the Azure Synapse extension installed in VSCode including all the prerequisites and when we start the extension it starts succesfully, saying it is now time to switch the kernel.Everything ...
Henri's user avatar
  • 15
0 votes
2 answers
56 views

How do I assign a JSON Schema to a YAML file in my VS Code extension?

I am writing a CLI tool that will have a fairly complex YAML configuration, so I wanted to create a VS Code extension to support that with completion provided by the JSON Schema and some snippets, but ...
Essay97's user avatar
  • 690
0 votes
1 answer
30 views

Force VS Code to Trigger Autocomplete For Keywords Starting with Non-Alphanumeric Symbols

I am trying to make a simple autocomplete for the LSP using: import * as vscode from 'vscode'; export function activate(context: vscode.ExtensionContext) { const provider = vscode.languages....
Chris Redford's user avatar
0 votes
1 answer
29 views

How can I customize the tooltips / hover for VS Code Explorer items?

Would it be possible to have a customizable popup when hovering over a file in the explorer? Currently it just shows the filename and git status on hover. I'm thinking like a description that could be ...
ThomasRones's user avatar
-2 votes
0 answers
42 views

vscode inline completion can't be triggered frequently, why? [closed]

I developed a plug-in that uses the server-sent-events protocol to stream answers from the back end, and I call vscode.commands.executeCommand("editor.action.inlineSuggest.trigger") to ...
realIkun's user avatar
0 votes
2 answers
32 views

How to switch SCSS format when copying with eCSStractor?

I do not know how to disable SCSS class format for now. I want to switch from this : .header { &__row {} &__logo {} &__nav {} } to this : .header__row { } I tried to look in ...
Mary A.'s user avatar
0 votes
2 answers
125 views

Azure Resources not visible in VS Code

I am using VS Code to authenticate Azure Account and Create and deploy function apps via VS Code. I have some subscription in my account. But, recently when I tried to deploy the resources the Azure ...
Roronoa Zoro's user avatar
0 votes
1 answer
32 views

How to get vscode help > about information

I am developing an extension using the vscode API. How do I get the help > about information in the top menu of vscode? Not the entire text, but if I want to get the OS I want to get the string ...
bubbubbub's user avatar
0 votes
0 answers
10 views

In vscode notebook extension; how do you convert between NotebookCell and NotebookCellData

I'm creating a vscode notebook extension using the notebook API? Is there a way to convert between the interface NotebookCell and the concrete class NotebookCellData. Some methods return instances of ...
Jeremy's user avatar
  • 2,259
2 votes
0 answers
383 views

Fetch Failed error after signing into the azure account using VS code Azure account extension

I am trying to access resources from my azure cloud in my vscode using Azure Extension. I am able to sign in to my Azure account using Azure Account extension successfully, but when I try to access ...
Neeraj Bassi's user avatar
0 votes
1 answer
19 views

VS code extension parse value of variable of typescript file

I'm working on a VS code extension to parse OpenAPI specs. The spec can be defined as a variable with a fixed name inside a typescript file. Inside my vs extension I get the document as a string: ...
florian norbert bepunkt's user avatar
0 votes
0 answers
32 views

Vs Code Extentions: vscode.window.activeTextEditor always returns undefined

I'm trying to get the currently opened document in vscode extensions using the vscode.window.activeTextEditor property. I however get undefined each and every time. this._panel.webview....
crispengari's user avatar
  • 8,239
0 votes
1 answer
33 views

How can I use setting values in launch config property values in VS Code?

I'm working on a VS Code extension where I need the launch.json configuration/program variable point to an extension setting. Is this possible? I tried to use environment variables but without success....
user41575's user avatar
  • 103
0 votes
1 answer
26 views

How can I add a command to VS Code?

We would like to contribute to the VS Code GitHub and would like to add function to some commands. However, we could not find where the commands are defined. Could anyone tell me which dir these code ...
Skylar Gan's user avatar
0 votes
0 answers
15 views

Using webpack for bundeling vs code extention code returns into error

When I try to import a library I get the error Uncaught ReferenceError: exports is not defined at maxGraphLogic.js:2:23 I think it is due to a wrong configuration of Webpack, because I already did ...
Pixelherz's user avatar
0 votes
1 answer
30 views

VSCode API - Activation Events - Trigger only the first time or also after that?

In the VSCode API Documentation - Activation Events, we can read that: Your extension becomes activated when the Activation Event happens. But it doesn't state if it happens only the first time the ...
Malix's user avatar
  • 31
0 votes
1 answer
22 views

VS Code extension context menu item with checkmark/tick

Is it possible to add boolean options to a context menu in my VS Code extension? See the below screenshot of the built in context menu that appears when I right click the activity bar, some of the ...
Drahcir's user avatar
  • 11.8k
-1 votes
0 answers
25 views

How can multiple people work on the same Private GitHub Repository in VS Code without cloing the Repo

The tittle says it, How can me and my friend work on a private repository together. He is the contributor of that repo and I'm the owner. How can he work on our repo without cloing it, Cloning a repo &...
Samar Singh's user avatar
0 votes
2 answers
36 views

How to pass a package flag to cabal for the Haskell Language Server extension?

I'm using the HLS in VS code. I need to pass a flag (hmatrix:openblas) to cabal otherwise it fails to build the project. I tried to add a cabal.project file to the project, containing flags: openblas, ...
Stéphane Laurent's user avatar
0 votes
0 answers
28 views

Setting up Better pest VSCode extension with Laravel Sail

Run CMD+SHIFT+P and Better Pest Run. got QueryException SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: nodename nor servname provided It success when run sail pest ...
Naung Ye Htet's user avatar
-1 votes
0 answers
20 views

Why some useful methods are not exported in git.d.ts?

I'm developing a simple extension for VSCode. It's based on standard Git extension I found some useful methods are not exported and not defined in git.d.ts, yet I can find them in the source of Git ...
alexwhitenose's user avatar
0 votes
0 answers
66 views

VSCode jest runner runs all test when trying to run a single test

So i have my jest.config.ts set to look for tests in my project using testMatch: ['/__tests__/*.[jt]s?(x)', '**/?(*.)+(spec|test).[tj]s?(x)'], My folder structure looks like this src __tests__ ...
Kandarp Gandhi's user avatar
-1 votes
1 answer
113 views

VS Code Extension installation errors

I'm new to python. Im taking Mosh Hamedani's course. When Im installing extensions in VS Code I'm getting errors. The extensions I have installed are 'atuopep8', 'pylint' and 'code runner'. Can ...
RevOps608's user avatar
-1 votes
2 answers
46 views

Go intelisense and autocomplete not working in vscode

I have installed go in my mac. In vscode I have installed official go extension. But autocomplete doesn't work. When I open a go folder I get this in output tab in terminal. Tools environment: GOPATH=/...
Shehan DMG's user avatar
0 votes
1 answer
106 views

failed, reason: getaddrinfo ENOTFOUND management.azure.com

Hi stuck with this error for days when signing to azure-account in vscode. It always display the error 2023-11-15 13:50:00.453 [info] [Axios Response] 200 - POST https://login.microsoftonline.com/...
IAN VINCENT's user avatar
0 votes
0 answers
27 views

AxiosError: maxContentLength size of -1 exceeded in VSCode extension development

I want to get token from https://xxxxx/auth/token with post method. The code of the VS Code plug-in is as follows: // extension.ts import * as vscode from 'vscode'; import axios from 'axios'; export ...
Simlw's user avatar
  • 1
0 votes
1 answer
33 views

Knowing the state of the keyboard in a VS Code extension

I want to read the state of the keyboard in a VS Code extension and be able to run action A or B depending on whether a modifier key like Shift or Option/Alt is currently pressed. Is there a way I can ...
Jean-Philippe Pellet's user avatar
1 vote
0 answers
22 views

How to control code folding in VSCode for a custom language?

We created a VSCode extension to help us work with a propietary language in an application we use. This language is comparable to a complicated Excel cell formulae - basically functions nested within ...
Eric's user avatar
  • 1,337
0 votes
0 answers
29 views

VS code API: How to get thread id on which debugger is paused in multithread program

I am currently building a VS code extension to visualize C# variables and datatables. And I have successfully achieved this in single threaded application by calling these in sequence: Thread request ...
Krishna Tamakuwala's user avatar

1
2 3 4 5
88