Skip to content

Files

Latest commit

2ee6b0b · Aug 7, 2025

History

History

fsprovider-sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 29, 2020
Oct 27, 2024
Apr 13, 2018
Apr 13, 2018
Nov 30, 2018
Jul 10, 2021
Nov 27, 2024
Aug 7, 2025
Aug 7, 2025
Apr 26, 2018
Aug 7, 2025

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