Tiny correction

This commit is contained in:
BoykoAlex
2020-06-02 17:19:28 -04:00
parent e59877221c
commit 95547b3b82

View File

@@ -62,7 +62,7 @@ export class HighlightService {
private updateHighlightsForEditor(editor: TextEditor) {
if (editor) {
const highlightParams: HighlightParams = this.highlights.get(editor.document.uri.toString());
const highlights: CodeLens[] = highlightParams.codeLenses || [];
const highlights: CodeLens[] = highlightParams?.codeLenses || [];
let decorations = highlights.map(hl => toVSRange(hl.range));
editor.setDecorations(this.DECORATION, decorations);
}