|
6 | 6 | import { AzExtParentTreeItem, AzExtTreeItem, AzureWizard, GenericTreeItem, IActionContext, parseError } from "@microsoft/vscode-azext-utils"; |
7 | 7 | import { ListContainersItem, ListContextItem, ListImagesItem, ListNetworkItem, ListVolumeItem, isCommandNotSupportedError } from "@microsoft/vscode-container-client"; |
8 | 8 | import { ConfigurationTarget, ThemeColor, ThemeIcon, WorkspaceConfiguration, l10n, workspace } from "vscode"; |
9 | | -import { showDockerLearnMoreNotification } from "../commands/showDockerLearnMoreNotification"; |
10 | 9 | import { configPrefix } from "../constants"; |
11 | 10 | import { ext } from "../extensionVariables"; |
12 | 11 | import { runtimeInstallStatusProvider } from "../utils/RuntimeInstallStatusProvider"; |
@@ -37,7 +36,6 @@ const groupByKey: string = 'groupBy'; |
37 | 36 | const sortByKey: string = 'sortBy'; |
38 | 37 | export const labelKey: string = 'label'; |
39 | 38 | export const descriptionKey: string = 'description'; |
40 | | -let dockerInstallNotificationShownToUser: boolean = false; |
41 | 39 |
|
42 | 40 | export abstract class LocalRootTreeItemBase<TItem extends AnyContainerObject, TProperty extends string | CommonProperty> extends AzExtParentTreeItem { |
43 | 41 | public abstract labelSettingInfo: ITreeSettingInfo<TProperty>; |
@@ -104,7 +102,6 @@ export abstract class LocalRootTreeItemBase<TItem extends AnyContainerObject, TP |
104 | 102 | this._currentDockerStatus = await runtimeInstallStatusProvider.isRuntimeInstalled() ? 'Installed' : 'NotInstalled'; |
105 | 103 | } |
106 | 104 |
|
107 | | - this.showDockerInstallNotificationIfNeeded(); |
108 | 105 | return await this.getDockerErrorTreeItems(context, error, this._currentDockerStatus === 'Installed'); |
109 | 106 | } |
110 | 107 |
|
@@ -320,14 +317,6 @@ export abstract class LocalRootTreeItemBase<TItem extends AnyContainerObject, TP |
320 | 317 |
|
321 | 318 | return this._cachedItems; |
322 | 319 | } |
323 | | - |
324 | | - private showDockerInstallNotificationIfNeeded(): void { |
325 | | - if (!dockerInstallNotificationShownToUser && this._currentDockerStatus === 'NotInstalled') { |
326 | | - dockerInstallNotificationShownToUser = true; |
327 | | - // eslint-disable-next-line @typescript-eslint/no-floating-promises |
328 | | - showDockerLearnMoreNotification(); |
329 | | - } |
330 | | - } |
331 | 320 | } |
332 | 321 |
|
333 | 322 | export function getTreeId(object: AnyContainerObject): string { |
|
0 commit comments