Skip to content

Extensions: Remove the Code Editor extension - #1048

Merged
epeicher merged 1 commit into
trunkfrom
remove/code-editor-extension
Oct 23, 2026
Merged

epeicher merged 1 commit into
trunkfrom
remove/code-editor-extension

Conversation

@epeicher

@epeicher epeicher commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

What it does

Removes the bundled Code Editor extension (extensions/desktop-mode-code-editor/). The README now points to desktop-mode-official-extensions, where the extension also lives.

Nothing in the core plugin loads it, and CI never built or tested it.

Rationale

The Code Editor is an optional sibling plugin, and it already has a home in the official-extensions repository. Keeping a second copy here means two copies drifting apart.

The copy in the official-extensions repo is brought up to date in AllTerrainDeveloper/desktop-mode-official-extensions#3.

Implementation

  • Deletes extensions/desktop-mode-code-editor/ and docs/examples/code-editor-open.md, and removes the links to that example and the os-code-open row in docs/api-index.md, since core never handled that message.
  • docs/javascript-reference.md still uses wpdc-editor in its openWindow example, now linking to the official-extensions repo.
  • Removes the code editor from docs/hooks-reference.md, docs/RELEASE.md, bin/extract-i18n.sh and a comment in bin/package-extensions.sh.
  • Removes the wpdc prefix from the phpcs.xml.dist allowlist. phpcs already excluded /extensions/ and no core PHP uses the prefix.

Left as is: the wpDesktopNativeWindows compatibility bag in src/native-windows.ts, which external copies of the extension still write to, and wpdc-editor as an example id in the Window.send / Window.on docs.

Stacked under #1049, which removes the Cron Manager the same way.

Testing instructions

npm run build && npm run lint && npm run typecheck && npm run test:js
npm run lint:php

The first four scripts passed locally (test:js: 543 files, 6,899 tests). lint:php needs its wp-env container, so phpcs -n ran directly over the same tree instead and was clean. ./bin/package-extensions.sh should now produce one zip per remaining extension, with no desktop-mode-code-editor.zip.

Open WordPress Playground Preview

The Code Editor lives in AllTerrainDeveloper/desktop-mode-official-extensions,
so drop the bundled copy and the docs, packaging and lint references that
pointed at it. The README now points at that repository.
@epeicher
epeicher added this pull request to stack #1050 October 23, 2026 16:18
@epeicher
epeicher merged commit 352b655 into trunk Oct 23, 2026
7 checks passed
@epeicher
epeicher deleted the remove/code-editor-extension branch October 23, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant