'use strict' ; import { CancellationToken , ConfigurationChangeEvent , Disposable , Event , FileSystemWatcher , GlobPattern , InputBoxOptions , MessageItem , MessageOptions , OpenDialogOptions , Progress , ProgressOptions , QuickPickItem , QuickPickOptions , SaveDialogOptions , StatusBarAlignment , StatusBarItem , Terminal , TerminalOptions , TextDocument , TextDocumentShowOptions , TextEditor , TextEditorEdit , TextEditorOptionsChangeEvent , TextEditorSelectionChangeEvent , TextEditorViewColumnChangeEvent , Uri , ViewColumn , WorkspaceConfiguration , WorkspaceFolder , WorkspaceFolderPickOptions , WorkspaceFoldersChangeEvent } from 'vscode' ; export const IApplicationShell = Symbol ( 'IApplicationShell' ) ; export interface IApplicationShell { showInformationMessage ( message , ... items ) : Thenable < string | undefined > ; param message param options param items return showInformationMessage ( message , options , ... items ) : Thenable < string | undefined > ; see param message param items return showInformationMessage < T extends MessageItem > ( message , ... items ) : Thenable < T | undefined > ; see param message param options param items return showInformationMessage < T extends MessageItem > ( message , options , ... items ) : Thenable < T | undefined > ; see param message param items return showWarningMessage ( message , ... items ) : Thenable < string | undefined > ; see param message param options param items return showWarningMessage ( message , options , ... items ) : Thenable < string | undefined > ; see param message param items return showWarningMessage < T extends MessageItem > ( message , ... items ) : Thenable < T | undefined > ; see param message param options param items return showWarningMessage < T extends MessageItem > ( message , options , ... items ) : Thenable < T | undefined > ; see param message param items return showErrorMessage ( message , ... items ) : Thenable < string | undefined > ; see param message param options param items return showErrorMessage ( message , options , ... items ) : Thenable < string | undefined > ; see param message param items return showErrorMessage < T extends MessageItem > ( message , ... items ) : Thenable < T | undefined > ; see param message param options param items return showErrorMessage < T extends MessageItem > ( message , options , ... items ) : Thenable < T | undefined > ; param items param options param token return showQuickPick ( items , options ? , token ? ) : Thenable < string | undefined > ; param items param options param token return showQuickPick < T extends QuickPickItem > ( items , options ? , token ? ) : Thenable < T | undefined > ; param options returns showOpenDialog ( options ) : Thenable < Uri [ ] | undefined > ; param options returns showSaveDialog ( options ) : Thenable < Uri | undefined > ; param options param token return showInputBox ( options ? , token ? ) : Thenable < string | undefined > ; param text param hideAfterTimeout return setStatusBarMessage ( text , hideAfterTimeout ) : Disposable ; param text param hideWhenDone return setStatusBarMessage ( text , hideWhenDone ) : Disposable ; param text return setStatusBarMessage ( text ) : Disposable ; param alignment param priority return createStatusBarItem ( alignment ? , priority ? ) : StatusBarItem ; param options return showWorkspaceFolderPick ( options ? ) : Thenable < WorkspaceFolder | undefined > ; param task return withProgress < R > ( options , task ) : Thenable < R > ; } export const ICommandManager = Symbol ( 'ICommandManager' ) ; export interface ICommandManager { param command param callback param thisArg return registerCommand ( command , callback , thisArg ? ) : Disposable ; param command param callback param thisArg return registerTextEditorCommand ( command , callback , thisArg ? ) : Disposable ; param command param rest return executeCommand < T > ( command , ... rest ) : Thenable < T | undefined > ; param filterInternal return getCommands ( filterInternal ? ) : Thenable < string [ ] > ; } export const IDocumentManager = Symbol ( 'IDocumentManager' ) ; export interface IDocumentManager { readonly readonly textDocuments : TextDocument [ ] ; /**
     * The currently active editor or `undefined`. The active editor is the one
     * that currently has focus or, when none has focus, the one that has changed
     * input most recently.
     */ readonly activeTextEditor : TextEditor | undefined ; /**
     * The currently visible editors or an empty array.
     */ readonly visibleTextEditors : TextEditor [ ] ; /**
     * An [event](#Event) which fires when the [active editor](#window.activeTextEditor)
     * has changed. *Note* that the event also fires when the active editor changes
     * to `undefined`.
     */ readonly onDidChangeActiveTextEditor : Event < TextEditor | undefined > ; /**
     * An [event](#Event) which fires when the array of [visible editors](#window.visibleTextEditors)
     * has changed.
     */ readonly onDidChangeVisibleTextEditors : Event < TextEditor [ ] > ; /**
     * An [event](#Event) which fires when the selection in an editor has changed.
     */ readonly onDidChangeTextEditorSelection : Event < TextEditorSelectionChangeEvent > ; /**
     * An [event](#Event) which fires when the options of an editor have changed.
     */ readonly onDidChangeTextEditorOptions : Event < TextEditorOptionsChangeEvent > ; /**
     * An [event](#Event) which fires when the view column of an editor has changed.
     */ readonly onDidChangeTextEditorViewColumn : Event < TextEditorViewColumnChangeEvent > ; /**
     * An event that is emitted when a [text document](#TextDocument) is opened.
     */ readonly onDidOpenTextDocument : Event < TextDocument > ; /**
     * An event that is emitted when a [text document](#TextDocument) is disposed.
     */ readonly onDidCloseTextDocument : Event < TextDocument > ; /**
     * An event that is emitted when a [text document](#TextDocument) is saved to disk.
     */ readonly onDidSaveTextDocument : Event < TextDocument > ; param document param column param preserveFocus return showTextDocument ( document , column ? , preserveFocus ? ) : Thenable < TextEditor > ; param document param options return showTextDocument ( document , options ? ) : Thenable < TextEditor > ; see param uri param options return showTextDocument ( uri , options ? ) : Thenable < TextEditor > ; } export const IWorkspaceService = Symbol ( 'IWorkspace' ) ; export interface IWorkspaceService { readonly readonly rootPath : string | undefined ; readonly readonly workspaceFolders : WorkspaceFolder [ ] | undefined ; /**
     * An event that is emitted when a workspace folder is added or removed.
     */ readonly onDidChangeWorkspaceFolders : Event < WorkspaceFoldersChangeEvent > ; /**
     * An event that is emitted when the [configuration](#WorkspaceConfiguration) changed.
     */ readonly onDidChangeConfiguration : Event < ConfigurationChangeEvent > ; type { boolean } memberof readonly hasWorkspaceFolders : boolean ; param uri return getWorkspaceFolder ( uri ) : WorkspaceFolder | undefined ; param pathOrUri param includeWorkspaceFolder return asRelativePath ( pathOrUri , includeWorkspaceFolder ? ) : string ; param globPattern param ignoreCreateEvents param ignoreChangeEvents param ignoreDeleteEvents return createFileSystemWatcher ( globPattern , ignoreCreateEvents ? , ignoreChangeEvents ? , ignoreDeleteEvents ? ) : FileSystemWatcher ; sample param include param exclude param maxResults param token return findFiles ( include , exclude ? , maxResults ? , token ? ) : Thenable < Uri [ ] > ; param section param resource return getConfiguration ( section ? , resource ? ) : WorkspaceConfiguration ; selectWorkspaceFolder ( ) : Promise < WorkspaceFolder | undefined > ; } export const ITerminalManager = Symbol ( 'ITerminalManager' ) ; export interface ITerminalManager { /**
     * An [event](#Event) which fires when a terminal is disposed.
     */ readonly onDidCloseTerminal : Event < Terminal > ; param options return createTerminal ( options ) : Terminal ; }