@@ -46,8 +46,8 @@ namespace InstallerWrapper {
4646 function getInternalExecutable ( ) : string {
4747 const platform = MCUtil . getOS ( ) ;
4848 const executable = platform === "windows" ? INSTALLER_EXECUTABLE_WIN : INSTALLER_EXECUTABLE ;
49- if ( platform === "windows ") {
50- throw new Error ( "The installer does not support Windows at this time." ) ;
49+ if ( platform !== "macos ") {
50+ throw new Error ( "Codewind can only be started on macOS at this time." ) ;
5151 }
5252 return path . join ( global . __extRoot , BIN_DIR , INSTALLER_DIR , platform , executable ) ;
5353 }
@@ -92,7 +92,7 @@ namespace InstallerWrapper {
9292 location : vscode . ProgressLocation . Notification ,
9393 title : userMsg ,
9494 } , ( _progress ) => {
95- return new Promise ( ( resolve , reject ) => {
95+ return new Promise < void > ( ( resolve , reject ) => {
9696 child_process . execFile ( executableLoc , [ cmd ] , {
9797 cwd : tmpDir ,
9898 timeout : START_TIMEOUT ,
@@ -106,10 +106,10 @@ namespace InstallerWrapper {
106106 }
107107 Log . i ( "Successfully started CW with installer" ) ;
108108
109- if ( cmd === InstallerCommands . START ) {
110- // additional delay
111- await new Promise ( ( resolve2 ) => setTimeout ( resolve2 , 5000 ) ) ;
112- }
109+ // if (cmd === InstallerCommands.START) {
110+ // // additional delay
111+ // await new Promise((resolve2) => setTimeout(resolve2, 5000));
112+ // }
113113
114114 currentOperation = undefined ;
115115 resolve ( ) ;
0 commit comments