0

I'm currently building a webapp where users can also write and edit code. In addition to the web based editor a I want to enable them to edit the files in a local desktop editor. However, since the code isn't stored in files, but in a database, I can not use the default VS Code remote development system.

So is there a desktop text editor or an editor plugin which can directly load and save files via a REST API or GraphQL API?

adius
  • 13,685
  • 7
  • 45
  • 46
  • you can write a remote workspace interface for VSC, this extension translates read/write/rename/delete on a file system to REST requests – rioV8 Feb 21 '23 at 09:24
  • @rioV8 Is this interface documented somewhere? It sounded like the whole remote work infrastructure is proprietary and not really meant to be used outside of their implementation. – adius Feb 21 '23 at 11:31
  • read the VSC API doc starting at `registerFileSystemProvider` – rioV8 Feb 21 '23 at 12:49
  • Cool, thanks for the pointer! Microsoft even provides an example extension: https://github.com/Microsoft/vscode-extension-samples/tree/main/fsprovider-sample – adius Feb 22 '23 at 11:33

0 Answers0