Skip to content

Commit 56d9340

Browse files
author
Rachel Macfarlane
authored
Update onDidChangeTreeData event type, fixes #96932 (#96933)
1 parent 21ace28 commit 56d9340

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vs/vscode.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7897,7 +7897,7 @@ declare module 'vscode' {
78977897
* This will trigger the view to update the changed element/root and its children recursively (if shown).
78987898
* To signal that root has changed, do not pass any argument or pass `undefined` or `null`.
78997899
*/
7900-
onDidChangeTreeData?: Event<T | undefined | null>;
7900+
onDidChangeTreeData?: Event<T | undefined | null | void>;
79017901

79027902
/**
79037903
* Get [TreeItem](#TreeItem) representation of the `element`

src/vs/workbench/api/common/extHostTreeViews.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class ExtHostTreeViews implements ExtHostTreeViewsShape {
153153
}
154154
}
155155

156-
type Root = null | undefined;
156+
type Root = null | undefined | void;
157157
type TreeData<T> = { message: boolean, element: T | Root | false };
158158

159159
interface TreeNode extends IDisposable {

0 commit comments

Comments
 (0)