Skip to content

fix: Code: clean-up #8951 #9292

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 2 commits into from
Jun 15, 2021
Merged

fix: Code: clean-up #8951 #9292

merged 2 commits into from
Jun 15, 2021

Conversation

wxb1ank
Copy link
Contributor

@wxb1ank wxb1ank commented Jun 15, 2021

#8951 was a major change in the VS Code extension and caused quite a few problems. This PR is a catch-all for bugs and improvements in the new code.

This should fix:

The original lack of testing was my own fault, but this area of the VS Code API is also tricky for a couple reasons:

  • The FileSystem API does not list or warn about any exceptions, but FileSystemProvider (which FileSystem is a wrapper of, AFAICT) does.
  • At first glance, Uri.path looks like it works for FS operations. It does not, at least, on Windows. You need to use Uri.fsPath.

I only use Windows, so I need people on macOS, Linux, and (possibly) NixOS to test this.

@lnicola
Copy link
Member

lnicola commented Jun 15, 2021

/home/runner/work/rust-analyzer/rust-analyzer/editors/code/src/main.ts is not formatted

bors d+

@bors
Copy link
Contributor

bors bot commented Jun 15, 2021

✌️ wxb1ank can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@lnicola
Copy link
Member

lnicola commented Jun 15, 2021

Looks fine, I guess? I can't test it right now, but I'm in favor of merging it optimistically. It can't make it worse than it is right now, can it?

@wxb1ank wxb1ank marked this pull request as ready for review June 15, 2021 20:01
@wxb1ank
Copy link
Contributor Author

wxb1ank commented Jun 15, 2021

It can't make it worse than it is right now, can it?

I sure hope not :). I'll merge then.

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 15, 2021

@bors bors bot merged commit d0f2bc3 into rust-lang:master Jun 15, 2021
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.

2 participants