Skip to content
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

feat: upgrade to 1.64 #45

Merged
merged 2,360 commits into from
Mar 4, 2022
Merged

feat: upgrade to 1.64 #45

merged 2,360 commits into from
Mar 4, 2022

Conversation

jsjoeio
Copy link

@jsjoeio jsjoeio commented Feb 17, 2022

Summary

This PR upgrades VS Code to 1.64.

Testing Plan

To test this locally, you need to:

  1. clone coder/code-server locally
  2. make sure yarn link is set up correctly
  3. run yarn watch

Video

Screen.Recording.2022-02-24.at.1.52.38.PM.mov

How to Review this PR

I committed the merge conflicts and fixed them one-by-one. Look at the Commits tab starting with this commit.

Files with Merge Conflicts

  • package.json
  • yarn.lock
  • product.json
  • scripts/code-server.sh
  • src/vs/base/common/network.ts
  • src/vs/code/browser/workbench/workbench-dev.html
  • src/vs/code/browser/workbench/workbench.html
  • src/vs/platform/remote/browser/browserSocketFactory.ts
  • src/vs/platform/remote/common/remoteAgentConnection.ts
  • src/vs/server/node/serverEnvironmentService.ts
  • src/vs/workbench/browser/web.main.ts
  • src/vs/workbench/browser/web.api.ts
  • src/vs/server/node/server.main.ts
  • src/vs/workbench/contrib/extensions/browser/extensionsViewlet.ts
  • src/vs/server/node/webClientServer.ts
  • src/vs/code/browser/workbench/workbench.ts
  • src/vs/server/node/remoteExtensionHostAgentServer.ts

Next Steps

Fixes coder/code-server#4822

connor4312 and others added 30 commits January 24, 2022 22:00
* Enable resourceurls

* Add selection to resourceurls from trees

* Rename identifier

* Respond to PR feedback

* Do not loop opver openEditors
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.2 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.2...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](node-fetch/node-fetch@v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Clean up IWorkbenchConstructionOptions. That's mostly it here.
Added flexible:Height: true to the SyncDescriptor since we were missing it.

Removed a block that showed the prevented the web view extensions from
automatically hiding.

I did this because upstream removed two properties it was using:
this.hasInstalledWebExtensionsContextKey and
this.updateInstalledWebExtensionsContext. I hope that was right.
@jsjoeio
Copy link
Author

jsjoeio commented Feb 17, 2022

src/vs/code/browser/workbench/workbench.ts

Should be the next thing to work on.

I removed `args['server-data-dir']` from `REMOTE_DATA_FOLDER` since we don't
have access to `args` here.

The other change was the `{ mode: 0o700 }` added to the `fs.mkdirSync` call.
Not sure if that's related to chmod 0700 or something else.
We resolved a few things here with the conflicts.
We were able to remove a couple of our patches, which is awesome!

Still have some things to test though.
Moved our custom serverThemeService into the src/vs/server/node folder and added the missing _serviceBrand to the interface and the class to fix a ctor error.
@jsjoeio
Copy link
Author

jsjoeio commented Feb 24, 2022

Folder Path in URL 🐛

  1. When you first start code-server and the URL updates with the folder, we get this: http://localhost:3000/?folder=%2FUsers%2Fjp%2Fdev%2Fcoder - I think we need to add our patch back then. 🐛
  2. When you do "File > Open Folder", it works as expected: http://localhost:3000/?folder=/Users/jp/dev/folder-for-testing
  3. When you edit by hand, it works as expected: http://localhost:3000/?folder=/Users/jp/dev

@jsjoeio
Copy link
Author

jsjoeio commented Feb 24, 2022

Opening Folder or Workspace from CLI 🐛

Testing locally with yarn watch --port 3000 ./docs and it did not work. It seems to only open your last opened workspace.

@jsjoeio jsjoeio marked this pull request as ready for review March 2, 2022 21:30
@jsjoeio jsjoeio requested a review from code-asher March 2, 2022 22:38
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.

Nice work! Everything looks good to me.

scripts/code-server.sh Outdated Show resolved Hide resolved
src/vs/workbench/browser/client.ts Show resolved Hide resolved
@jsjoeio jsjoeio merged commit a13f6e1 into main Mar 4, 2022
@jsjoeio jsjoeio deleted the vscode-update branch March 4, 2022 21:59
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.

[Chore]: update vscode to 1.64