Commit Graph

42 Commits

Author SHA1 Message Date
Matt Bierner
13a604e50c Revert "Revert "Port github extension to use esbuild" (#298920)"
This reverts commit 51f5cafd6f.
2026-03-09 08:10:36 -07:00
Sandeep Somavarapu
2b32258b0e merge to main (#299794)
* sessions - fix chat input shrinking at narrow widths (#299498)

style - set width to 100% for `interactive-input-part`

* modal - force focus into first modal editor always

* fix: update precondition for FixDiagnosticsAction and hide input widget on command execution (#299499)

fixes https://github.com/microsoft/vscode/issues/299251

* refactor: remove workspace context service dependency from FolderPicker

* Add logging for agent feedback actions

* modal - some fixes to actions and layout

* modal - surface some editor actions in a new toolbar (#299582)

* modal - surface some editor actions in a new toolbar

* ccr

* keybindings - remove "Edit as JSON" as its now available from the title menu

* settings - remove "Edit as JSON" as its now available from the title menu

* update hover fixes

* terminal fixes

* terminal improvements

* Sessions: fix auth scopes of gh FSP

* sessions customizations: make it easier to scan mcp/plugin marketplac… (#299636)

sessions customizations: make it easier to scan mcp/plugin marketplace list

* sessions: add built-in prompt files with override support (#299629)

* sessions: add built-in prompt files with override support

Ship bundled .prompt.md files with the Sessions app that appear as
slash commands out of the box. Built-in prompts use a BUILTIN_STORAGE
constant (cast as PromptsStorage) defined in the aiCustomization layer,
avoiding changes to the core PromptsStorage enum and prompt service types.

- AgenticPromptsService discovers prompts from vs/sessions/prompts/
  at runtime via FileAccess and injects them into the listing pipeline
- Override logic: user/workspace prompts with matching names take
  precedence over built-in ones
- Built-in prompts open as read-only in the management editor
- Sessions tree view, workspace service, and counts handle BUILTIN_STORAGE
- Add /create-pr as the first built-in prompt
- Bundle prompt files via gulpfile resource includes

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

* Update src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.ts

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

* sessions: use AICustomizationPromptsStorage type for builtin storage

Adopt the new AICustomizationPromptsStorage union type in the sessions
tree view method signature. Use string-keyed Records and targeted casts
at the PromptsStorage boundary to stay type-safe.

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

* sessions: remove PromptsStorage casts, widen IStorageSourceFilter

Use AICustomizationPromptsStorage in sessions-local interfaces
(IAICustomizationGroupItem, IAICustomizationFileItem) and widen
IStorageSourceFilter.sources to readonly string[] so BUILTIN_STORAGE
flows through without casts. The only remaining cast is at the
IPromptPath creation boundary in AgenticPromptsService.

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

* sessions: move BUILTIN_STORAGE to sessions common layer

Move AICustomizationPromptsStorage type and BUILTIN_STORAGE constant
from the workbench browser UI module to sessions/contrib/chat/common
so that AgenticPromptsService (a service) does not depend on UI code.

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

---------

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

* sessions: fix ESLint dangerous type assertion in builtin prompts (#299663)

Replace the `as IPromptPath` cast in discoverBuiltinPrompts with a
createBuiltinPromptPath factory function that contains the type
narrowing in one place, satisfying the code-no-dangerous-type-assertions
ESLint rule.

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

* Enhance Agent Sessions Control and Renderer with observable active session resource

* fix terminal

* Enable model management in NewChatWidget

* review feedback

* different competion settings for copilot markdown and plaintext

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
Co-authored-by: Johannes Rieken <johannes.rieken@gmail.com>
Co-authored-by: BeniBenj <besimmonds@microsoft.com>
Co-authored-by: Osvaldo Ortega <osortega@microsoft.com>
Co-authored-by: Josh Spicer <23246594+joshspicer@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-06 09:09:01 -08:00
Christof Marti
51f5cafd6f Revert "Port github extension to use esbuild" (#298920) 2026-03-03 12:40:44 +01:00
Matt Bierner
9e0a44acc3 Port github extension to use esbuild
Had to make same fixes as with #296355. We can't pull in const enums from a d.ts file like this
2026-03-02 11:28:35 -08:00
Osvaldo Ortega
756602da18 Set GitHub context for open pull requests based on session resolution 2026-02-26 16:26:55 -08:00
Osvaldo Ortega
c040dd4b13 Refactor pull request handling to open repository page on API failure and update command to open pull request 2026-02-26 15:18:43 -08:00
Osvaldo Ortega
19a12a4ff3 Update pull request state handling to include all states in checks 2026-02-26 15:16:05 -08:00
Osvaldo Ortega
7c32c58bbd Remove 'state: open' from pull request creation and check functions 2026-02-26 15:09:54 -08:00
Osvaldo Ortega
c4f26872d1 Add command to check for open pull requests and refactor session repository resolution 2026-02-26 15:08:16 -08:00
Osvaldo Ortega
0d0acbcde2 remove unnecessary context setting for open pull request in createPullRequest function 2026-02-26 11:58:29 -08:00
Osvaldo Ortega
21049d3dc8 add openPullRequest command and update related logic in GitHub extension 2026-02-26 11:55:52 -08:00
Benjamin Pasero
b1009c98bb Sessions exploration (#294912) 2026-02-17 14:14:39 +00:00
Johannes Rieken
cb0950e9d7 Migrate github extension to ESM (2nd attempt) (#248312)
* Revert "GitHub - revert ESM migration (#247322)"

This reverts commit 2047ab0fff.

* use `"@vscode/extension-telemetry": "^1.0.0"` which doesn't use default export anymore
2025-05-07 15:52:46 +02:00
Ladislau Szomoru
2047ab0fff GitHub - revert ESM migration (#247322)
* Revert "fix github extension bundling (#247314)"

This reverts commit 0cffb673f5.

* Revert "migrate github-extension to ESM"

This reverts commit 493874c390.

* Add missing JS file
2025-04-24 19:24:59 +02:00
Johannes
493874c390 migrate github-extension to ESM 2025-04-16 16:04:12 +02:00
Ladislau Szomoru
bb655894c2 GitHub - add "Open on GitHub" action to timeline context menu (#238144) 2025-01-17 09:19:04 -08:00
Ladislau Szomoru
eaba97f995 Git - extract history item detail provider (#238041)
* Initial refactor of hover commands

* Delete old code for hover commands

* More refactoring
2025-01-16 11:37:27 +01:00
Ladislau Szomoru
57e8c28877 GitHub - link provider for various hovers (#237961)
* Initial implementation

* Refactor code, add link to blame decoration

* Add links to timeline hover

* Saving my work

* Update remote order for "Open on GitHub" action

* Bug fixes

* Add link provider for graph hover

* Rename method
2025-01-15 16:30:43 +01:00
Ladislau Szomoru
924d7a84bf SCM - Add "Open on GitHub" action to history item hover (#237893) 2025-01-14 15:10:20 +01:00
Ladislau Szomoru
9ee0345b63 Git - fix "Open on GitHub" command (#237832) 2025-01-14 11:45:03 +01:00
Ladislau Szomoru
9bb633aaf7 GitHub - add "Open on GitHub" action to the SCM graph (#237635) 2025-01-10 13:52:01 +01:00
Ladislau Szomoru
dca80ea667 GitHub - add "Open on GitHub" to blame hover (#237514)
* WIP - saving my work

* Refactor hover rendering code
2025-01-08 11:34:54 -08:00
Joyce Er
b114662b7a Don't validate publish state for Continue On (#186410) 2023-06-27 11:50:52 -07:00
Joyce Er
31478cefc5 Ask user to commit/push changes when copying links (#185802)
* Ask user to commit/push changes when copying links

* Don't show an error message for cancellation errors
2023-06-22 00:28:32 +02:00
Joyce Er
9f081fd11a Open branches on vscode.dev from ref picker (#181549) 2023-05-24 11:23:40 +02:00
Joyce Er
180f909fac Avoid double encoding vscode.dev links (#181002) 2023-04-27 08:48:29 +02:00
Joyce Er
602c01b268 Encode filepaths with whitespace in links (#179167) 2023-04-04 23:27:40 +02:00
Joyce Er
eb57ab314b vscode.dev links should be head links (#179074) 2023-04-03 19:48:02 -07:00
Johannes Rieken
1db217a0e2 Revert "Introduce share links in more places via a contrib" (#177328)
Revert "Introduce share links in more places via a contrib (#177311)"

This reverts commit e9ff97aa0f.
2023-03-16 11:27:25 +01:00
Joyce Er
e9ff97aa0f Introduce share links in more places via a contrib (#177311)
* Introduce share links in more places via a contrib

* Update `build/lib/i18n.resources.json`
2023-03-16 09:15:15 +01:00
Joyce Er
2b44aa50fd vscode.dev links in share and editor gutter menus (#176104) 2023-03-04 06:50:57 +01:00
Joyce Er
9b994545f1 Generate head links for Continue Edit Session (#159833) 2022-09-02 16:32:48 +10:00
Alex Ross
a3b712e04e Create a insiders.vscode.dev link when I use insiders for sharing (#156436)
Fixes #156255
2022-07-27 10:55:08 -04:00
Joyce Er
73b34320c1 Add ability to continue desktop edit session in vscode.dev 2022-07-15 15:51:51 -07:00
Alex Ross
48fef0c1da Share link from File Menu shouldn't include active file (#153911)
Fixes #153537
2022-07-01 15:04:12 +02:00
Alex Ross
ffe53e8d71 Add a Share menu and a share vscode.dev command (#152765)
* Add a share menu
Fixes #146309

* Add vscod.dev command in github extension

* Make share menu proposed

* Add share submenu into editor context

* Add proposed to editor share menu
2022-06-27 09:56:36 +02:00
Joao Moreno
06e1a2d4e0 fixes #139631 2022-01-11 20:59:54 +01:00
João Moreno
ffda3a18cc fixes #100183 2020-07-01 10:51:55 +02:00
João Moreno
4bb364cc8e github: publish workspace folder 2020-05-19 11:57:41 +02:00
João Moreno
a85a2e6044 move credential provider to github 2020-05-18 21:04:29 +02:00
João Moreno
b629dba454 export to, clone from github 2020-05-18 15:51:15 +02:00
João Moreno
ee4e97fe6a publish command 2020-05-18 14:59:22 +02:00