717
718
public async parseNew(uri: URI, token: CancellationToken): Promise<ParsedPromptFile> {
720
>
if (model) {
721
return this.getParsedPromptFile(model);
722
}
724
>
const fileContent = await this.fileService.readFile(uri);
725
>
if (token.isCancellationRequested) {
726
throw new CancellationError();
727
}
729
>
}
730
731
public registerContributedFile(type: PromptsType, uri: URI, extension: IExtensionDescription, name?: string, description?: string, when?: string, sessionTypes?: readonly string[]) {