-
Notifications
You must be signed in to change notification settings - Fork 0
VS Code Extension Activation and Contributions
YarCraSy edited this page Jul 8, 2026
·
2 revisions
package.json declares:
-
main:./dist/Extension.js. - activity bar container:
deepseek-copilot-sidebar. - webview view:
deepseek-copilot.chatView. - tree view/drop zone:
deepseek-copilot.dropZone. - commands:
deepseek-copilot.openChat,deepseek-copilot.addSelectionToChat.
VS Code automatically generates activation events from those contributions. Do not keep a manual activationEvents list unless there is a specific reason.
src/Extension.ts should:
- create
VsCodeToolWorkspace. - inject it into
core/tools. - create
WebviewProvider. - register
WebviewProvider.viewType. - create and register
DropZoneProvider. - register commands.
- add disposables to
context.subscriptions.
It should clear the tool workspace host to avoid references to VS Code APIs after the extension closes.