mockPromptsService.ts ×2

Frontier kind: Code frontier

unlabeled · c_df8da68e6fae

157 tests · 23842 LOC · 127 files · introduces 0 tests · 57 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges57 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2604 ranges23842 lines · 127 files · Browse complete extent
All tests (intent)
157 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 57 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/chat/test/common/promptSyntax/service/mockPromptsService.ts 57 introduced LOC · 2 ranges

Open complete file

16
17 export class MockPromptsService implements IPromptsService {
19 > _serviceBrand: undefined;
20 >
21 > private readonly _onDidChangeCustomAgents = new Emitter<void>();
22 > readonly onDidChangeCustomAgents = this._onDidChangeCustomAgents.event;
23 >
24 > private _customModes: ICustomAgent[] = [];
25 >
26 > setCustomModes(modes: ICustomAgent[]): void {
27 > this._customModes = modes;
28 > this._onDidChangeCustomAgents.fire();
29 > }
30 >
31 > async getCustomAgents(token: CancellationToken): Promise<readonly ICustomAgent[]> {
32 return this._customModes;
33 }
35 > // Stub implementations for required interface methods
36 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
37 > getSyntaxParserFor(_model: any): any { throw new Error('Not implemented'); }
38 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
39 > listPromptFiles(_type: any): Promise<readonly any[]> { throw new Error('Not implemented'); }
40 > listPromptFilesForStorage(type: PromptsType, storage: PromptsStorage, token: CancellationToken): Promise<readonly IPromptPath[]> { throw new Error('Not implemented'); }
41 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
42 > getSourceFolders(_type: any): Promise<readonly any[]> { throw new Error('Not implemented'); }
43 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
44 > getResolvedSourceFolders(_type: any): Promise<readonly any[]> { throw new Error('Not implemented'); }
45 > isValidSlashCommandName(_command: string): boolean { return false; }
46 > hasPromptSlashCommand(_name: string): boolean { return false; }
47 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
48 > resolvePromptSlashCommand(command: string, _sessionType: string | undefined, _token: CancellationToken): Promise<any> { throw new Error('Not implemented'); }
49 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
50 > getPromptSlashCommands(_token: CancellationToken): Promise<any[]> { throw new Error('Not implemented'); }
51 > getPromptSlashCommandName(uri: URI, _token: CancellationToken): Promise<string> { throw new Error('Not implemented'); }
52 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
53 > parse(_uri: URI, _type: any, _token: CancellationToken): Promise<any> { throw new Error('Not implemented'); }
54 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
55 > parseNew(uri: URI, _token: CancellationToken): Promise<any> { return Promise.resolve({ uri }); }
56 > getParsedPromptFile(textModel: ITextModel): ParsedPromptFile { throw new Error('Not implemented'); }
57 > registerContributedFile(type: PromptsType, uri: URI, extension: IExtensionDescription, name: string | undefined, description: string | undefined, when?: string, sessionTypes?: readonly string[]): IDisposable { throw new Error('Not implemented'); }
58 > getPromptLocationLabel(promptPath: IPromptPath): string { throw new Error('Not implemented'); }
59 > listNestedAgentMDs(token: CancellationToken): Promise<IAgentInstructionFile[]> { throw new Error('Not implemented'); }
60 > listAgentInstructions(token: CancellationToken): Promise<IAgentInstructionFile[]> { throw new Error('Not implemented'); }
61 > getAgentFileURIFromModeFile(oldURI: URI): URI | undefined { throw new Error('Not implemented'); }
62 > getDisabledPromptFiles(type: PromptsType): ResourceSet { throw new Error('Method not implemented.'); }
63 > setDisabledPromptFiles(type: PromptsType, uris: ResourceSet): void { throw new Error('Method not implemented.'); }
64 > registerPromptFileProvider(extension: IExtensionDescription, type: PromptsType, provider: { providePromptFiles: (context: IPromptFileContext, token: CancellationToken) => Promise<IPromptFileResource[] | undefined> }): IDisposable { throw new Error('Method not implemented.'); }
65 > findAgentSkills(token: CancellationToken): Promise<IAgentSkill[] | undefined> { throw new Error('Method not implemented.'); }
66 > // eslint-disable-next-line @typescript-eslint/no-explicit-any
67 > getHooks(_token: CancellationToken): Promise<any> { throw new Error('Method not implemented.'); }
68 > getInstructionFiles(_token: CancellationToken): Promise<readonly IInstructionFile[]> { throw new Error('Method not implemented.'); }
69 > getDiscoveryInfo(_type: PromptsType, _token: CancellationToken): Promise<IPromptDiscoveryInfo> { throw new Error('Method not implemented.'); }
70 > dispose(): void { }
71 > onDidChangeInstructions: Event<void> = Event.None;
72 > onDidChangeAgentInstructions: Event<void> = Event.None;
73 > onDidChangePromptFiles: Event<void> = Event.None;
74 > onDidChangeSkills: Event<void> = Event.None;
75 > onDidChangeHooks: Event<void> = Event.None;
76 > onDidChangeSlashCommands: Event<void> = Event.None;
77 }