Files
vscode-extension-samples/fsconsumer-sample
Matt Bierner 7628cfc947 Bump eslint versions
Avoids a warning when running the linter with TS 5.5
2024-06-27 13:33:48 -07:00
..
2020-05-29 14:20:07 -07:00
2022-11-04 14:27:02 -07:00
2020-05-29 14:13:32 -07:00
2024-06-27 13:33:48 -07:00
2024-06-27 13:33:48 -07:00
2019-07-23 10:27:48 +02:00
2022-02-28 13:45:21 -08:00

FileSystem Usage Sample

This is a sample extension that shows how to use the vscode.workspace.fs API. It is a series of commands, all prefixed with FS, that demonstrate file system capabilities and how to derive file-uris from existing uris.

Derive new paths with path.posix

Throughout this sample path.posix is being used. This is important because uri paths are always slash-separated (/) and because the backslash (\) can be a valid file name. For more details see: https://nodejs.org/dist/latest-v10.x/docs/api/path.html#path_windows_vs_posix

How it works, what it shows?

  • The extension registers different commands that use the workspace.fs-API.
  • Registers command and the corresponding activation events via package.json

How to run locally

  • npm run watch to start the compiler in watch mode
  • open this folder in VS Code and press F5