-
Notifications
You must be signed in to change notification settings - Fork 84
feat: stub some hooks for the MCP server #1107
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
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.
Pull Request Overview
This PR adds stubbed hooks for an MCP (Model Context Protocol) server, bumps VSCode types version, and fixes compilation errors that arose from the version update.
- Adds MCP server controller with start/stop functionality
- Updates VSCode types from 1.94.0 to 1.103.0
- Fixes icon path type changes from strings to
vscode.Uri
- Updates test mocks to handle new VSCode API structure
Reviewed Changes
Copilot reviewed 27 out of 28 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/mcp/mcpController.ts | New MCP controller with server definition provider and start/stop methods |
src/mdbExtensionController.ts | Integrates MCP controller and registers start/stop commands |
src/commands/index.ts | Adds MCP server start/stop command definitions |
package.json | Updates VSCode types and adds MCP server dependencies |
src/explorer/*.ts | Updates icon path types from string to vscode.Uri |
src/test/suite/stubs.ts | Adds encoding property to text document mock |
src/test/suite/participant/participant.test.ts | Refactors chat request mocks and updates message content handling |
Multiple test files | Updates icon path assertions to use toString() method |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
.gitattributes
Outdated
@@ -0,0 +1,2 @@ | |||
package-lock.json linguist-vendored |
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.
what does this mean? (I googled it and it still isn't immediately obvious to me)
"vscode": "^1.101.1", | ||
"node": "^20.19.0 || ^22.12.0 || >= 23.0.0", |
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.
Question: Should we check at some data on how many users are on version below the one mentioned here before proceeding with this?
Description
Bumps the vscode types version and fixes some compile errors.