Skip to content

Commit

Permalink
Fix output highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed May 5, 2024
1 parent 4455865 commit 2f7dbcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Logical English Extension",
"description": "Run Logical English programs in VSCode",
"publisher": "galileos",
"version": "0.0.2",
"version": "0.0.4",
"repository": {
"type": "git",
"url": "https://github.com/LyzardKing/LogicalEnglishExtension.git"
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ parse_and_query_and_explanation_text('${module}', en("${content}"), ${query}, wi
// engine.close();
vscode.commands.executeCommand('setContext', 'logical-english-extension.next-result', swipl_query !== undefined);
let output = await swipl_query.next();
le_output.appendLine(`# Answer ${query} with ${scenario}\n`);
le_output.appendLine(`% Answer ${query} with ${scenario}\n`);
// @ts-ignore
const answer = output.value.Answer;
answers.push(answer.v.replace(/_\d+/gm, 'tmp'));
Expand Down Expand Up @@ -114,7 +114,7 @@ parse_and_query_and_explanation_text('${module}', en("${content}"), ${query}, wi
consult('/logicalenglish/prolog/le_answer.pl'),
parse_and_query_and_explanation('${module}', en("${content}"), ${query}, with(${scenario}), _),
with_output_to(string(R), show(prolog)).`).once();
le_output.appendLine("# Show prolog for " + module + "\n");
le_output.appendLine("% Show prolog for " + module + "\n");
//@ts-ignore
le_output.appendLine(output.R);
le_output.show(true);
Expand Down

0 comments on commit 2f7dbcd

Please sign in to comment.