Skip to content

Add isWritableFileSystem api#106378

Merged
jrieken merged 1 commit intomicrosoft:masterfrom
mjbvz:add-isWritableFileSystem
Sep 10, 2020
Merged

Add isWritableFileSystem api#106378
jrieken merged 1 commit intomicrosoft:masterfrom
mjbvz:add-isWritableFileSystem

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Sep 10, 2020

Fixes #91697

This new API checks if a given scheme allows writing

Fixes microsoft#91697

This new API checks if a given scheme allows writing
@mjbvz mjbvz requested a review from jrieken September 10, 2020 04:27
@mjbvz mjbvz self-assigned this Sep 10, 2020
@mjbvz
Copy link
Collaborator Author

mjbvz commented Sep 10, 2020

@jrieken I took a look at the code but wasn't able to figure out how to synchronize the registered file systems across extension hosts. Let me know if you can look into this

* @param scheme The scheme of the filesystem, for example `file` or `git`.
*
* @return `true` if the file system supports writing, `false` if it does not
* support writing (i.e. it is readonly), and `undefined` if VS Code does not
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't mention VS Code here, I usually say "the editor"

@jrieken
Copy link
Member

jrieken commented Sep 10, 2020

how to synchronize the registered file systems across extension hosts. Let me know if you can look into this

Yeah, that's seems a little more complex than I though... I'm going to merge this one and make some more changes to sync all provider info from the renderer to extension hosts

@jrieken jrieken merged commit 371f630 into microsoft:master Sep 10, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom editors: how to find out that text document is readonly?

2 participants