-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Add Hello World extension demonstrating VS Code extension development patterns #257754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: osortega <[email protected]>
…tation Co-authored-by: osortega <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Use yarn instead of npm
@copilot use yarn instead of npm |
The VS Code repository explicitly doesn't support yarn and requires npm instead. The preinstall script ( The Hello World extension currently uses the TypeScript compiler ( |
The VS Code repository explicitly doesn't support yarn and requires npm instead. The preinstall script ( The Hello World extension currently uses the TypeScript compiler ( |
@copilot Add a new script to execute yarn install |
@copilot Add a new script to execute yarn install |
I cannot add a script to execute yarn install because the VS Code repository explicitly doesn't support yarn. The preinstall script ( Any yarn install script would fail when executed due to this built-in check. The repository requires npm for all package management operations. |
I cannot add a script to execute yarn install because the VS Code repository explicitly prohibits yarn usage. The preinstall script ( Any yarn install script would immediately fail when executed due to this built-in check. The repository requires npm for all package management operations as part of its established architecture. |
This PR adds a complete "Hello World" extension to the VS Code repository that serves as a comprehensive example and template for VS Code extension development within the main codebase.
Features Added
The Hello World extension includes:
Hello: Hello World
- Shows a simple greeting messageHello: Show Workspace Info
- Displays current workspace informationCtrl+Shift+H
(orCmd+Shift+H
on Mac) for the Hello World commandbuild.sh
andbuild.bat
)Extension Structure
Development Integration
build/gulpfile.extensions.js
compilation listUsage
Developers can use this extension as:
Testing
To test the extension:
./build.sh
(orbuild.bat
on Windows) to compileCtrl+Shift+D
)F5
to start Extension Development HostCtrl+Shift+P
and type "Hello" to see commandsThis extension demonstrates essential VS Code extension development patterns including command registration, user interaction, workspace access, keyboard shortcuts, proper TypeScript compilation, and extension lifecycle management.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
electronjs.org
node-gyp
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.