File tree 3 files changed +10
-10
lines changed 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,10 @@ export class Config {
49
49
this . executionDetailsChanged = this . dispose . track ( new EventEmitter ( ) )
50
50
this . onDidChangeExecutionDetails = this . executionDetailsChanged . event
51
51
52
- this . setPythonBinPath ( )
53
-
54
- this . onDidChangePythonExecutionDetails ( )
52
+ this . setPythonBinPath ( ) . then ( ( ) => {
53
+ this . onDidChangePythonExecutionDetails ( )
54
+ this . onDidConfigurationChange ( )
55
+ } )
55
56
56
57
this . vsCodeTheme = window . activeColorTheme
57
58
@@ -60,8 +61,6 @@ export class Config {
60
61
this . vsCodeTheme = window . activeColorTheme
61
62
} )
62
63
)
63
-
64
- this . onDidConfigurationChange ( )
65
64
}
66
65
67
66
public setDvcRoots ( dvcRoots : string [ ] ) : void {
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ import {
45
45
} from './telemetry'
46
46
import { EventName } from './telemetry/constants'
47
47
import { RegisteredCommands } from './commands/external'
48
- import { StopWatch } from './util/time'
48
+ import { delay , StopWatch } from './util/time'
49
49
50
50
export { Disposable , Disposer }
51
51
@@ -254,7 +254,7 @@ export class Extension implements IExtension {
254
254
)
255
255
)
256
256
257
- this . dispose . track ( getTelemetryReporter ( ) )
257
+ delay ( 500 ) . then ( ( ) => this . dispose . track ( getTelemetryReporter ( ) ) )
258
258
}
259
259
260
260
public hasRoots = ( ) => definedAndNonEmpty ( this . dvcRoots )
Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ export class TrackedExplorerTree implements TreeDataProvider<string> {
110
110
}
111
111
112
112
private async getRootElements ( ) {
113
+ const rootElements = await Promise . all (
114
+ this . dvcRoots . map ( dvcRoot => this . readDirectory ( dvcRoot , dvcRoot ) )
115
+ )
116
+
113
117
if ( ! this . viewed ) {
114
118
sendViewOpenedTelemetryEvent (
115
119
EventName . VIEWS_TRACKED_EXPLORER_TREE_OPENED ,
@@ -118,9 +122,6 @@ export class TrackedExplorerTree implements TreeDataProvider<string> {
118
122
this . viewed = true
119
123
}
120
124
121
- const rootElements = await Promise . all (
122
- this . dvcRoots . map ( dvcRoot => this . readDirectory ( dvcRoot , dvcRoot ) )
123
- )
124
125
return rootElements
125
126
. reduce ( ( a , b ) => a . concat ( b ) , [ ] )
126
127
. sort ( ( a , b ) => {
You can’t perform that action at this time.
0 commit comments