Commit Graph

45 Commits

Author SHA1 Message Date
Alexandru Dima cba69f9945 sudo :-) (#315439) 2026-05-09 07:22:37 +00:00
Matt Bierner 59240b668c Make .esbuild file a module
This prevents this annoying warning from getting printed all the time

```
[watch-copilot         ] [watch:esbuild  ] (node:12319) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/matb/projects/vscode/extensions/copilot/.esbuild.ts is not specified and it doesn't parse as CommonJS.
[watch-copilot         ] [watch:esbuild  ] Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
[watch-copilot         ] [watch:esbuild  ] To eliminate this warning, add "type": "module" to /Users/matb/projects/vscode/extensions/copilot/package.json.
[watch-copilot         ] [watch:esbuild  ] (Use `node --trace-warnings ...` to show where the warning was created)
```

Co-authored-by: Copilot <copilot@github.com>
2026-04-30 00:06:45 -07:00
Matt Bierner 4a8cccf2cd Use tsgo for typechecking copilot 2026-04-29 12:24:36 -07:00
Don Jayamanne 88fc27106a Add GitHub Copilot upgrader skill and CLI integration documentation (#310830)
* feat: add GitHub Copilot upgrader skill and CLI integration documentation

* Updates

* Update extensions/copilot/src/extension/chatSessions/copilotcli/AGENTS.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-16 20:14:30 +00:00
Matt Bierner 72c7ba84e0 Merge branch 'main' into dev/mjbvz/potential-narwhal 2026-04-09 10:58:10 -07:00
Matt Bierner 0f60dd3e7a Use core vscode*d.ts files for copilot 2026-04-09 10:53:58 -07:00
Christof Marti 16be18337a Move chat-lib workflow up 2026-04-09 16:27:21 +00:00
Bhavya U 945c0c61d9 Move docs/prompts.md to .github/instructions/model-prompts.instructions.md (#4942)
- Converted standalone doc into a scoped instructions file (applyTo: src/extension/prompts/node/agent/**)
- Fixed outdated method names (resolvePrompt -> resolveSystemPrompt, PromptConstructor -> SystemPrompt)
- Added resolver interface table, DI examples, resolution order docs
- Restored concrete examples for common model misbehaviors
- Auto-loads when editing agent prompt files
2026-04-02 18:38:27 +00:00
dependabot[bot] 7dbeca8e65 Bump the all group across 1 directory with 4 updates (#2660)
Bumps the all group with 4 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [actions/setup-node](https://github.com/actions/setup-node), [actions/cache](https://github.com/actions/cache) and [actions/upload-artifact](https://github.com/actions/upload-artifact).


Updates `actions/checkout` from 4 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

Updates `actions/setup-node` from 4 to 6
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

Updates `actions/cache` from 4 to 5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

Updates `actions/upload-artifact` from 5 to 6
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-30 18:12:26 +00:00
abdullahkhfb 20f34052aa fix: Copilot Chat issue template URL (#4757)
Fixes microsoft#4706
2026-03-27 17:58:21 +00:00
Michael Lively b28d7abab3 switch to gh hosted runners (#4734) 2026-03-26 20:47:31 +00:00
Don Jayamanne 90d46abea6 Update Copilot CLI tool mapping with new/updated tools from runtime (#4148)
* Update to Github Copilot npm package

* Udpates

* Updates

* Update Copilot CLI tool mapping with new/updated tools from runtime

* Update .github/prompts/updateCopilotCLIToolMapping.prompt.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-05 01:10:52 +00:00
Don Jayamanne 10d6233912 Update GitHub Copilot npm package to version 0.0.421 and adjust related SDK usage (#4217)
* Update to Github Copilot npm package

* Udpates

* Updates
2026-03-05 00:48:32 +00:00
Don Jayamanne 0a57b962d2 Upgrade to latest version of github copilot npm (#3923)
* Upgrade to latest version of github copilot npm

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-23 01:50:22 +00:00
Alex Ross 45bbb4f4da The reckoning: Update all the vscode.proposed.*.d.ts files (#3895)
* The reckoning: Update all the vscode.proposed.*.d.ts files
and run the update on post install

* Improve proposed update and check
- Pin it to a commit
- Require that update be run manually, not as post install
- Add PR check

---------

Co-authored-by: João Moreno <joaomoreno@users.noreply.github.com>
2026-02-20 14:06:58 +00:00
Don Jayamanne 58151ec8fe Adopt the latest github copilot npm (#3786)
* Adopt the latest github copilot npm

* Updates

* Updates

* Updates

* Updates

* Fixes

* Fixes

* Fixes

* Fixes

* Updates to the tests

* Fix tests
2026-02-19 08:46:17 +00:00
Tyler James Leonhardt 880370ce3c Update Anthropic SDK packages and fix temperature/top_p handling (#3446)
* Update Anthropic SDK packages

### `@anthropic-ai/sdk` (0.71.2 → 0.72.1)

#### Features
- Structured Outputs support in Messages API
- MCP SDK helper functions

#### Breaking Changes
- `output_format` → `output_config` parameter migration

### `@anthropic-ai/claude-agent-sdk` (0.2.5 → 0.2.31)

#### Features
- **Query interface:** Added `close()` method, `reconnectMcpServer()`, `toggleMcpServer()` methods
- **Sessions:** Added `listSessions()` function for discovering resumable sessions
- **MCP:** Added `config`, `scope`, `tools` fields and `disabled` status to `McpServerStatus`
- **PDF support:** Added `pages` field for reading specific page ranges
- **Debugging:** Added `debug` and `debugFile` options
- **Results:** Added `stop_reason` field to `SDKResultSuccess` and `SDKResultError`
- **Hooks:** Added notification hook support

#### Bug Fixes
- Fixed `mcpServerStatus()` to include tools from SDK and dynamically-added MCP servers
- Fixed PermissionRequest hooks in SDK mode
- Fixed structured output validation errors and empty assistant message handling

#### Breaking Changes
- `KillShellInput` → `TaskStopInput`: Updated type mapping in claudeTools.ts

Also improved upgrade documentation in AGENTS.md with GitHub release URLs
and consolidated summary format guidance.

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix erroring out by deleting the base's value of temperature & top_p, honoring the request.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-04 20:54:27 +00:00
Copilot 2f5758ebac Use IFileSystemService for trajectory export operations (#3387)
* Initial plan

* Use IFileSystemService instead of vscode.workspace.fs in trajectory export

Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>

* Use subAgentInvocationId to determine agent name for trajectories

Changed the trajectory agent name logic to use subAgentInvocationId presence
instead of subAgentName fallback. Now uses 'subagent' when subAgentInvocationId
is defined, and 'GitHub Copilot Chat' for the main agent.

* Revert "Use subAgentInvocationId to determine agent name for trajectories"

This reverts commit d045a1de6fc25a8e9abebf08bfdb607d4c9014b9.

* docs: Clarify service preference over extension APIs in copilot-instructions

Added guidance to prefer internal services (IFileSystemService, ILogService)
over VS Code extension APIs, with reasoning for testability and cross-platform
support.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: zhichli <57812115+zhichli@users.noreply.github.com>
Co-authored-by: Zhichao Li <zhichli@microsoft.com>
2026-02-03 05:42:09 +00:00
Rob Lourens 210f076c56 Delete 'related files' chat attachment feature (#3150) 2026-01-26 19:00:30 +00:00
Copilot 351a0df19d Reorganize instruction files and document Claude agent registries (#3018)
* Initial plan

* Reorganize instruction files for Claude agent integration

- Add Claude agent integration section to copilot-instructions.md with reference to AGENTS.md
- Simplify .claude/CLAUDE.md to reference copilot-instructions.md
- Move SDK documentation from CLAUDE.md to AGENTS.md
- Add comprehensive section on registries (hooks, slash commands, tool permissions) to AGENTS.md

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Address PR feedback: add vscode-node handlers and simplify CLAUDE.md

- Add VS Code-Node handlers section documenting askUserQuestionHandler
- Remove unnecessary sentence from CLAUDE.md

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Address PR feedback: add package.json info and reorganize Claude section

- Add package.json command registration example for slash commands
- Move Claude Agent Integration reference to External Integrations section for better organization

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>

* Update AGENTS.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update AGENTS.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update AGENTS.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-20 23:47:27 +00:00
Don Jayamanne ffc1496612 Ensure version of node is in sync with that in vscode repo (#2706)
* Ensure version of node is in sync with that in vscode repo

* Update other verions
2026-01-05 21:10:20 +00:00
Christof Marti de179fe3a6 Add GitHub workflow for chat-lib (#2606) 2025-12-16 18:06:53 +00:00
dependabot[bot] 36905ff8bc Bump actions/checkout from 5 to 6 in the all group (#2297)
Bumps the all group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 5 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-09 19:08:41 +00:00
Matt Bierner 36e2cfc997 Run local eslint rules directly as typescript (#2312)
* Run local eslint rules directly as typescript

Remove the need to use `tsx`

* Bump required node version

Matches the version we use in vscode repo

* Align node versions

* Always use `/`

* Try fixing windows

* Try another fix for windows

* Fix new rule after merge
2025-12-05 17:29:11 +00:00
Bhavya U d631d35f9b refactor: update CODEOWNERS to remove model prompts section (#2231) 2025-11-26 23:30:22 +00:00
Bhavya U a8b7533a04 Update CODEOWNERS to assign appropriate reviewers for model prompts (#2230) 2025-11-26 22:50:03 +00:00
dependabot[bot] b9435f2d97 Bump the all group with 5 updates (#1662)
Bumps the all group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `4` | `5` |
| [actions/setup-node](https://github.com/actions/setup-node) | `4` | `6` |
| [actions/setup-python](https://github.com/actions/setup-python) | `5` | `6` |
| [actions/setup-dotnet](https://github.com/actions/setup-dotnet) | `4` | `5` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4` | `5` |


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

Updates `actions/setup-node` from 4 to 6
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

Updates `actions/setup-python` from 5 to 6
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

Updates `actions/setup-dotnet` from 4 to 5
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v4...v5)

Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: actions/setup-dotnet
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Don Jayamanne <don.jayamanne@outlook.com>
2025-11-25 05:49:04 +00:00
Rob Lourens 17f63340fe Implement supportedEndoints for BYOK (#2065) 2025-11-18 19:24:11 +00:00
Dirk Bäumer 45b1b2311a Include completions core test during PR build (#1584)
* Include completions core test during PR build

* Implement a FakeCopilotTokenManager to run completions core test without a GitHub token

* Small naming fix

* Run tests also under Windows

* Fix running Windows tests
2025-10-27 10:01:26 +00:00
Bhavya U e8e99fdea3 Update codeowners (#1638) 2025-10-26 19:59:38 +00:00
Benjamin Christopher Simmonds ed4c68d543 Use Inline Suggestion Naming (#1461)
* Use Inline Suggestion Naming

* Update src/extension/inlineEdits/vscode-node/inlineCompletionProvider.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-21 10:56:55 +00:00
Peng Lyu 3a03b2ac67 fix copilot-setup-steps (#1198) 2025-09-30 21:25:21 +00:00
Rob Lourens b4a43ffd8d Implement claude code slash commands (#1181) 2025-09-29 02:55:47 +00:00
Copilot 6793ae80ce Add GitHub Actions workflow for Copilot setup steps (#993)
* Initial plan

* Add Node.js version checking and enhanced Copilot setup instructions

Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>

* Add .github/workflows/copilot-setup-steps.yml for Copilot agent environment setup

Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>

* Remove all changes except copilot-setup-steps.yml as requested

Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>

* Upgrade GitHub Actions runner to ubuntu-latest-4-cores for better performance

Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>

* upgrade to larger runners

* fix workflow dispatch

* fix dependencies build.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rebornix <876920+rebornix@users.noreply.github.com>
Co-authored-by: Peng Lyu <penn.lv@gmail.com>
2025-09-23 23:39:34 +00:00
Rob Lourens 2338ca3fdb Look further to find request with custom instruction attachments (#1039)
More for microsoft/vscode#262858
Probably this should be removed, and we should fix how these instructions are attached to requests from core
2025-09-14 03:03:13 +00:00
Rob Lourens c3353de769 Tweak custom instructions (#1028) 2025-09-12 02:45:58 +00:00
Megan Rogge 18bae51b1e add build task info to custom instructions for vscode-copilot-chat (#1013)
* fix #264387

* Update .github/copilot-instructions.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-10 20:50:15 +00:00
Rob Lourens cfd45009f4 Implement ChatSessionItemProvider (#781)
* Implement simple ChatSessionItemProvider

* Fall back to CC

* Maybe fix test
2025-08-27 18:35:32 +00:00
Harald Kirschner e77f2bc8b1 Add prompt-tsx instructions (#727)
* Add prompt-tsx instructions

* Remove prepare
2025-08-22 20:40:17 +00:00
Joel Verhagen 05e64e6d69 Use .NET SDK to search for NuGet packages, emit events, add tests for all package types (#546)
* Extract server.json from NuGet package during assisted install

* Use .NET CLI as much as possible

* Add tests, use GitHub Actions for .NET setup

* Localize user facing strings

* Update src/extension/mcp/vscode-node/nuget.ts

* Update src/extension/mcp/vscode-node/commands.ts

* switch to enum

* Use IFetcherService for npm, PyPI, and Docker Hub, use local package source for NuGet
2025-08-13 17:04:03 +00:00
Ladislau Szomoru dbdd2174cd Engineering - fix action (#239) 2025-07-14 18:45:29 +00:00
João Moreno 5977861174 split up PR and CI builds (#126)
* split up PR and CI builds:
- PR should only attempt to restore cache
- CI should only ensure node_modules

* also mkdir -Force

* pr workflow should still run on merge queue
2025-07-04 15:17:51 +00:00
Michael Lively cb6c81e2d6 add links to primary meta issues + descriptive triage label (#70) 2025-07-01 04:35:27 +00:00
Peng Lyu 9b39d8ec30 Update issue links. (#61) 2025-06-30 20:25:41 +00:00
kieferrm 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00