File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ export class CrcStatus {
123
123
case 'Stopping' :
124
124
return 'stopping' ;
125
125
case 'Stopped' :
126
- return 'stopped ' ;
126
+ return 'configured ' ;
127
127
case 'No Cluster' :
128
- return 'stopped ' ;
128
+ return 'configured ' ;
129
129
case 'Error' :
130
130
return 'error' ;
131
131
case 'Need Setup' :
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export async function activate(extensionContext: extensionApi.ExtensionContext):
92
92
if ( hasSetupFinished ) {
93
93
await needSetup ( ) ;
94
94
connectToCrc ( ) ;
95
+ presetChanged ( provider , extensionContext ) ;
95
96
}
96
97
} ,
97
98
} ) ,
@@ -198,7 +199,7 @@ async function registerOpenShiftLocalCluster(
198
199
async function readPreset ( crcStatus : Status ) : Promise < 'Podman' | 'OpenShift' | 'MicroShift' | 'unknown' > {
199
200
let preset : string ;
200
201
//preset could be undefined if vm not created yet, use preferences instead
201
- if ( crcStatus . Preset === undefined ) {
202
+ if ( crcStatus . Preset === undefined || crcStatus . Preset === 'Unknown' ) {
202
203
const config = await commander . configGet ( ) ;
203
204
preset = config . preset ;
204
205
} else {
You can’t perform that action at this time.
0 commit comments