Skip to content

Commit

Permalink
debug: only show inline decorations for other token type
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Jan 13, 2017
1 parent df2d1d2 commit 6091d5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function getEditorWordRangeMap(editorModel: IModel): IStringDictionary<IR
const tokenStr = lineContent.substring(startOffset, endOffset);

// Token is a word and not a comment
if (lineTokens.getStandardTokenType(j) !== StandardTokenType.Comment) {
if (lineTokens.getStandardTokenType(j) === StandardTokenType.Other) {
WORD_REGEXP.lastIndex = 0; // We assume tokens will usually map 1:1 to words if they match
const wordMatch = WORD_REGEXP.exec(tokenStr);

Expand Down

0 comments on commit 6091d5d

Please sign in to comment.