mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
tweak workspace edit dto and handling https://github.com/microsoft/vscode/issues/105283
This commit is contained in:
@@ -1232,7 +1232,13 @@ export interface IWorkspaceEditEntryMetadataDto {
|
||||
iconPath?: { id: string } | UriComponents | { light: UriComponents, dark: UriComponents };
|
||||
}
|
||||
|
||||
export const enum WorkspaceEditType {
|
||||
File = 1,
|
||||
Text = 2,
|
||||
}
|
||||
|
||||
export interface IWorkspaceFileEditDto {
|
||||
_type: WorkspaceEditType.File;
|
||||
oldUri?: UriComponents;
|
||||
newUri?: UriComponents;
|
||||
options?: modes.WorkspaceFileEditOptions
|
||||
@@ -1240,6 +1246,7 @@ export interface IWorkspaceFileEditDto {
|
||||
}
|
||||
|
||||
export interface IWorkspaceTextEditDto {
|
||||
_type: WorkspaceEditType.Text;
|
||||
resource: UriComponents;
|
||||
edit: modes.TextEdit;
|
||||
modelVersionId?: number;
|
||||
|
||||
Reference in New Issue
Block a user