Some source control systems require code to be reserved/checked-out before it is changed.
Since ISFS was originally implemented VS Code's FileSystemProvider API has gained the ability for its stat method's FileStat return value to include an optional permissions property of type FilePermission. One of its bitmask values is Readonly.
I propose adding a boolean setting to make stat return permissions with the Readonly bit set or cleared depending on the value of the Editable boolean returned from the GetStatus method of the server-side source control class (if any) of the namespace.
The new setting would default to false so the new behaviour is opt-in and thus won't break existing environments.
It would be a resource-level setting so it can be configured server-side per namespace if desired.
Some source control systems require code to be reserved/checked-out before it is changed.
Since ISFS was originally implemented VS Code's
FileSystemProvider
API has gained the ability for itsstat
method's FileStat return value to include an optionalpermissions
property of type FilePermission. One of its bitmask values isReadonly
.I propose adding a boolean setting to make
stat
returnpermissions
with theReadonly
bit set or cleared depending on the value of theEditable
boolean returned from the GetStatus method of the server-side source control class (if any) of the namespace.The new setting would default to
false
so the new behaviour is opt-in and thus won't break existing environments.It would be a resource-level setting so it can be configured server-side per namespace if desired.