File tree 1 file changed +2
-2
lines changed
packages/core/src/shared/utilities
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import * as logger from '../logger'
9
9
import { Timeout , CancellationError , waitUntil } from './timeoutUtils'
10
10
import { PollingSet } from './pollingSet'
11
11
import { getLogger } from '../logger/logger'
12
- import { isWin } from '../vscode/env'
13
12
14
13
export interface RunParameterContext {
15
14
/** Reports an error parsed from the stdin/stdout streams. */
@@ -184,7 +183,8 @@ export class ChildProcessTracker {
184
183
}
185
184
}
186
185
try {
187
- return isWin ( ) ? getWindowsUsage ( ) : getUnixUsage ( )
186
+ // isWin() leads to circular dependency.
187
+ return process . platform === 'win32' ? getWindowsUsage ( ) : getUnixUsage ( )
188
188
} catch ( e ) {
189
189
ChildProcessTracker . logger . warn ( `ChildProcess: Failed to get process stats for ${ pid } : ${ e } ` )
190
190
return { cpu : 0 , memory : 0 }
You can’t perform that action at this time.
0 commit comments