Commit Graph

19 Commits

Author SHA1 Message Date
John Murray
793a123a81 Allow FileSystemProvider to stat a file as readonly (#73122) (#111237)
* fix #73122 allow FSP to stat a file as readonly

* add enableProposedApi check

* omit existing members of FileStat

* dispose _enableProposedApi

* implement feedback from @bpasero

* add onDidChangeReadonly event so tab title gets '(read-only)' suffix immediately

* push missing changes

* adopt latest API proposal

* fix missing property in mtfs

* tests - add fileservice test for readonly

* more tests

* wire into notebooks

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2021-05-12 09:17:34 +02:00
Johannes Rieken
9f9ba405e4 remove isFree-check and rely on the renderer throwing errors 2020-09-18 12:21:25 +02:00
Johannes Rieken
6fd30f962c add ability to list fs provider capabilities so that we can sync them to the extension hosts 2020-09-17 14:45:50 +02:00
Johannes Rieken
e38b9d0727 add ExtHostFileSystemInfo which knows what schemes are reserved and which are used, https://github.com/microsoft/vscode/issues/91697 2020-09-10 12:29:30 +02:00
Johannes Rieken
44b1737a9c chore - when target might be undefined use target?.dispose() over dispose(target) 2020-09-08 17:34:53 +02:00
Johannes Rieken
28cb90be8c chore - ES6, use for-of instead of forEach 2020-06-12 16:20:23 +02:00
Johannes Rieken
a2e9c12994 use isFile-info instead of defaulting to FileType.File, fixes #84524 2019-11-12 11:45:11 +01:00
Benjamin Pasero
5ae52b61cb files - implement ctime properly as btime (fix #84525) 2019-11-12 10:42:04 +01:00
Matt Bierner
a97738297d Fixing some more node 12 typings errors 2019-11-04 15:11:54 -08:00
Benjamin Pasero
41466a2390 debt - declare more fs provider capabilities 2019-11-04 09:57:08 +01:00
Matt Bierner
c25e7e90f0 Making IFileChange readonly 2019-09-25 18:30:03 -07:00
Johannes Rieken
65270230af tweak options for delete and write, #48034 2019-07-09 16:23:48 +02:00
Johannes Rieken
a4fc9bb8c4 improved error propagation, #48034 2019-07-09 16:17:02 +02:00
isidor
eaa2d3bb23 introduce extHostLabelService and mainThreadLabelService
fixes #75881
2019-07-01 15:20:56 +02:00
Martin Aeschlimann
1d851ecfe2 MainThreadFileSystem does not await 2019-06-25 17:20:46 +02:00
Johannes Rieken
293596c9af 💄 2019-06-21 11:12:14 +02:00
Johannes Rieken
44596ac959 first version of vscode.workspace.fs 2019-06-21 10:56:36 +02:00
Johannes Rieken
ba4735d7cb debt - don't use Buffer in extHost-protocol 2019-04-10 15:42:45 +02:00
Johannes Rieken
63f2d31d3f move mainThread[A-F], #70319 2019-03-19 17:22:55 +01:00