提交 6091d5d7 编写于 作者: I isidor

debug: only show inline decorations for other token type

上级 df2d1d26
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册