mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
Fix failure to match some ref count names
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user