import { IPickAndOpenOptions, ISaveDialogOptions, IOpenDialogOptions, ConfirmResult } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs"; 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 { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service"; import { IHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/history/common/history.service"; import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ISimpleFileDialog } from "./simpleFileDialog.js"; import { IWorkspacesService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspaces/common/workspaces.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service"; import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service"; import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service"; import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service"; import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service"; import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService"; import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service"; import { ICodeEditorService } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService.service"; import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { IRemoteAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/remote/common/remoteAgentService.service"; export declare abstract class AbstractFileDialogService implements IFileDialogService { protected readonly hostService: IHostService; protected readonly contextService: IWorkspaceContextService; protected readonly historyService: IHistoryService; protected readonly environmentService: IWorkbenchEnvironmentService; protected readonly instantiationService: IInstantiationService; protected readonly configurationService: IConfigurationService; protected readonly fileService: IFileService; protected readonly openerService: IOpenerService; protected readonly dialogService: IDialogService; private readonly languageService; private readonly workspacesService; private readonly labelService; private readonly pathService; protected readonly commandService: ICommandService; protected readonly editorService: IEditorService; protected readonly codeEditorService: ICodeEditorService; protected readonly logService: ILogService; private readonly remoteAgentService; readonly _serviceBrand: undefined; constructor(hostService: IHostService, contextService: IWorkspaceContextService, historyService: IHistoryService, environmentService: IWorkbenchEnvironmentService, instantiationService: IInstantiationService, configurationService: IConfigurationService, fileService: IFileService, openerService: IOpenerService, dialogService: IDialogService, languageService: ILanguageService, workspacesService: IWorkspacesService, labelService: ILabelService, pathService: IPathService, commandService: ICommandService, editorService: IEditorService, codeEditorService: ICodeEditorService, logService: ILogService, remoteAgentService: IRemoteAgentService); defaultFilePath(schemeFilter?: string, authorityFilter?: string | undefined): Promise; defaultFolderPath(schemeFilter?: string, authorityFilter?: string | undefined): Promise; preferredHome(schemeFilter?: string): Promise; defaultWorkspacePath(schemeFilter?: string): Promise; showSaveConfirm(fileNamesOrResources: (string | URI)[]): Promise; private skipDialogs; private doShowSaveConfirm; protected addFileSchemaIfNeeded(schema: string, _isFolder?: boolean): string[]; protected pickFileFolderAndOpenSimplified(schema: string, options: IPickAndOpenOptions, preferNewWindow: boolean): Promise; protected pickFileAndOpenSimplified(schema: string, options: IPickAndOpenOptions, preferNewWindow: boolean): Promise; protected addFileToRecentlyOpened(uri: URI): void; protected pickFolderAndOpenSimplified(schema: string, options: IPickAndOpenOptions): Promise; protected pickWorkspaceAndOpenSimplified(schema: string, options: IPickAndOpenOptions): Promise; protected pickFileToSaveSimplified(schema: string, options: ISaveDialogOptions): Promise; protected showSaveDialogSimplified(schema: string, options: ISaveDialogOptions): Promise; protected showOpenDialogSimplified(schema: string, options: IOpenDialogOptions): Promise; protected getSimpleFileDialog(): ISimpleFileDialog; private pickResource; private saveRemoteResource; /** * Checks whether the given resource is a remote user data file * that should not be used as a default file dialog path candidate. * This covers remote user data files such as settings.json, keybindings.json, etc. */ private isRemoteUserData; private getSchemeFilterForWindow; private getAuthorityFilterForWindow; protected getFileSystemSchema(options: { availableFileSystems?: readonly string[]; defaultUri?: URI; }): string; abstract pickFileFolderAndOpen(options: IPickAndOpenOptions): Promise; abstract pickFileAndOpen(options: IPickAndOpenOptions): Promise; abstract pickFolderAndOpen(options: IPickAndOpenOptions): Promise; abstract pickWorkspaceAndOpen(options: IPickAndOpenOptions): Promise; protected getWorkspaceAvailableFileSystems(options: IPickAndOpenOptions): string[]; abstract showSaveDialog(options: ISaveDialogOptions): Promise; abstract showOpenDialog(options: IOpenDialogOptions): Promise; abstract pickFileToSave(defaultUri: URI, availableFileSystems?: string[]): Promise; protected getPickFileToSaveDialogOptions(defaultUri: URI, availableFileSystems?: string[]): ISaveDialogOptions; }