Skip to content

Commit

Permalink
fix: highlightPlainText option
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinhuish committed Dec 8, 2024
1 parent a8b05ce commit 9d5fb01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/handler/langs/plaintext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ async function pickDecorationOptions({ editor }: { editor: vscode.TextEditor })

const configs = configuration.getConfigurationFlatten();

// skip if disabled highlight plain text
if (!configs.highlightPlainText) {
return decorationOptions;
}

const multilineTags = configs.tags.filter(t => t.multiline).map(tag => tag.tagEscaped);
const lineTags = configs.tags.filter(t => !t.multiline).map(tag => tag.tagEscaped);

Expand Down

0 comments on commit 9d5fb01

Please sign in to comment.