mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
Part 2 - Make Model view components disposable + dispose all emitters (#24097)
This commit is contained in:
@@ -44,20 +44,17 @@
|
||||
}
|
||||
],
|
||||
"menus": {
|
||||
"objectExplorer/item/context": [
|
||||
],
|
||||
"dataExplorer/context": [
|
||||
],
|
||||
"commandPalette": [
|
||||
]
|
||||
"objectExplorer/item/context": [],
|
||||
"dataExplorer/context": [],
|
||||
"commandPalette": []
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"vscode-nls": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/azdata-test": "^3.0.1",
|
||||
"@microsoft/vscodetestcover": "^1.2.2",
|
||||
"@microsoft/azdata-test": "^3.0.3",
|
||||
"@types/mocha": "^7.0.2",
|
||||
"should": "^13.2.1",
|
||||
"typemoq": "^2.1.0"
|
||||
|
||||
@@ -19,7 +19,8 @@ export function createViewContext(): TestContext {
|
||||
onValidityChanged: undefined!,
|
||||
valid: true,
|
||||
validate: undefined!,
|
||||
focus: undefined!
|
||||
focus: undefined!,
|
||||
dispose() { }
|
||||
};
|
||||
|
||||
const components: azdata.Component[] = [];
|
||||
@@ -67,6 +68,7 @@ export function createViewContext(): TestContext {
|
||||
onValidityChanged: undefined!,
|
||||
validate: undefined!,
|
||||
initializeModel: () => { return Promise.resolve(); },
|
||||
dispose() { },
|
||||
modelBuilder: {
|
||||
listView: undefined!,
|
||||
radioCardGroup: undefined!,
|
||||
|
||||
@@ -233,10 +233,10 @@
|
||||
"@jridgewell/resolve-uri" "3.1.0"
|
||||
"@jridgewell/sourcemap-codec" "1.4.14"
|
||||
|
||||
"@microsoft/azdata-test@^3.0.1":
|
||||
version "3.0.2"
|
||||
resolved "https://registry.yarnpkg.com/@microsoft/azdata-test/-/azdata-test-3.0.2.tgz#71cfbbc2ee9c1805311f3a5828b50679a5e6d73c"
|
||||
integrity sha512-NMoSKp/Zgs+1ZIe07w+FeKhqMaxgViLGmLTQHPfYN7RRTFErJBd8JgskxYoLZbgcctfVsV+Yw+zQEn1+g2mPKg==
|
||||
"@microsoft/azdata-test@^3.0.3":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@microsoft/azdata-test/-/azdata-test-3.0.3.tgz#a1b5bbead5412ac7925129e6199d724bfc8117ee"
|
||||
integrity sha512-Whit8+MpNN/Kkx3R9CGT26FhYNzkjNyOb6dsaqkMq1scpO3JCeNJqhcSqTTsSbkRVdAKoYrJcpLZdoO9D1X/yw==
|
||||
dependencies:
|
||||
http-proxy-agent "^5.0.0"
|
||||
https-proxy-agent "^5.0.0"
|
||||
|
||||
Reference in New Issue
Block a user