Commit Graph

281 Commits

Author SHA1 Message Date
Matt Bierner 8bc23c9116 Aligning more markdown wording and UI
- Use `frontmatter` (one word)

- Align  `Show source` icon and text with the reopen with

- Make the `Open preview` in explorer use `reopen with` instead so you can nicely toggle the opened preview
2026-05-15 10:53:34 -07:00
Matt Bierner 719badd255 Merge pull request #316329 from microsoft/dev/mjbvz/profitable-marmot
Let markdown preview scripts mark themselves as modules
2026-05-13 16:09:58 -07:00
Matt Bierner 421cab3b7f Let markdown preview scripts mark themselves as modules
Fixes #316328
2026-05-13 15:42:00 -07:00
Matt Bierner 268eaf471d Add title and context menu for frontmatter in markdown preview
Follow up on #316140

Makes it easier to discover what the table is and hide it
2026-05-13 13:43:05 -07:00
Matt Bierner 06115d9e8f Add improved markdown front matter rendering
Fixes #316140

Let's try with `table` as the default initially but we can switch to `hide` is we prefer
2026-05-12 16:33:15 -07:00
Matt Bierner a8479a5493 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-08 17:01:02 -07:00
Matt Bierner 02103bdd48 Better restrict when toggle preview keybinding is enabled
Fixes #315171
2026-05-08 16:16:03 -07:00
Matt Bierner fbdf54506e Add document diff api proposal
This adds a propose api for computing the diff between two files. Custom diff editors can use this to make sure they have the same diffs that VS Code would use in it's built-in diff editor
2026-05-07 00:16:39 -07:00
Matt Bierner c21fce5c94 Merge branch 'main' into dev/mjbvz/only-gopher 2026-05-05 23:56:04 -07:00
Matt Bierner d2f4a23b5e Merge pull request #314588 from microsoft/dev/mjbvz/yodelling-fowl
Disable doubleClickToSwitchToEditor and markEditorSelection by default
2026-05-05 18:03:35 -07:00
Matt Bierner 7efafecbbe Disable doubleClickToSwitchToEditor and markEditorSelection by default
Fixes #314587
2026-05-05 16:41:34 -07:00
Matt Bierner dbdeef41f6 Enable markdown image context menu in custom editors too 2026-05-05 16:38:02 -07:00
Matt Bierner 2be149f698 Tweak markdown reopen command wording and icon
Trying to align these with the commands from core
2026-05-05 16:36:57 -07:00
Matt Bierner c2604688bc Merge branch 'main' into dev/mjbvz/comfortable-baboon 2026-05-04 22:29:22 -07:00
Matt Bierner e4e0fa64ea Merge pull request #313807 from microsoft/dev/mjbvz/md-ls-bump
Pick up latest md language server
2026-05-04 13:38:53 -07:00
Matt Bierner 7e3a9f8165 Add basic support for custom diff editors
For #138525
Fixes #298924

Markdown logic is a bit rough still but basics work

Co-authored-by: Copilot <copilot@github.com>
2026-05-01 15:44:27 -07:00
Matt Bierner 72c6a7f584 Bump service version too 2026-05-01 15:19:03 -07:00
Matt Bierner 27b49bc67f Pick up latest md language server
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 15:08:06 -07:00
Matt Bierner 9a8fa6565b Enable the toggle markdown preview command for agent diff views too
Doesn't work 100% nicely as once toggled back it switch back to the normal inline editor instead of back to the side by side diff view. Will follow up

Co-authored-by: Copilot <copilot@github.com>
2026-04-30 22:08:16 -07:00
Matt Bierner 7e5d09bf3f Enable toggle md preview in modals/agents 2026-04-30 12:38:57 -07:00
Matt Bierner cf0d8c6085 Merge branch 'main' into dev/mjbvz/adverse-kiwi 2026-04-29 23:00:54 -07:00
Matt Bierner dca631cfd7 Align more markdown settings strings
This makes `enabled` style settings use working more like we do in core

Co-authored-by: Copilot <copilot@github.com>
2026-04-29 22:02:48 -07:00
Matt Bierner 7b9366db79 Make it easy to switch current md doc between preview and edit mode
Fixes #312425

Also adds a toggle preview command
2026-04-29 21:19:08 -07:00
Matt Bierner d7f81372c1 Add groups for md extension configuration
Fixes #313363

