mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Part 2 - Make Model view components disposable + dispose all emitters (#24097)
This commit is contained in:
@@ -82,7 +82,8 @@ export function createViewContext(): ViewTestContext {
|
||||
onValidityChanged: undefined!,
|
||||
valid: true,
|
||||
validate: undefined!,
|
||||
focus: () => Promise.resolve()
|
||||
focus: () => Promise.resolve(),
|
||||
dispose() { }
|
||||
};
|
||||
let button: azdata.ButtonComponent = Object.assign({}, componentBase, {
|
||||
onDidClick: onClick.event
|
||||
@@ -283,6 +284,7 @@ export function createViewContext(): ViewTestContext {
|
||||
onValidityChanged: undefined!,
|
||||
validate: undefined!,
|
||||
initializeModel: () => { return Promise.resolve(); },
|
||||
dispose() { },
|
||||
modelBuilder: {
|
||||
listView: undefined!,
|
||||
radioCardGroup: undefined!,
|
||||
|
||||
Reference in New Issue
Block a user