I do not see the hello world command in command pallete
Asked Answered
M

5

4

So the tutorial to developing visual studio code extensions says to hit F5 and then command palette which is where I should see the hello world command given by this default code for extension. This is the repository for the default code generated by following the tutorial. I do not see the command and I require some help as to troubleshoot. Let me know if any additional info is required.

Myxomatosis answered 20/10, 2022 at 16:46 Comment(7)
Instead of rushing to your own, get started from the official ones, github.com/microsoft/vscode-extension-samplesBeef
I see @LexLi but this is entirely the code generated by yo module. If I do start with some other then how do I find one which is written in JavaScript and not type scriptMyxomatosis
1. It is not clear whether the yo code bits are up-to-date. 2. Via that GitHub repo you can actually connect to the Microsoft team behind extension API.Beef
I see @LexLi I can start from here 'github.com/microsoft/vscode-extension-samples/tree/main/…'Myxomatosis
Does this answer your question? Why No Matching Commands when I init my first vscode extension?Quelpart
I can not confirm the solution to that exact problem but I am convinced that vscode version was problem since I was using 6 months older portable version at the time.Myxomatosis
The same tutorial page also mentions the following: > If you aren't able to see the Hello World command in the debug window, check the package.json file and make sure that engines.vscode version is compatible with the installed version of VS Code.Cheung
A
4

I had the same problem and found that the extensions required VsCode 1.74. Check the Log(Window) in the 'Extension Development Host`.

Armorer answered 2/1, 2023 at 0:24 Comment(0)
D
1

During development the extension will only live in the "guest" window that appears when you start debugging - this is where you should be looking for the contributed command (or anything else done by the extension).

The extension will appear in your VSCode instance if you install it - either by packaging it and installing it locally or by publishing it to the Extension Marketplace and then installing it from there.

Edit: I pulled your repo and ran the extension. Everything is working as expected. You're probably missing something.

Demonic answered 20/10, 2022 at 17:40 Comment(2)
Hitting F5 does give me another window named 'Extension Development Host` which is where I am trying to find Hello Word command. Is that not the correct window?Myxomatosis
"Extension Development Host" is the window you should be looking at, yes.Demonic
F
1

I had the same problem and when I go to help there I see restart to update. I just clicked on that tab and vs code restarted. After that I'm able to see the Hello World in command palette.

So try updating your VS Code or check help tab is there any updation required.

Fregger answered 3/2, 2024 at 4:11 Comment(0)
P
0

I had the same issue, but fixed it by updating VSCode. I'm on Ubuntu and have VSCode installed via snap. I had to make sure all VSCode processes were closed then ran the command snap refresh code.

Precess answered 6/3, 2023 at 17:12 Comment(0)
D
0

Check the version of vscode in package.json. It should match the vscode application version you are running.

 "engines": {
    "vscode": "^1.92.0"   
  },
Destructionist answered 7/8, 2024 at 2:58 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.