2018-04-13 15:45:37 +02:00
# MemFS
2019-02-06 19:03:51 +03:00
This extension implements an in-memory file system to show-case the [filesystem provider api ](https://github.com/Microsoft/vscode/blob/51a880315fd0ec2cafb511a17de48ec31802ba6d/src/vs/vscode.d.ts#L4968 ). It serves two purposes:
2018-04-13 16:03:13 +02:00
2018-04-26 16:56:35 +02:00
* Be a sample/reference for extension authors that want to implement a filesystem provider
* Be a test for other extensions that *falsely* assume text document always live on disk.
To *get started* you need this:
* install this extension
2018-04-26 18:27:16 +02:00
* when *not* having a workspace opened, select 'F1 > [MemFS] Setup Workspace' (optionally save the workspace now)
2018-04-26 16:56:35 +02:00
* select 'F1 > [MemFs] Create Files' and notice how the explorer is now populated
* ... try things out, e.g. IntelliSense in memfs-files, create new files, save them, etc
2019-07-15 14:44:04 -07:00
* open `file.txt` and make changes
* 'F1 > [MemFS] Delete "file.txt', observe that the editor is now indicating that the file is deleted
2020-05-03 19:16:12 +10:00
* 'F1 > [MemFS] Add "file.txt', observe that the editor content is reset and the '(delete)' annotation disappeared
2018-04-26 16:56:35 +02:00
* select 'F1 > [MemFs] Delete Files' or reload to restart
2021-07-11 03:46:50 +09:00
