4,684 questions
0
votes
0
answers
32
views
How to programmatically trigger a VS Code extension command and see its UI effects?
I'm learning VSCode extension development and want to run a command I defined from within the extension.
Here is my code:
const vscode = require('vscode');
/**
* @param {vscode.ExtensionContext} ...
-2
votes
0
answers
31
views
What do these VSCode commands mean: “Restart Extension Host”, “Debug Extension Host in DevTools”, and “Debug Extension Host in New Window”?
I found these three commands in Visual Studio Code:
Developer: Restart Extension Host
Developer: Debug Extension Host In Dev Tools
Developer: Debug Extension Host In New Window
From their names, it ...
0
votes
0
answers
11
views
registerFoldingRangeProvider Conflict: Extension works in Dev Host, but ignored/overridden in production VSIX
I had a problem in VSCode that irritated me: in CSS files that had nested selectors it would mark lines as fold-able that were complete nonsense. Example
/*----- Content -----*/
#blog-content {...
0
votes
0
answers
11
views
Tailwind Autocomplete Works Only in One Phoenix Project in VS Code
I recently joined my university’s CS group and started learning Tailwind using the Phoenix framework. To practice, I cloned a repository of an ongoing project. After a few days, I decided to create a ...
0
votes
0
answers
54
views
My VS Code is just stuck on loading the remote WSL
I use WSL in Windows for developments but for a few days it is not working, it is just in the mood of loading and loading unloading. I checked my WSL via command terminal it's working there, but it's ...
-2
votes
0
answers
31
views
VSCode Sftp extension seems to ignore .ssh/config file
I can't make Natizyskunk SFTP extension for VScode to work.
I keep getting error that [custom_host]: getaddrinfo ENOTFOUND custom_host
This is working ok in terminal ssh custom_host with configuration ...
0
votes
0
answers
36
views
Open an complex url by env.openExternal in vscode extension
My needs:
Open an external url in my vscode extension. The url to open contains a search param: redirect_uri=/client-redirect?client_type=vscode
Problem encountered:
I open the url by:
env....
-4
votes
0
answers
30
views
How to inject code into debug console in vscode?
So I'm building a vscode extension, I have a vscode command that the extension utilizes to run debugging commands (for python's debugpy) that same way as you'd do in the Debug Console, I can't seem to ...
-1
votes
2
answers
486
views
How to configure custom OpenAI-compatible model in Continue.dev?
I'm trying to configure a Z.ai GLM model in the Continue.dev VS Code extension, but the model doesn't appear in the dropdown menu despite having what appears to be a correct configuration.
My Current ...
0
votes
0
answers
49
views
WSO2 MI Docker image built via VS Code extension fails at startup: WSO2 Carbon initialization Failed Invalid UTF-8 start byte 0x93
Symptom
When I build a MI Docker image using the WSO2 VS Code extension (Project Overview → Build Docker Image), the container fails on startup with this error:
2025-10-24 09:25:58.643 | [2025-10-24 ...
2
votes
0
answers
62
views
VS Code Extension: webview.onDidReceiveMessage stops firing after onDidChangeTextEditorSelection event
I am building a VS Code extension where a webview panel and the text editor need to communicate with each other.
The desired workflow is:
A command creates and shows a WebviewPanel.
The user can ...
3
votes
0
answers
357
views
Visual Studio Code extension can't play embedded YouTube videos
I am making a Visual Studio Code extension that generates a color theme based off a random Discogs album. I want to embed a YouTube video URL inside the Visual Studio Code sidebar extension window, I ...
3
votes
1
answer
886
views
VS Code Claude extension fails with "SyntaxError: Unexpected token 'C'" on clean install
I'm trying to use the Claude Code extension, but it fails to initialize.
Environment:
Extension: 2.0.13
VS Code: 1.105.0
OS: Windows 11 (Windows_NT x64 10.0.26100)
Problem:
Immediately after ...
7
votes
2
answers
2k
views
VS Code Jupyter extension fails to activate: "Typ"eError: this.vscNotebook.onDidChangeNotebookCellExecutionState is not a function
So recently I wanted to work with Jupyter notebooks in VS Code, but I ran into an activation error with the Jupyter extension.
I’m using:
VS Code version: 1.104.3
Jupyter extension version: 2025.8.0
...
0
votes
1
answer
49
views
How to add an extension command line in VSCode open source (code-server)?
I have installed code server on our lab server (so users can access it using just their browser), and then when I add users I was pre-installing for them a set of commonly used extensions with the ...
1
vote
1
answer
60
views
Indentation rules in a VSCode plugin
I'm writing a VSCode plugin to handle a certain scripting language.
This is the "language-configuration.json" file:
{
"comments": {
"lineComment": {
"...
0
votes
1
answer
59
views
How can I enable context-aware indentation when pasting Python code in VSCode?
I'm trying to replicate a feature from PyCharm in Visual Studio Code and running into trouble.
In PyCharm, when I copy a block of Python code and paste it inside a function, class, or loop, the IDE ...
1
vote
0
answers
22
views
Cannot find module '@shared...'
I have a problem with my vscode extension having both client and server sides. There's also a shared folder used for both the server and client sides. I'm trying to include @shared/* but it gives me ...
0
votes
0
answers
40
views
How do I wire up opening a text document in visual studio using Code for IBMi connection
From the following link https://codefori.github.io/docs/dev/api/
I am developing my own VS Code extension and want to interact with the active IBM i connection, so I can use the API provided by Code ...
1
vote
0
answers
69
views
How to dynamically register Language Model Tools in a VS Code extension?
I want to register different Language Model Tools in my VS Code extension depending on a specific configuration.
Currently, the way VS Code works seems to be:
I need to declare the tool in package....
1
vote
1
answer
82
views
How to override PHP syntax coloring in VSCode Language
I tried both including source.php after my match rule and injection into the PHP language syntax.
Including the source shows PHP syntax coloring without my override, whereas injection shows my ...
0
votes
0
answers
38
views
Running custom completion (SCIP) in parallel with TS language server in VS Code
I’m building an index using SCIP that can provide completions. I’d like to run it alongside the TypeScript language server in VS Code.
The problem:
By default, VS Code always triggers the TS server ...
0
votes
0
answers
35
views
VS Code extension Test Runner: How to assert values copied to the clipboard?
Summary/Intent
I'm writing tests for a VS Code extension that uses vscode.env.clipboard.writeText() to copy a generated string to the system clipboard.
I want to assert that the clipboard contains the ...
1
vote
0
answers
43
views
How to run vscode-extension-tester on compiled source (instead of .vsix)
What is the correct process for running vscode-extension-tester (the project's official example) against the project's compiled source code (as opposed to having to build a .vsix package before ...
1
vote
1
answer
108
views
attach to kubernetes pod fails in vscode as context does not exist in the session
We are connecting to kubernetes cluster hosted in AWS.
I am able to do it via cli
aws sso login --profile 234234293-prj_ns_qa_manager
#set the context to appropriate sandbox cluster
kubectl config ...