diff options
Diffstat (limited to 'src/vs/monaco.d.ts')
-rw-r--r-- | src/vs/monaco.d.ts | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/vs/monaco.d.ts b/src/vs/monaco.d.ts index 713083bfe0c..f608381f9e4 100644 --- a/src/vs/monaco.d.ts +++ b/src/vs/monaco.d.ts @@ -3325,7 +3325,7 @@ declare namespace monaco.editor { * Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. * Defaults to 'mouseover'. */ - showFoldingControls?: 'always' | 'mouseover'; + showFoldingControls?: 'always' | 'never' | 'mouseover'; /** * Controls whether clicking on the empty content after a folded line will unfold the line. * Defaults to false. @@ -4539,7 +4539,7 @@ declare namespace monaco.editor { selectionClipboard: IEditorOption<EditorOption.selectionClipboard, boolean>; selectionHighlight: IEditorOption<EditorOption.selectionHighlight, boolean>; selectOnLineNumbers: IEditorOption<EditorOption.selectOnLineNumbers, boolean>; - showFoldingControls: IEditorOption<EditorOption.showFoldingControls, 'always' | 'mouseover'>; + showFoldingControls: IEditorOption<EditorOption.showFoldingControls, 'always' | 'never' | 'mouseover'>; showUnused: IEditorOption<EditorOption.showUnused, boolean>; showDeprecated: IEditorOption<EditorOption.showDeprecated, boolean>; inlayHints: IEditorOption<EditorOption.inlayHints, Readonly<Required<IEditorInlayHintsOptions>>>; @@ -7015,22 +7015,24 @@ declare namespace monaco.languages { maxSize?: number; } - export interface WorkspaceFileEdit { - oldUri?: Uri; - newUri?: Uri; + export interface IWorkspaceFileEdit { + oldResource?: Uri; + newResource?: Uri; options?: WorkspaceFileEditOptions; metadata?: WorkspaceEditMetadata; } - export interface WorkspaceTextEdit { + export interface IWorkspaceTextEdit { resource: Uri; - edit: TextEdit; - modelVersionId?: number; + textEdit: TextEdit & { + insertAsSnippet?: boolean; + }; + versionId: number | undefined; metadata?: WorkspaceEditMetadata; } export interface WorkspaceEdit { - edits: Array<WorkspaceTextEdit | WorkspaceFileEdit>; + edits: Array<IWorkspaceTextEdit | IWorkspaceFileEdit>; } export interface Rejection { |