Co-authored-by: Copilot <copilot@github.com>
2026-04-29 15:57:00 -07:00
Matt Bierner a8ed6f83b7 Revert to previous vscode-markdown-languageserver
This new version causes issues in the production build only. Fix is in https://github.com/microsoft/vscode-markdown-languageserver/pull/18 but reverting for now
2026-04-29 09:48:37 -07:00
Matt Bierner eed2fb43ec Merge pull request #313102 from microsoft/dev/mjbvz/alive-whale
Bump dom purify in extensions
2026-04-28 15:38:59 -07:00
Matt Bierner b1a7a65457 Bump dom purify in extensions
For #313084
2026-04-28 13:35:56 -07:00
Matt Bierner 525a7bd4ea Pick up latest md lang server 2026-04-28 13:06:55 -07:00
dependabot[bot] 1fc1079580 Bump picomatch from 2.3.1 to 2.3.2 in /extensions/markdown-language-features (#304920)
Bump picomatch in /extensions/markdown-language-features

Bumps [picomatch](https://github.com/micromatch/picomatch) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 2.3.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2026-03-26 21:47:56 +00:00
dependabot[bot] dcea9a598c Bump dompurify from 3.2.7 to 3.3.2 in /extensions/markdown-language-features (#299899)
Bump dompurify in /extensions/markdown-language-features

Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.2.7 to 3.3.2.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.2.7...3.3.2)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.3.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-09 10:48:14 -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
Raymond Zhao e987c5242e chore: bump extension versions (#295040) 2026-02-13 04:15:03 +05:00
Matt Bierner 37cdd0eb43 Fixing errors 2026-02-12 12:43:36 -08:00
Matt Bierner 5d33f345e1 Merge branch 'main' into dev/mjbvz/legitimate-squirrel 2026-02-12 12:37:14 -08:00
Matt Bierner 03561955b7 Clean up esbuilding of extensions
- Make sure we still always type check using `tsgo --noEmit`
- Align names of esbuild files
- Convert all esbuild files to typescript. We use the `.mts` extension to avoid annoying node warnings about using pacakges
2026-02-11 14:57:16 -08:00
Paul 12bce8da5a Agent skills management UX and file support (#287201) 2026-01-16 05:46:36 +11:00
Martin Aeschlimann 42434d7c15 Can't preview custom agents' markdown files (#286331) 2026-01-07 10:46:21 +00:00
Matt Bierner c679b20148 Merge branch 'main' into dev/mjbvz/legitimate-squirrel 2025-11-17 16:32:38 -08:00
Matt Bierner 723aa849c9 Convert gulpfiles to modules
Makes a pass through our top level gulpfiles to convert them to modules
2025-11-11 15:28:50 -08:00
Raymond Zhao 351866ef1a chore: use dompurify 3.2.7 (#271538) 2025-10-15 09:58:39 -07:00
Matt Bierner 1cc342a089 Merge branch 'main' into dev/mjbvz/legitimate-squirrel 2025-10-14 23:01:21 -07:00
Matt Bierner 98ad0f55db Proper fix for missing node types in web build
Using `path` in web for these cases is ok (but not ideal) because webpack shims it out
2025-10-14 12:14:28 -07:00
Matt Bierner 98b069c041 Work towards getting isolated built-in extension compiles
For #271167

This makes it so our built-in extensions can mostly be built using `tsc` on the command line. Previously the extensions were picking up a lot of typing info from the root `node_modules` that meant they weren't truly independent
2025-10-13 11:03:20 -07:00
Martin Aeschlimann cf1a93be3f Markdown: Open Preview - doesn't work for *.prompt.md files (#270417) 2025-10-08 20:09:33 +00:00
Matt Bierner 2de481e6cc Also update watch script 2025-10-03 14:18:29 -07:00
Matt Bierner a8101c12b5 Fix any cases in md extension
For #269213
2025-10-03 14:15:39 -07:00
Matt Bierner f272e51947 Convert esbuild scripts to modules
Planning to convert to typescript but want to do it in a few smaller steps
2025-08-07 20:04:44 -07:00
Matt Bierner 4b9b99ba7a Pick up latest md language server
For #248467
2025-07-25 16:07:10 -07:00
Martin Aeschlimann 25a8dd4f0b enable markdown language server for prompt files (#252656) 2025-06-30 14:19:00 -07:00
Matt Bierner d4d2f93bf7 Pick up latest vscode-markdown-languageserver 2025-05-20 19:28:34 -07:00