mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
use ?.
This commit is contained in:
@@ -56,11 +56,8 @@ export abstract class TypeScriptBaseCodeLensProvider implements vscode.CodeLensP
|
||||
return [];
|
||||
}
|
||||
|
||||
const tree = response.body;
|
||||
const referenceableSpans: vscode.Range[] = [];
|
||||
if (tree && tree.childItems) {
|
||||
tree.childItems.forEach(item => this.walkNavTree(document, item, undefined, referenceableSpans));
|
||||
}
|
||||
response.body?.childItems?.forEach(item => this.walkNavTree(document, item, undefined, referenceableSpans));
|
||||
return referenceableSpans.map(span => new ReferencesCodeLens(document.uri, filepath, span));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user