export class PromptFileParser {
constructor() {
public parse(uri: URI, content: string): ParsedPromptFile {
if (linesWithEOL.length === 0) {
return new ParsedPromptFile(uri, undefined, undefined);
}
let body: PromptBody | undefined = undefined;
let bodyStartLine = 0;
if (linesWithEOL[0].match(/^---[\s\r\n]*$/)) {
let headerEndLine = linesWithEOL.findIndex((line, index) => index > 0 && line.match(/^---[\s\r\n]*$/));
if (headerEndLine === -1) {