Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update VS Code to 1.92.1 #6941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
code-asher merged 7 commits into main from asher/vscode-1.92.0
Aug 16, 2024
Merged

Update VS Code to 1.92.1 #6941

code-asher merged 7 commits into main from asher/vscode-1.92.0
Aug 16, 2024

Conversation

Copy link
Member

@code-asher code-asher commented Aug 8, 2024
edited
Loading

Closes #6920

(削除) When building locally, bootstrap-node.js was missing...not sure what is going on there. (削除ここまで) Edit: Looks like the files are bundled now (into server-main.js). We could unbundle them again but I opted to call into server-main.js (took a small amount patching) since it also seems to do some nls stuff which is maybe important. Also it handles all that VS Code-specific environment variable stuff we were copying before.

The es2020 patch does not work. It results in invalid code. Not sure if this is a bug with whatever is doing the transpilation (tsc?) but unfortunately I had to remove it.

(削除) Still need to figure out what to do about the language stuff. (削除ここまで) (削除) I am going to see if our patch is still necessary. (削除ここまで) (削除) Edit: It is, but something about it does not quite work. (削除ここまで) Edit 2: Figured it out, looks like the browser needs a file that sets translations into a global so I am now generating that file locally since we cannot use Microsoft's CDN to pull down translations like how they have it set up.

(削除) Also need to look into the proxy URI test failing. (削除ここまで) A flake? Works fine locally.

@code-asher code-asher force-pushed the asher/vscode-1.92.0 branch 2 times, most recently from fe50409 to 6bac345 Compare August 12, 2024 22:38
Copy link

codecov bot commented Aug 12, 2024
edited
Loading

Codecov Report

Attention: Patch coverage is 31.57895% with 13 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@461d4cb). Learn more about missing BASE report.
Report is 1 commits behind head on main.

Files Patch % Lines
src/node/routes/vscode.ts 16.66% 9 Missing and 1 partial ⚠️
src/node/main.ts 57.14% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@
## main #6941 +/- ##
=======================================
 Coverage ? 72.62% 
=======================================
 Files ? 31 
 Lines ? 1903 
 Branches ? 411 
=======================================
 Hits ? 1382 
 Misses ? 441 
 Partials ? 80 
Files Coverage Δ
src/node/cli.ts 90.90% <ø> (ø)
src/node/util.ts 91.37% <ø> (ø)
src/node/main.ts 49.52% <57.14%> (ø)
src/node/routes/vscode.ts 24.74% <16.66%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 461d4cb...c8c75f8. Read the comment docs.

It looks like the bootstrap files are now bundled so we can no longer
require them. We could make them included again, but maybe it is better
to go through the main entrypoint anyway because it includes some nls
stuff which is maybe necessary.
This also fixes what looks like a bug where we could create two servers
if two requests came in. I am not sure what the practical consequences
of that would be, but it will no longer do that.
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.
@code-asher code-asher force-pushed the asher/vscode-1.92.0 branch 5 times, most recently from 6a9bd85 to fc4a977 Compare August 16, 2024 01:48
I think maybe because of the dropped es2020 patch that Webkit is now
failing because it is too old.
I am not sure what is going on but some tests on Webkit are timing out
and it seems the page is loaded but something is still trying to
download. Not good either way, but for now trying to at least get the
tests passing.
@code-asher code-asher marked this pull request as ready for review August 16, 2024 05:32
@code-asher code-asher requested a review from a team as a code owner August 16, 2024 05:32
@code-asher code-asher merged commit 34c6751 into main Aug 16, 2024
@code-asher code-asher deleted the asher/vscode-1.92.0 branch August 16, 2024 05:33
Copy link
Contributor

bilogic commented Aug 16, 2024

yay

Copy link
Contributor

benz0li commented Aug 16, 2024

code-server-4.92.2-rc.1-linux-amd64.tar.gz with Code 1.92.2 is deployed at https://coder.jupyter.b-data.ch.

Functionality [modified by patches] tested and found to work:

  • base-path
  • cli-window-open
  • local-storage
  • marketplace
  • proxy-url
  • service-worker
  • web view

Workspaces and Jupyter Notebooks also work fine:

  • ms-toolsai.jupyter@202470
  • ms-python.python@2024年12月3日

Copy link
Member Author

Huzzah thank you for testing!

yiliang114 pushed a commit to yiliang114/code-server that referenced this pull request Jan 23, 2025
* Update VS Code to 1.92.2
* Use server-main.js to load VS Code
It looks like the bootstrap files are now bundled so we can no longer
require them. We could make them included again, but maybe it is better
to go through the main entrypoint anyway because it includes some nls
stuff which is maybe necessary.
This also fixes what looks like a bug where we could create two servers
if two requests came in. I am not sure what the practical consequences
of that would be, but it will no longer do that.
* 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.
* Fix display language
* Update Playwright
I think maybe because of the dropped es2020 patch that Webkit is now
failing because it is too old.
* Do not wait for networkidle in e2e tests
I am not sure what is going on but some tests on Webkit are timing out
and it seems the page is loaded but something is still trying to
download. Not good, but for now try to at least get the tests passing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Update Code to 1.92

AltStyle によって変換されたページ (->オリジナル) /