mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
Remove extra conditional
This should always be true
This commit is contained in:
@@ -106,10 +106,6 @@ export abstract class TypeScriptBaseCodeLensProvider implements vscode.CodeLensP
|
|||||||
(item.childItems || []).forEach(child => this.walkNavTree(document, child, item, results));
|
(item.childItems || []).forEach(child => this.walkNavTree(document, child, item, results));
|
||||||
}
|
}
|
||||||
protected getSymbolRange(document: vscode.TextDocument, item: Proto.NavigationTree): vscode.Range | null {
|
protected getSymbolRange(document: vscode.TextDocument, item: Proto.NavigationTree): vscode.Range | null {
|
||||||
if (!item) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TS 3.0+ provides a span for just the symbol
|
// TS 3.0+ provides a span for just the symbol
|
||||||
if (item.nameSpan) {
|
if (item.nameSpan) {
|
||||||
return typeConverters.Range.fromTextSpan(item.nameSpan);
|
return typeConverters.Range.fromTextSpan(item.nameSpan);
|
||||||
|
|||||||
Reference in New Issue
Block a user