提交 5f1828b7 编写于 作者: M Matt Bierner

Fix failure to match some ref count names

上级 a431cda9
......@@ -133,7 +133,7 @@ export default class TypeScriptReferencesCodeLensProvider implements CodeLensPro
case PConst.Kind.interface:
case PConst.Kind.type:
case PConst.Kind.enum:
const identifierMatch = new RegExp(`^(.*?(\\b|\\W))${item.text}`, 'gm');
const identifierMatch = new RegExp(`^(.*?(\\b|\\W))${item.text}\\b`, 'gm');
const match = identifierMatch.exec(text);
const start = match ? match.index + match[1].length : 0;
results.push(new Range(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册