@@ -8,7 +8,7 @@ import * as path from 'path'
88import fs from '../../shared/fs/fs'
99import { GitExtension } from '../extensions/git'
1010import { Settings } from '../settings'
11- import * as processUtils from './processUtils '
11+ import * as programUtils from './programUtils '
1212
1313/** Full path to VSCode CLI. */
1414let vscPath : string
@@ -50,7 +50,7 @@ export async function getVscodeCliPath(): Promise<string | undefined> {
5050 if ( ! vsc || ( vsc !== 'code' && ! ( await fs . exists ( vsc ) ) ) ) {
5151 continue
5252 }
53- if ( await processUtils . tryRun ( vsc , [ '--version' ] ) ) {
53+ if ( await programUtils . tryRun ( vsc , [ '--version' ] ) ) {
5454 vscPath = vsc
5555 return vsc
5656 }
@@ -75,7 +75,7 @@ export async function findTypescriptCompiler(): Promise<string | undefined> {
7575
7676 for ( const tsc of tscPaths ) {
7777 // Try to run "tsc -v".
78- if ( await processUtils . tryRun ( tsc , [ '-v' ] , 'yes' , 'Version' ) ) {
78+ if ( await programUtils . tryRun ( tsc , [ '-v' ] , 'yes' , 'Version' ) ) {
7979 return tsc
8080 }
8181 }
@@ -104,7 +104,7 @@ export async function findSshPath(useCache: boolean = true): Promise<string | un
104104 if ( ! p || ( 'ssh' !== p && ! ( await fs . exists ( p ) ) ) ) {
105105 continue
106106 }
107- if ( await processUtils . tryRun ( p , [ '-G' , 'x' ] , 'noresult' /* "ssh -G" prints quasi-sensitive info. */ ) ) {
107+ if ( await programUtils . tryRun ( p , [ '-G' , 'x' ] , 'noresult' /* "ssh -G" prints quasi-sensitive info. */ ) ) {
108108 sshPath = p
109109 return p
110110 }
@@ -126,7 +126,7 @@ export async function findGitPath(): Promise<string | undefined> {
126126 if ( ! p || ( 'git' !== p && ! ( await fs . exists ( p ) ) ) ) {
127127 continue
128128 }
129- if ( await processUtils . tryRun ( p , [ '--version' ] ) ) {
129+ if ( await programUtils . tryRun ( p , [ '--version' ] ) ) {
130130 gitPath = p
131131 return p
132132 }
@@ -146,7 +146,7 @@ export async function findBashPath(): Promise<string | undefined> {
146146 if ( ! p || ( 'bash' !== p && ! ( await fs . exists ( p ) ) ) ) {
147147 continue
148148 }
149- if ( await processUtils . tryRun ( p , [ '--version' ] ) ) {
149+ if ( await programUtils . tryRun ( p , [ '--version' ] ) ) {
150150 bashPath = p
151151 return p
152152 }
0 commit comments