Vscode.Workspace
val workspaceFolders : unit -> WorkspaceFolder.t list
val createFileSystemWatcher :
GlobPattern.t ->
?ignoreCreateEvents:bool ->
?ignoreChangeEvents:bool ->
?ignoreDeleteEvents:bool ->
unit ->
FileSystemWatcher.t
val workspaceFile : unit -> Uri.t option
val rootPath : unit -> string Interop.or_undefined
val onDidChangeWorkspaceFolders : WorkspaceFolder.t Event.t
val onDidChangeTextDocument : TextDocumentChangeEvent.t Event.t
val onDidChangeConfiguration : ConfigurationChangeEvent.t Event.t
val asRelativePath :
pathOrUri:[ `String of string | `Uri of Uri.t ] ->
?includeWorkspaceFolder:bool ->
unit ->
string
val getWorkspaceFolder : uri:Uri.t -> WorkspaceFolder.t option
val findFiles :
includes:GlobPattern.t ->
?excludes:GlobPattern.t ->
?maxResults:int ->
?token:CancellationToken.t ->
unit ->
Uri.t list Promise.t
val textDocuments : unit -> TextDocument.t list
val openTextDocument :
[ `Uri of Uri.t
| `Filename of string
| `Interactive of textDocumentOptions option ] ->
TextDocument.t Promise.t
val onDidOpenTextDocument : TextDocument.t Event.t
val onDidCloseTextDocument : TextDocument.t Event.t
val onDidSaveTextDocument : TextDocument.t Event.t
val applyEdit : edit:WorkspaceEdit.t -> bool Promise.t
val getConfiguration :
?section:string ->
?scope:ConfigurationScope.t ->
unit ->
WorkspaceConfiguration.t
val registerTextDocumentContentProvider :
scheme:string ->
provider:TextDocumentContentProvider.t ->
Disposable.t
val updateWorkspaceFolders :
start:int ->
deleteCount:int Interop.or_undefined ->
workspaceFoldersToAdd:workspaceFolderToAdd list ->
bool