Workspace file interactions from API?

Via an API call, Is there any way to:

  1. Open a file in UI?
  2. Close a file in the UI?
  3. Tell if a file is modified/dirty?

I have done a fair bit of searching and don’t any references.

Via an API call, Is there any way to

Yes. The APIs exposed to extensions allow to do all of this, most via commands (1-2), some by requesting tokens with providers of trackers (3). There are also projects like ipylab which expose these APIs via Python bindings.

1 Like

Thanks, I was able to get what I needed for 1 and 2 via the workspaces API. And it turns out for the workflow I need, open/closed in enough information, so I don’t really need to get to modified/dirty