mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
clean setInput
This commit is contained in:
@@ -283,13 +283,8 @@ export class AsyncDataTree<TInput, T, TFilterData = void> implements IDisposable
|
||||
return this.root.element as TInput;
|
||||
}
|
||||
|
||||
setInput(input: TInput | undefined): Promise<void> {
|
||||
setInput(input: TInput): Promise<void> {
|
||||
this.root.element = input!;
|
||||
|
||||
if (typeof input === 'undefined') {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return this.refresh(input);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user