File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ Performa validation of interpreter only when a Notebook is opened instead of when extension activates.
Original file line number Diff line number Diff line change @@ -28,19 +28,21 @@ export class Activation implements IExtensionSingleActivationService {
28
28
public async activate ( ) : Promise < void > {
29
29
this . disposables . push ( this . notebookEditorProvider . onDidOpenNotebookEditor ( this . onDidOpenNotebookEditor , this ) ) ;
30
30
this . disposables . push ( this . jupyterInterpreterService . onDidChangeInterpreter ( this . onDidChangeInterpreter , this ) ) ;
31
- // Warm up our selected interpreter for the extension
32
- this . jupyterInterpreterService . setInitialInterpreter ( ) . ignoreErrors ( ) ;
33
31
this . contextService . activate ( ) . ignoreErrors ( ) ;
34
32
}
35
33
36
34
private onDidOpenNotebookEditor ( _ : INotebookEditor ) {
37
35
this . notebookOpened = true ;
38
36
this . PreWarmDaemonPool ( ) . ignoreErrors ( ) ;
39
37
sendTelemetryEvent ( Telemetry . OpenNotebookAll ) ;
38
+ // Warm up our selected interpreter for the extension
39
+ this . jupyterInterpreterService . setInitialInterpreter ( ) . ignoreErrors ( ) ;
40
40
}
41
41
42
42
private onDidChangeInterpreter ( ) {
43
43
if ( this . notebookOpened ) {
44
+ // Warm up our selected interpreter for the extension
45
+ this . jupyterInterpreterService . setInitialInterpreter ( ) . ignoreErrors ( ) ;
44
46
this . PreWarmDaemonPool ( ) . ignoreErrors ( ) ;
45
47
}
46
48
}
You can’t perform that action at this time.
0 commit comments