Skip to content

chore: upgrade Code to 1.73.0 #5751

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
merged 25 commits into from
Nov 9, 2022
Merged

chore: upgrade Code to 1.73.0 #5751

merged 25 commits into from
Nov 9, 2022

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Nov 3, 2022

Description

This upgrades Code to 1.73.0 via the tag.

Patches tested manually

  • cli-window-open
  • disable-builtin-ext-update
  • getting-started
  • insecure-notification
  • integration
  • local-storage
  • logout
  • marketplace
  • proposed API
  • service worker
  • sourcemaps
  • store socket
  • unique-db
  • webview

TODOs

  • fix telemetry
  • fix update-check
  • fix failing unit tests

Fixes #5749

@jsjoeio jsjoeio self-assigned this Nov 3, 2022
async getBuiltInExtensionTranslationsUri(id: string): Promise<URI | undefined> {
@@ -73,6 +79,6 @@ export class WebLanguagePacksService ext

// Web doesn't have a concept of language packs, so we just return an empty array
getInstalledLanguages(): Promise<ILanguagePackItem[]> {
- return Promise.resolve([]);
+ return this.languagePackService.getInstalledLanguages()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the only change I was hesitant about. Hope I did it right. I will test them all after first review.

@@ -53,7 +53,14 @@ export class BrowserWorkbenchEnvironment
get logFile(): URI { return joinPath(this.logsHome, 'window.log'); }
@@ -78,7 +78,14 @@ export class BrowserWorkbenchEnvironment
get logFile(): URI { return joinPath(this.windowLogsPath, 'window.log'); }

@memoize
- get userRoamingDataHome(): URI { return URI.file('/User').with({ scheme: Schemas.vscodeUserData }); }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm...this seems like it got dropped unintentionally. Guessing I'll need to fixup this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay doube-checked: seems fine as is.

- content="default-src 'none'; script-src 'sha256-wwaDxsm1+SKIUb5YJXiZlYMyV7QPB8+zd6HPcTjigZs=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
+ content="default-src 'none'; script-src 'sha256-IZkGO4jZeUn7pzM6pBZCZc9bUYm8oVNV3z8zEa8gxlk=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
- content="default-src 'none'; script-src 'sha256-lC8sxUeeYqUtmkCpPt/OX/HQdE0JbHG1Z3dzrilsRU0=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
+ content="default-src 'none'; script-src 'sha256-/9/YQU12wvTeVXCsIGB4shLwdWrMceCpKojfkloNjPU=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From testing the markdown preview and simple browser, it seemed like these were okay.

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Nov 3, 2022

Weird CI failures:

error CodeServerRouteWrapper: TypeError: this.args.log?.find is not a function

Probably related to some of the patch work I need to address (i.e. unintended changes).

This upgrades Code to 1.73.0 via the tag.
Only change here was they moved
lib/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts

so I had to update it. Code still looks the same though.
Simlar to a previous patch, the location of
lib/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.ts
changed so I had to update this patch.

No changes to code itself.
I believe there was only one to update but I may have missed one.
quilt couldn't apply it so I had to add one change in manually to
lib/vscode/src/vs/server/node/serverEnvironmentService.ts
This kinda got removed but I added it back in.
This was accepted upstream! :tada
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Nov 8, 2022

Hmm...can't get the update-check to trigger 🤔 @code-asher do you mind testing?

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Nov 8, 2022

Hmm testing telemetry, I'm not seeing the logs when I set CS_TELEMETRY_URL and use RequestBin

@jsjoeio jsjoeio temporarily deployed to npm November 8, 2022 22:11 Inactive
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

✨ code-server dev build published to npm for PR #5751!

  • Last publish status: success
  • Commit: 0b8ddc8

To install in a local project, run:

npm install @coder/code-server-pr@5751

To install globally, run:

npm install -g @coder/code-server-pr@5751

@codecov
Copy link

codecov bot commented Nov 8, 2022

Codecov Report

Merging #5751 (0b8ddc8) into main (c885c96) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5751      +/-   ##
==========================================
+ Coverage   72.65%   72.66%   +0.01%     
==========================================
  Files          30       30              
  Lines        1682     1683       +1     
  Branches      369      370       +1     
==========================================
+ Hits         1222     1223       +1     
  Misses        397      397              
  Partials       63       63              
Impacted Files Coverage Δ
src/node/cli.ts 91.76% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

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

This was changed upstream from `string` to `string[]` so now we convert
to an array in `toCodeArgs`.

See 78c02a1
@jsjoeio jsjoeio temporarily deployed to npm November 8, 2022 22:32 Inactive
@jsjoeio jsjoeio temporarily deployed to npm November 9, 2022 19:15 Inactive
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Nov 9, 2022

Checked, all is good now!

@jsjoeio jsjoeio marked this pull request as ready for review November 9, 2022 20:25
@jsjoeio jsjoeio requested a review from a team as a code owner November 9, 2022 20:25
@jsjoeio jsjoeio temporarily deployed to npm November 9, 2022 20:37 Inactive
@jsjoeio jsjoeio requested a review from code-asher November 9, 2022 20:45
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done!

@jsjoeio jsjoeio temporarily deployed to npm November 9, 2022 21:11 Inactive
@jsjoeio jsjoeio temporarily deployed to npm November 9, 2022 21:34 Inactive
@jsjoeio jsjoeio temporarily deployed to npm November 9, 2022 21:59 Inactive
@repo-ranger repo-ranger bot merged commit 3367e1a into main Nov 9, 2022
@repo-ranger repo-ranger bot deleted the jsjoeio/code-173 branch November 9, 2022 22:10
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.

[Feat]: upgrade to 1.73.0
2 participants