import { IDidEnterWorkspaceEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workspaces/common/workspaceEditing"; import { IWorkspaceEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workspaces/common/workspaceEditing.service"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IAnyWorkspaceIdentifier, IWorkspaceIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace"; import { IJSONEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/jsonEditing.service"; import { IWorkspaceFolderCreationData, IEnterWorkspaceResult } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces"; import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service"; import { WorkspaceService } from "../../configuration/browser/configurationService.js"; import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service"; import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service"; import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service"; import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service"; import { IFileDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service"; import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service"; import { ITextFileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service"; import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service"; import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service"; import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service"; import { IWorkbenchConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/configuration/common/configuration.service"; import { IUserDataProfilesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/userDataProfile/common/userDataProfile.service"; import { IUserDataProfileService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; export declare class DidEnterWorkspaceEvent implements IDidEnterWorkspaceEvent { readonly oldWorkspace: IAnyWorkspaceIdentifier; readonly newWorkspace: IAnyWorkspaceIdentifier; private readonly promises; constructor(oldWorkspace: IAnyWorkspaceIdentifier, newWorkspace: IAnyWorkspaceIdentifier); join(promise: Promise): void; wait(): Promise; } export declare abstract class AbstractWorkspaceEditingService extends Disposable implements IWorkspaceEditingService { private readonly jsonEditingService; protected readonly contextService: WorkspaceService; protected readonly configurationService: IWorkbenchConfigurationService; private readonly notificationService; private readonly commandService; private readonly fileService; private readonly textFileService; protected readonly workspacesService: IWorkspacesService; protected readonly environmentService: IWorkbenchEnvironmentService; private readonly fileDialogService; protected readonly dialogService: IDialogService; protected readonly hostService: IHostService; protected readonly uriIdentityService: IUriIdentityService; private readonly workspaceTrustManagementService; private readonly userDataProfilesService; private readonly userDataProfileService; protected readonly logService: ILogService; readonly _serviceBrand: undefined; private readonly _onDidEnterWorkspace; readonly onDidEnterWorkspace: Event; constructor(jsonEditingService: IJSONEditingService, contextService: WorkspaceService, configurationService: IWorkbenchConfigurationService, notificationService: INotificationService, commandService: ICommandService, fileService: IFileService, textFileService: ITextFileService, workspacesService: IWorkspacesService, environmentService: IWorkbenchEnvironmentService, fileDialogService: IFileDialogService, dialogService: IDialogService, hostService: IHostService, uriIdentityService: IUriIdentityService, workspaceTrustManagementService: IWorkspaceTrustManagementService, userDataProfilesService: IUserDataProfilesService, userDataProfileService: IUserDataProfileService, logService: ILogService); pickNewWorkspacePath(): Promise; private getNewWorkspaceName; updateFolders(index: number, deleteCount?: number, foldersToAddCandidates?: IWorkspaceFolderCreationData[], donotNotifyError?: boolean): Promise; private doUpdateFolders; addFolders(foldersToAddCandidates: IWorkspaceFolderCreationData[], donotNotifyError?: boolean): Promise; private doAddFolders; removeFolders(foldersToRemove: URI[], donotNotifyError?: boolean): Promise; private includesSingleFolderWorkspace; createAndEnterWorkspace(folders: IWorkspaceFolderCreationData[], path?: URI): Promise; saveAndEnterWorkspace(workspaceUri: URI): Promise; isValidTargetWorkspacePath(workspaceUri: URI): Promise; protected saveWorkspaceAs(workspace: IWorkspaceIdentifier, targetConfigPathURI: URI): Promise; protected saveWorkspace(workspace: IWorkspaceIdentifier): Promise; private handleWorkspaceConfigurationEditingError; private onInvalidWorkspaceConfigurationFileError; private askToOpenWorkspaceConfigurationFile; abstract enterWorkspace(workspaceUri: URI): Promise; protected fireDidEnterWorkspace(oldWorkspace: IAnyWorkspaceIdentifier, newWorkspace: IAnyWorkspaceIdentifier): Promise; protected doEnterWorkspace(workspaceUri: URI): Promise; private migrateWorkspaceSettings; copyWorkspaceSettings(toWorkspace: IWorkspaceIdentifier): Promise; private doCopyWorkspaceSettings; private trustWorkspaceConfiguration; protected getCurrentWorkspaceIdentifier(): IWorkspaceIdentifier | undefined; }