Module Vscode.Workspace

val workspaceFolders : unit -> WorkspaceFolder.t list
val name : unit -> string option
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
type textDocumentOptions = {
  1. language : string;
  2. content : string;
}
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
type workspaceFolderToAdd = {
  1. name : string;
  2. uri : Uri.t;
}
val updateWorkspaceFolders : start:int -> deleteCount:int Interop.or_undefined -> workspaceFoldersToAdd:workspaceFolderToAdd list -> bool