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

Remove deprecation of permission flags #9269

Merged
merged 1 commit into from
May 9, 2022
Merged

Conversation

westbury
Copy link
Contributor

As part of the switch-over to the vscode-compatible file service, the permission flags in FileAccess were deprecated. However these flags are just as useful for for both FileService.access and FileSystemProvider.access.

It took me a non-trivial amount of time to figure out what I was supposed to pass as mode to the access method. Hopefully the changes in this PR will make it clearer.

Although unrelated to permissions, I also noticed the comments for fsPath were misleading, missing the point that the conversion is done on the backend.

What it does

  • removes the deprecation of the permission flags
  • adds more useful comments to access and fsPath. These comments are copied over from the original comments in filesystem.ts.

How to test

I don't expect any of these changes to affect the runtime.

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added documentation issues related to documentation filesystem issues related to the filesystem quality issues related to code and application quality labels Mar 29, 2021
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@vince-fugnitto vince-fugnitto merged commit cd33db1 into master May 9, 2022
@vince-fugnitto vince-fugnitto deleted the permission-flags branch May 9, 2022 15:43
@github-actions github-actions bot added this to the 1.26.0 milestone May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation issues related to documentation filesystem issues related to the filesystem quality issues related to code and application quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants