Skip to content

Commit 56460cb

Browse files
committed
Drop es2020 patch
Unfortunately, VS Code will not load with this. It seems to be because `this` is being used in static properties, and it becomes `void 0` for some reason under the es2020 target. For example: static PREFIX_BY_CATEGORY = `${this.PREFIX}${this.SCOPE_PREFIX}`; becomes AbstractGotoSymbolQuickAccessProvider.PREFIX_BY_CATEGORY = `${(void 0).PREFIX}${(void 0).SCOPE_PREFIX}`; Which, obviously, will not work. Older versions of Safari (and maybe other browsers) are likely affected.
1 parent 4b9aa6e commit 56460cb

File tree

3 files changed

+7
-69
lines changed

3 files changed

+7
-69
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ Code v99.99.999
2424

2525
Code v1.92.1
2626

27+
### Breaking changes
28+
29+
- Dropped a patch that changed the compile target from es2022 to es2020 because
30+
it no longer works with the way VS Code uses static properties. This may break
31+
older browsers, so those browsers will either have to be updated or use an
32+
older version of code-server.
33+
2734
### Changed
2835

2936
- Updated to Code 1.92.1.

patches/safari.diff

-68
This file was deleted.

patches/series

-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ external-file-actions.diff
1717
telemetry.diff
1818
cli-window-open.diff
1919
getting-started.diff
20-
safari.diff
2120
keepalive.diff
2221
clipboard.diff

0 commit comments

Comments
 (0)