44 *-----------------------------------------------------------------------------------------------*/
55
66import { KubernetesObject } from '@kubernetes/client-node' ;
7- import { commands , env , ExtensionContext , Progress as VProgress , QuickInputButton , QuickPickItem , QuickPickItemButtonEvent , Terminal , ThemeIcon , Uri , WebviewPanel , window , workspace } from 'vscode' ;
7+ import { commands , env , ExtensionContext , Progress as VProgress , QuickInputButton , QuickPickItem , QuickPickItemButtonEvent , Terminal , ThemeIcon , Uri , window , workspace } from 'vscode' ;
88import { CliChannel } from '../cli' ;
99import { getInstance } from '../odo' ;
1010import { Command } from '../odo/command' ;
@@ -16,7 +16,6 @@ import { Platform } from '../util/platform';
1616import { Progress } from '../util/progress' ;
1717import { WindowUtil } from '../util/windowUtils' ;
1818import { vsCommand , VsCommandError } from '../vscommand' ;
19- import ClusterViewLoader from '../webview/cluster/clusterViewLoader' ;
2019import OpenShiftItem , { clusterRequired } from './openshiftItem' ;
2120import fetch = require( 'make-fetch-happen' ) ;
2221
@@ -224,14 +223,6 @@ export class Cluster extends OpenShiftItem {
224223 } ) ;
225224 }
226225
227- @vsCommand ( 'openshift.explorer.addCluster' )
228- static async add ( value : string ) : Promise < void > {
229- const webViewPanel : WebviewPanel = await ClusterViewLoader . loadView ( 'Add OpenShift Cluster' ) ;
230- if ( value ?. length > 0 ) {
231- await webViewPanel . webview . postMessage ( { action : 'cluster' , param : value } ) ;
232- }
233- }
234-
235226 @vsCommand ( 'openshift.explorer.stopCluster' )
236227 static async stop ( ) : Promise < void > {
237228 let pathSelectionDialog ;
0 commit comments