55
66'use strict' ;
77
8- import { spawn , ChildProcess } from 'child_process' ;
9- import { satisfies } from 'semver' ;
10- import { PlatformInformation , OperatingSystem } from '../platform' ;
8+ import { spawn , ChildProcess } from 'child_process' ;
9+ import { satisfies } from 'semver' ;
10+ import { PlatformInformation } from '../platform' ;
1111import * as path from 'path' ;
1212import * as vscode from 'vscode' ;
1313import * as util from '../common' ;
@@ -165,7 +165,7 @@ function launch(cwd: string, args: string[], kind: LaunchTargetKind): Promise<La
165165
166166 const launchPath = options . path || getLaunchPath ( platformInfo , kind ) ;
167167
168- if ( platformInfo . operatingSystem === OperatingSystem . Windows ) {
168+ if ( platformInfo . isWindows ( ) ) {
169169 return launchWindows ( launchPath , cwd , args ) ;
170170 }
171171 else {
@@ -176,15 +176,15 @@ function launch(cwd: string, args: string[], kind: LaunchTargetKind): Promise<La
176176
177177function getLaunchPath ( platformInfo : PlatformInformation , kind : LaunchTargetKind ) : string {
178178 if ( kind === LaunchTargetKind . Solution ) {
179- if ( platformInfo . operatingSystem === OperatingSystem . Windows ) {
179+ if ( platformInfo . isWindows ( ) ) {
180180 return path . join ( util . getExtensionPath ( ) , '.omnisharp-desktop' , 'OmniSharp.exe' ) ;
181181 }
182182
183183 return path . join ( util . getExtensionPath ( ) , '.omnisharp-mono' , 'OmniSharp.exe' ) ;
184184 }
185185
186186 let basePath = path . join ( util . getExtensionPath ( ) , '.omnisharp-coreclr' ) ;
187- if ( platformInfo . operatingSystem === OperatingSystem . Windows ) {
187+ if ( platformInfo . isWindows ( ) ) {
188188 return path . join ( basePath , 'OmniSharp.exe' ) ;
189189 }
190190 else {
0 commit comments