editor::buffers::close
Close one open buffer. The file on disk is untouched.
- pathstringrequired
Root-relative path of the buffer to close.
- buffersobject[]required
- languagestringrequired
Monaco language id for the path.
- mtimeinteger· int64required
Last-modified time this buffer was read at, Unix seconds.
- pathstringrequired
Path relative to the workspace root.
- versionstring
Opaque version of the content this buffer was read at — the same fact `mtime` carries, in the form that survives two writes inside one second. A surface saves against it by sending it as `expected_version`. Defaulted so a session persisted before this field existed still loads. Empty means "unknown": a surface holding an empty version has only the mtime to save against, which is the behaviour it had all along.
- closedbooleanrequired
False when nothing was open at that path.
- rootstringrequired