Commit Graph
1387 Commits
Author SHA1 Message Date
Henning DieterichsandCopilot d6abb42654 Implements rich link rendering in chat (#330925)
* implements rich link presentation in chats

* Allows settings to be set by experiments

* Fix rich link CI configuration

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

Copilot-Session: b8949987-7bbf-43c2-a7bb-ee6450ac74c7

---------

Copilot-Session: b8949987-7bbf-43c2-a7bb-ee6450ac74c7
2026-08-14 21:17:51 +00:00
Henning DieterichsandCopilot 2e8330a1b3 Add reactive rich links to the Markdown editor
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 478c4f91-5974-4fd3-a41e-24f5b6f6443d
2026-08-13 19:03:50 +02:00
Ulugbek AbdullaevandCopilot 65a921abc4 markdown: refactor: delegate task checkbox toggles to setTaskCheckboxChecked (#330441)
* markdown: refactor: use setTaskCheckboxChecked for task toggles

The webview hand-rolled the task checkbox source edit: it looked up the list
item offset, computed the '[ ]' range and applied a StringEdit itself. That
logic now lives in EditorModel.setTaskCheckboxChecked, so delegate to it.

This also fixes toggling in read-only mode. The old handler bailed out on
model.readonlyMode and then routed through applyEdit, which is itself
read-only gated, so clicking a rendered checkbox in read-only mode did
nothing. Read-only in this editor means markers hidden and no text editing
while selection and copy still work - a rendering and interaction mode
rather than a document permission - so setTaskCheckboxChecked deliberately
bypasses that gate while applyEdit, applyEditForSelection and
materializePendingParagraph stay gated.

Requires a @vscode/markdown-editor release containing
setTaskCheckboxChecked (microsoft/vscode-packages#253).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e9ec8741-eb31-42f3-9e0c-13e2add8e02d

* markdown: chore: update @vscode/markdown-editor to 0.0.2-70

Picks up `EditorModel.setTaskCheckboxChecked`, which the task checkbox
handler in `markdown-editor-src/editor.ts` delegates to.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e9ec8741-eb31-42f3-9e0c-13e2add8e02d

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e9ec8741-eb31-42f3-9e0c-13e2add8e02d
2026-08-13 14:10:10 +05:00
Dirk Baeumer 53a329772b Merge branch 'main' into dbaeumer/eslint-10 2026-08-11 15:59:08 +02:00
Ulugbek Abdullaev f64589a9d5 update md editor to latest (#330194) 2026-08-11 10:29:30 +00:00
Dirk Baeumer 0edf2a0693 Merge branch 'main' into dbaeumer/eslint-10 2026-08-11 11:50:01 +02:00
Henning Dieterichs 28a37ffe0f Dont show reopen as preview/text in agents window, as editor type dropdown offers this (#329601) 2026-08-07 15:22:23 +00:00
Henning Dieterichs c422acaa84 improves markdown editor loading performance by inlining initial document value & lazy loading mermaid (#329567)
* improves markdown editor loading performance by inlining initial document value & lazy loading mermaid

* Fix ci

---------

Copilot-Session: cc22260e-0d9b-466e-b940-9ccd945fe22d
2026-08-07 13:26:09 +00:00
Henning DieterichsandCopilot 97e7e43dc0 Version Markdown code block editor API
Require dynamic code block editor contributions to declare an API version and expose providers through the namespaced V1 extension API. Unsupported versions are ignored before they are advertised to the Markdown editor.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 52d9b18a-7144-4b00-9fe2-d2672f2a5e12
2026-08-07 14:36:58 +02:00
Henning DieterichsandCopilot 5ce270610e Fix pasting in Markdown editor
Use the async clipboard strategy designed for VS Code webviews so paste reaches the EditContext-backed editor.

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

Copilot-Session: 094798e8-9ed5-4fcc-95bc-949de48c691d
2026-08-07 12:54:17 +02:00
Henning Dieterichs 832de4663f Add message authentication for Markdown editor webview communication (#329554) 2026-08-07 09:07:46 +00:00
Henning DieterichsandCopilot 9950fa3b6c Mark generated Markdown editor localization entries
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 999f638b-185c-4f4c-8d5c-1e21c9fe71e5
2026-08-07 10:42:53 +02:00
Henning DieterichsandCopilot 109997242d Address Markdown editor command review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 999f638b-185c-4f4c-8d5c-1e21c9fe71e5
2026-08-07 10:42:53 +02:00
Henning Dieterichs c1d2babd1d regiters markdown editor commands as vscode commands, so that shortcuts can be customized 2026-08-07 10:42:53 +02:00
swwind beab7a2a9d eslint: update to ESLint 10 2026-08-07 12:01:10 +08:00
Lee Murrayandmrleemurray 618d34fa96 Fix SVG paths for consistency in preview files (#329410)
fix: update SVG paths in preview-dark and preview-light files for consistency

Co-authored-by: mrleemurray <mrleemurray@users.noreply.github.com>
2026-08-06 21:48:10 +00:00
Henning Dieterichs b017b983a6 Allows extension to contribute code block editors (#329376) 2026-08-06 10:49:54 +00:00
Henning DieterichsandCopilot 749a4c6cdd Remove experimental label from Markdown editor
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: e907b5c4-e7e6-4c63-9ab4-7efa04393318
2026-08-05 19:17:28 +02:00
Henning Dieterichs 5397335b7b Finalizes customEditorPriority proposal. Closes https://github.com/microsoft/vscode/issues/292379 (#329002) 2026-08-04 18:24:33 +00:00
Henning Dieterichs f421a30ac4 Explains how to develop the markdown editor (#329009) 2026-08-04 18:12:03 +00:00
dependabot[bot] c52f6d5e3e build(deps): bump @vscode/markdown-editor from 0.0.2-40 to 0.0.2-41 in /extensions/markdown-language-features (#328697)
build(deps): bump @vscode/markdown-editor

Bumps [@vscode/markdown-editor](https://github.com/microsoft/vscode-packages/tree/HEAD/vscode-team-tools/packages/markdown-editor) from 0.0.2-40 to 0.0.2-41.
- [Commits](https://github.com/microsoft/vscode-packages/commits/HEAD/vscode-team-tools/packages/markdown-editor)

---
updated-dependencies:
- dependency-name: "@vscode/markdown-editor"
  dependency-version: 0.0.2-41
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-04 01:03:47 +05:00
Henning DieterichsandCopilot cfc79ce010 editor priority: renames never to explicit (#328495)
* editor priority: renames never to explicit

* Update editor type picker priority test

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9c58be62-6f9c-4386-8b05-6ef7594a8bf6

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9c58be62-6f9c-4386-8b05-6ef7594a8bf6
2026-08-01 23:04:13 +00:00
Henning Dieterichs c5f0840e78 Render Markdown diffs in the Markdown editor 2026-07-31 18:50:59 +02:00
Ulugbek AbdullaevandCopilot 2f841fe001 markdown: fix: route undo and redo to the document history (#328245)
* markdown: fix: route undo and redo to the document history

The Agents window Markdown editor attaches an EditContext, so the browser
keeps no native undo history and the Cmd+Z / Cmd+Shift+Z chords never
reached VS Code. Wire them to the backing TextDocument's own history:

- editor.ts: pass a `historyStrategy` to `EditorController` that posts
  `{ type: 'history', command }` to the extension. `record` is omitted so
  the TextDocument stays the single source of truth (no second local stack
  that would drift from the Edit menu, dirty state and hot exit).
- markdownEditorProvider.ts: run the built-in `undo`/`redo` command; the
  active custom editor input scopes it to the resource's IUndoRedoService.
- editor.ts: apply host `update` via `replaceSourceText` instead of
  `sourceText.set`, so the caret is mapped through the change (e.g. after an
  undo shrinks the document) and stale pending-paragraph state is cleared.

Depends on the @vscode/markdown-editor API from microsoft/vscode-packages#189;
the pinned version must be bumped once that is published.

Fixes microsoft/vscode#327535

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b5b60dce-b175-4fe6-b2b5-d18a229c9929

* markdown: chore: bump @vscode/markdown-editor to 0.0.2-40

Pick up the published `@vscode/markdown-editor` release that ships the
`IHistoryStrategy` / `EditorControllerOptions.historyStrategy` and
`EditorModel.replaceSourceText` APIs (microsoft/vscode-packages#189) the
undo/redo integration depends on. Dependency set is unchanged from
0.0.2-26; lockfile integrity matches the published tarball.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b5b60dce-b175-4fe6-b2b5-d18a229c9929

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b5b60dce-b175-4fe6-b2b5-d18a229c9929
2026-07-31 10:03:48 +05:00
dependabot[bot] abf2ee04c6 build(deps): bump @vscode/markdown-editor
Bumps [@vscode/markdown-editor](https://github.com/microsoft/vscode-packages/tree/HEAD/vscode-team-tools/packages/markdown-editor) from 0.0.2-26 to 0.0.2-37.
- [Commits](https://github.com/microsoft/vscode-packages/commits/HEAD/vscode-team-tools/packages/markdown-editor)

---
updated-dependencies:
- dependency-name: "@vscode/markdown-editor"
  dependency-version: 0.0.2-37
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-30 17:06:28 +02:00
Henning Dieterichs 019bc8f763 Apply smaller markdown editor edits (#328215) 2026-07-30 14:47:10 +00:00
Rushil Patel (rusp) 4f612f37b7 feat: add copy button to code blocks in markdown preview (#323609) 2026-07-28 23:14:03 +00:00
vs-code-engineering[bot] c22a6dbcfd [cherry-pick] markdown: confirm opening editor in untrusted workspaces 2026-07-28 16:50:47 +02:00
Henning Dieterichs f090ec168f Allows to load relative files from the current workspace (if trusted) 2026-07-28 15:20:39 +02:00
Henning Dieterichs aac8a5aabd Fixes reveal comments in md editor bug 2026-07-28 15:20:39 +02:00
dependabot[bot] 578fe0edf4 build(deps): bump @vscode/markdown-editor
Bumps [@vscode/markdown-editor](https://github.com/microsoft/vscode-packages/tree/HEAD/vscode-team-tools/packages/markdown-editor) from 0.0.2-24 to 0.0.2-26.
- [Commits](https://github.com/microsoft/vscode-packages/commits/HEAD/vscode-team-tools/packages/markdown-editor)

---
updated-dependencies:
- dependency-name: "@vscode/markdown-editor"
  dependency-version: 0.0.2-26
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-28 14:15:30 +02:00
vs-code-engineering[bot] 6c0924308d [cherry-pick] markdown: Update editor package to 0.0.2-24 2026-07-27 15:09:49 +02:00
dependabot[bot] 8f722dacb9 Bump @vscode/markdown-editor in /extensions/markdown-language-features
Bumps [@vscode/markdown-editor](https://github.com/microsoft/vscode-packages/tree/HEAD/vscode-team-tools/packages/markdown-editor) from 0.0.2-16 to 0.0.2-21.
- [Commits](https://github.com/microsoft/vscode-packages/commits/HEAD/vscode-team-tools/packages/markdown-editor)

---
updated-dependencies:
- dependency-name: "@vscode/markdown-editor"
  dependency-version: 0.0.2-21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-26 17:07:47 +02:00
Raymond ZhaoandDmitriy Vasyura 24be8b3cb4 chore: npm audit fix (#326903)
Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
2026-07-22 09:23:06 -07:00
Henning DieterichsandCopilot 0b8aecc979 Open Markdown editor in locked mode by default
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7b43a840-f95d-4a84-b488-308f21495865
2026-07-20 16:54:45 +02:00
Dirk Bäumer 7e4e91cab4 Adapt to TypeScript 7 (#325757)
* Adapt TypeScript 7

* Ensure that we always call TS7 from spawnTsgo

* Fix package lock file

* tsc - tsc6

* More tsc -> tsc6

* More TSGO conversion

* More moves from tsgo -> tsc

* Fix tsgo resolving in extension folder

* Call TS7 compiler directly

* Update package-lock.json

* Remove tsc:version again
2026-07-14 12:34:04 +02:00
Henning Dieterichs e2c0ad9ffc markdown editor update 2026-07-11 15:14:54 +00:00
Henning Dieterichs 42a44c0a9c Fixes ci 2026-07-08 17:47:52 +02:00
Henning Dieterichs aaea53646d Don't show comment widget when commenting is not possible 2026-07-08 17:47:52 +02:00
Henning Dieterichs 8c7ce711c9 Fixes ci 2026-07-08 15:13:49 +02:00
Henning Dieterichs 82d7e530a1 Fixes #323297 2026-07-08 15:13:49 +02:00
Henning DieterichsandCopilot 833244d55b Custom editors opt out of diff/merge by default via never priority
Introduce a `never` editor priority and make custom editors opt out of
diff and merge editors by default instead of requiring users to reset
via `workbench.diffEditorAssociations`.

- Add `RegisteredEditorPriority.never` / `CustomEditorPriority.never`
  (rank 0). A `never` editor is never auto-selected for that input type
  and is skipped by general `workbench.editorAssociations`, but can
  still be forced by `workbench.diffEditorAssociations` or picked via
  `Reopen Editor With...`.
- Resolve the `customEditors` contribution priority per input type:
  string / omitted priorities map diff and merge to `never`; only an
  explicit `diffEditor` / `mergeEditor` opts the editor back in.
- Filter general editor associations that point at a `never` editor for
  the requested input type in the editor resolver.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-07-07 19:27:11 +02:00
Henning Dieterichs 93ad71ca81 Fixes tsconfig 2026-07-07 10:54:18 +02:00
Henning Dieterichs 47ec96853f updates markdown editor and enables comment feature 2026-07-07 10:54:18 +02:00
Raymond Zhao b7e0a87054 chore: run npm audit fix (#323165) 2026-06-29 13:31:39 -07:00
dependabot[bot]andRaymond Zhao 2fd704bc68 build(deps): bump markdown-it from 12.3.2 to 14.2.0 in /extensions/markdown-language-features (#321532)
build(deps): bump markdown-it in /extensions/markdown-language-features

Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 12.3.2 to 14.2.0.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/12.3.2...14.2.0)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.2.0
  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-06-29 19:05:37 +00:00
Henning Dieterichs a9f0f574fc adds proposed createQuickDiffInformation API, adopts it in markdown editor. (#323470)
* adds proposed createQuickDiffInformation API, adopts it in markdown editor.

* Extends textEditorDiffInformation proposal instead of having new quickDiff proposal
2026-06-29 16:37:26 +00:00
Henning Dieterichs 5b839e0737 Updates markdown editor (#322577)
* updates markdown editor

* fixes class names
2026-06-23 10:40:07 -07:00
Henning Dieterichs 9837699041 Fixes markdown editor dirty on open 2026-06-22 20:16:03 +02:00
dependabot[bot] 93c7f885fc Bump dompurify from 3.4.8 to 3.4.10 in /extensions/markdown-language-features (#321534)
Bump dompurify in /extensions/markdown-language-features

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

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.10
  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-06-16 23:17:53 +00:00