import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { Lazy } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lazy"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { ResourceMap } from "@codingame/monaco-vscode-api/vscode/vs/base/common/map"; import { TernarySearchTree } from "@codingame/monaco-vscode-api/vscode/vs/base/common/ternarySearchTree"; import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { ITextModel } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/model"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service"; import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service"; import { IReplaceService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/browser/replace.service"; import { IFileMatch, ITextQuery } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search"; import { FileMatchImpl } from "./fileMatch.js"; import { IChangeEvent, ISearchTreeFileMatch, ISearchTreeFolderMatch, ISearchTreeFolderMatchWithResource, ISearchTreeFolderMatchNoRoot, ISearchTreeFolderMatchWorkspaceRoot, ISearchModel, ISearchResult, ITextSearchHeading } from "@codingame/monaco-vscode-85f7fb0f-70f5-5a5e-831b-15c743a8bd11-common/vscode/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon"; import { NotebookEditorWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget"; export declare class FolderMatchImpl extends Disposable implements ISearchTreeFolderMatch { protected _resource: URI | null; protected _index: number; protected _query: ITextQuery; private _parent; private _searchResult; private _closestRoot; private readonly replaceService; protected readonly instantiationService: IInstantiationService; protected readonly uriIdentityService: IUriIdentityService; protected _onChange: Emitter; readonly onChange: Event; private _onDispose; readonly onDispose: Event; protected _fileMatches: ResourceMap; protected _folderMatches: ResourceMap; protected _folderMatchesMap: TernarySearchTree; protected _unDisposedFileMatches: ResourceMap; protected _unDisposedFolderMatches: ResourceMap; private _replacingAll; private _name; private readonly _id; constructor(_resource: URI | null, _id: string, _index: number, _query: ITextQuery, _parent: ITextSearchHeading | FolderMatchImpl, _searchResult: ISearchResult, _closestRoot: ISearchTreeFolderMatchWorkspaceRoot | null, replaceService: IReplaceService, instantiationService: IInstantiationService, labelService: ILabelService, uriIdentityService: IUriIdentityService); get searchModel(): ISearchModel; get showHighlights(): boolean; get closestRoot(): ISearchTreeFolderMatchWorkspaceRoot | null; set replacingAll(b: boolean); id(): string; get resource(): URI | null; index(): number; name(): string; parent(): ITextSearchHeading | FolderMatchImpl; isAIContributed(): boolean; get hasChildren(): boolean; bindModel(model: ITextModel): void; createIntermediateFolderMatch(resource: URI, id: string, index: number, query: ITextQuery, baseWorkspaceFolder: ISearchTreeFolderMatchWorkspaceRoot): FolderMatchWithResourceImpl; configureIntermediateMatch(folderMatch: FolderMatchWithResourceImpl): void; clear(clearingAll?: boolean): void; remove(matches: ISearchTreeFileMatch | ISearchTreeFolderMatchWithResource | (ISearchTreeFileMatch | ISearchTreeFolderMatchWithResource)[]): void; replace(match: FileMatchImpl): Promise; replaceAll(): Promise; matches(): (ISearchTreeFileMatch | ISearchTreeFolderMatchWithResource)[]; fileMatchesIterator(): IterableIterator; folderMatchesIterator(): IterableIterator; isEmpty(): boolean; getDownstreamFileMatch(uri: URI): ISearchTreeFileMatch | null; allDownstreamFileMatches(): ISearchTreeFileMatch[]; private fileCount; private folderCount; count(): number; recursiveFileCount(): number; recursiveMatchCount(): number; get query(): ITextQuery | null; doAddFile(fileMatch: ISearchTreeFileMatch): void; hasOnlyReadOnlyMatches(): boolean; protected uriHasParent(parent: URI, child: URI): boolean; private isInParentChain; getFolderMatch(resource: URI): FolderMatchWithResourceImpl | undefined; doAddFolder(folderMatch: FolderMatchWithResourceImpl): void; private batchReplace; onFileChange(fileMatch: ISearchTreeFileMatch, removed?: boolean): void; onFolderChange(folderMatch: FolderMatchWithResourceImpl, event: IChangeEvent): void; doRemoveFile(fileMatches: ISearchTreeFileMatch[], dispose?: boolean, trigger?: boolean, keepReadonly?: boolean): void; bindNotebookEditorWidget(editor: NotebookEditorWidget, resource: URI): Promise; addFileMatch(raw: IFileMatch[], silent: boolean, searchInstanceID: string): void; unbindNotebookEditorWidget(editor: NotebookEditorWidget, resource: URI): void; disposeMatches(): void; dispose(): void; } export declare class FolderMatchWithResourceImpl extends FolderMatchImpl implements ISearchTreeFolderMatchWithResource { protected _normalizedResource: Lazy; constructor(_resource: URI, _id: string, _index: number, _query: ITextQuery, _parent: ITextSearchHeading | FolderMatchImpl, _searchResult: ISearchResult, _closestRoot: ISearchTreeFolderMatchWorkspaceRoot | null, replaceService: IReplaceService, instantiationService: IInstantiationService, labelService: ILabelService, uriIdentityService: IUriIdentityService); get resource(): URI; get normalizedResource(): URI; } /** * FolderMatchWorkspaceRoot => folder for workspace root */ export declare class FolderMatchWorkspaceRootImpl extends FolderMatchWithResourceImpl implements ISearchTreeFolderMatchWorkspaceRoot { constructor(_resource: URI, _id: string, _index: number, _query: ITextQuery, _parent: ITextSearchHeading, replaceService: IReplaceService, instantiationService: IInstantiationService, labelService: ILabelService, uriIdentityService: IUriIdentityService); private normalizedUriParent; private uriEquals; private createFileMatch; createAndConfigureFileMatch(rawFileMatch: IFileMatch, searchInstanceID: string): FileMatchImpl; } export declare class FolderMatchNoRootImpl extends FolderMatchImpl implements ISearchTreeFolderMatchNoRoot { constructor(_id: string, _index: number, _query: ITextQuery, _parent: ITextSearchHeading, replaceService: IReplaceService, instantiationService: IInstantiationService, labelService: ILabelService, uriIdentityService: IUriIdentityService); createAndConfigureFileMatch(rawFileMatch: IFileMatch, searchInstanceID: string): ISearchTreeFileMatch; }