Additional information about the opening custom document.
Additional information about the opening custom document.
(backup-id custom-document-open-context)
The id of the backup to restore the document from or undefined
if there is no backup.
If this is provided, your extension should restore the editor from the backup instead of reading the file from the user's workspace.
Returns: string | undefined
The id of the backup to restore the document from or `undefined` if there is no backup. If this is provided, your extension should restore the editor from the backup instead of reading the file from the user's workspace. **Returns:** `string | undefined`
(untitled-document-data custom-document-open-context)
If the URI is an untitled file, this will be populated with the byte data of that file
If this is provided, your extension should utilize this byte data rather than executing fs APIs on the URI passed in
Returns: Uint8Array | undefined
If the URI is an untitled file, this will be populated with the byte data of that file If this is provided, your extension should utilize this byte data rather than executing fs APIs on the URI passed in **Returns:** `Uint8Array | undefined`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close