Skip to content

Commit

Permalink
Skip making decoration if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
smikitky committed Jun 23, 2020
1 parent 05da6f8 commit 3f423e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const decorate = async (editor: vscode.TextEditor): Promise<void> => {
.split('\\')
.map(item => valueDict[tag][item] ?? '')
.join('\\');
if (contentText.length > 100) continue;
if (contentText.length > 100 || contentText.length === 0) continue;
decorations.push({
range: line.range,
renderOptions: { after: { contentText: '(' + contentText + ')' } }
Expand Down

0 comments on commit 3f423e9

Please sign in to comment.