import { GroupIdentifier, IRevertOptions, IUntypedEditorInput } from "../editor.js"; import { EditorInput } from "./editorInput.js"; import { AbstractResourceEditorInput } from "./resourceEditorInput.js"; import { URI } from "../../../base/common/uri.js"; import { ITextFileSaveOptions, ILanguageSupport } from "../../services/textfile/common/textfiles.js"; import { ITextFileService } from "../../services/textfile/common/textfiles.service.js"; import { IEditorService } from "../../services/editor/common/editorService.service.js"; import { IFileService } from "../../../platform/files/common/files.service.js"; import { ILabelService } from "../../../platform/label/common/label.service.js"; import { ITextEditorModel } from "@codingame/monaco-vscode-model-service-override/vscode/vs/editor/common/services/resolverService"; import { ITextModelService } from "../../../editor/common/services/resolverService.service.js"; import { IFilesConfigurationService } from "../../services/filesConfiguration/common/filesConfigurationService.service.js"; import { ITextResourceConfigurationService } from "../../../editor/common/services/textResourceConfiguration.service.js"; import { ICustomEditorLabelService } from "../../services/editor/common/customEditorLabelService.service.js"; /** * The base class for all editor inputs that open in text editors. */ export declare abstract class AbstractTextResourceEditorInput extends AbstractResourceEditorInput { protected readonly editorService: IEditorService; protected readonly textFileService: ITextFileService; constructor(resource: URI, preferredResource: URI | undefined, editorService: IEditorService, textFileService: ITextFileService, labelService: ILabelService, fileService: IFileService, filesConfigurationService: IFilesConfigurationService, textResourceConfigurationService: ITextResourceConfigurationService, customEditorLabelService: ICustomEditorLabelService); save(group: GroupIdentifier, options?: ITextFileSaveOptions): Promise; saveAs(group: GroupIdentifier, options?: ITextFileSaveOptions): Promise; private doSave; revert(group: GroupIdentifier, options?: IRevertOptions): Promise; } /** * A read-only text editor input whos contents are made of the provided resource that points to an existing * code editor model. */ export declare class TextResourceEditorInput extends AbstractTextResourceEditorInput implements ILanguageSupport { private name; private description; private preferredLanguageId; private preferredContents; private readonly textModelService; static readonly ID: string; get typeId(): string; get editorId(): string | undefined; private cachedModel; private modelReference; constructor(resource: URI, name: string | undefined, description: string | undefined, preferredLanguageId: string | undefined, preferredContents: string | undefined, textModelService: ITextModelService, textFileService: ITextFileService, editorService: IEditorService, fileService: IFileService, labelService: ILabelService, filesConfigurationService: IFilesConfigurationService, textResourceConfigurationService: ITextResourceConfigurationService, customEditorLabelService: ICustomEditorLabelService); getName(): string; setName(name: string): void; getDescription(): string | undefined; setDescription(description: string): void; setLanguageId(languageId: string, source?: string): void; setPreferredLanguageId(languageId: string): void; setPreferredContents(contents: string): void; resolve(): Promise; matches(otherInput: EditorInput | IUntypedEditorInput): boolean; dispose(): void; }