Close #114342
This commit is contained in:
parent
1f8643ef76
commit
b50bd5d094
|
@ -223,9 +223,18 @@ function parseSearchResults(document: vscode.TextDocument, token?: vscode.Cancel
|
|||
const metadataOffset = (indentation + _lineNumber + seperator).length;
|
||||
const targetRange = new vscode.Range(Math.max(lineNumber - 3, 0), 0, lineNumber + 3, line.length);
|
||||
|
||||
let locations: Required<vscode.LocationLink>[] = [];
|
||||
|
||||
// Allow line number, indentation, etc to take you to definition as well.
|
||||
locations.push({
|
||||
targetRange,
|
||||
targetSelectionRange: new vscode.Range(lineNumber, 0, lineNumber, 1),
|
||||
targetUri: currentTarget,
|
||||
originSelectionRange: new vscode.Range(i, 0, i, resultStart),
|
||||
});
|
||||
|
||||
let lastEnd = resultStart;
|
||||
let offset = 0;
|
||||
let locations: Required<vscode.LocationLink>[] = [];
|
||||
ELISION_REGEX.lastIndex = resultStart;
|
||||
for (let match: RegExpExecArray | null; (match = ELISION_REGEX.exec(line));) {
|
||||
locations.push({
|
||||
|
|
Loading…
Reference in a new issue