Files
vscode-extension-samples/fsprovider-sample
Matt Bierner cd6c33d101 Updates to target es2019
Fixes #265

Also excludes dom typings from the lib files so that dom methods are not suggested
2020-05-06 12:14:11 -07:00
..
2019-04-16 09:59:21 -07:00
2019-07-15 14:44:04 -07:00
2018-04-13 15:49:28 +02:00
2018-04-13 15:49:28 +02:00
2018-11-30 08:39:19 +01:00
2020-04-14 18:05:51 -07:00
2018-04-26 18:27:16 +02:00
2020-05-06 12:14:11 -07:00

MemFS

This extension implements an in-memory file system to show-case the filesystem provider api. It serves two purposes:

  • 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
  • when not having a workspace opened, select 'F1 > [MemFS] Setup Workspace' (optionally save the workspace now)
  • 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
  • open file.txt and make changes
  • 'F1 > [MemFS] Delete "file.txt', observe that the editor is now indicating that the file is deleted
  • 'F1 > [MemFS] Add "file.txt', observe that the editor content is reset and the '(delete)' annotation disappeared
  • select 'F1 > [MemFs] Delete Files' or reload to restart

sample screenshot