Remove some 'string' in uses (#248403)

This commit is contained in:
Alex Ross
2025-05-08 15:26:43 +02:00
committed by GitHub
parent 73a1cf5a93
commit 870ef43d16
3 changed files with 7 additions and 5 deletions

View File

@@ -199,7 +199,7 @@ function isTreeCommandEnabled(treeCommand: TreeCommand | Command, contextKeyServ
interface RenderedMessage { element: HTMLElement; disposables: DisposableStore }
function isRenderedMessageValue(messageValue: string | RenderedMessage | undefined): messageValue is RenderedMessage {
return !!messageValue && typeof messageValue !== 'string' && 'element' in messageValue && 'disposables' in messageValue;
return !!messageValue && typeof messageValue !== 'string' && !!messageValue.element && !!messageValue.disposables;
}
const noDataProviderMessage = localize('no-dataprovider', "There is no data provider registered that can provide view data.");