You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(GH-65) Add Windows support to local Language Server
This commit adds Windows support to the local Language Server. It detects when
a 32bit VS Code is on a 64bit OS and will use the appropriate file system
redirection to find a Puppet Agent installation. This commit also improves the
user experience and will not throw large errors, but instead warns the user that
the language server could not be started and has reduced functionality.
myOutputChannel.appendLine('Starting language server')
@@ -189,7 +217,14 @@ export class ConnectionManager implements IConnectionManager {
189
217
};
190
218
}
191
219
220
+
if(cmd==undefined){
221
+
this.setSessionFailure("Unable to start the Language Server on this platform");
222
+
vscode.window.showWarningMessage('The Puppet Language Server is not supported on this platform ('+process.platform+'). Functionality will be limited to syntax highlighting');
223
+
return;
224
+
}
225
+
192
226
console.log("Starting the language server with "+cmd+" "+args.join(" "));
227
+
myOutputChannel.appendLine("Starting the language server with "+cmd+" "+args.join(" "));
193
228
varproc=cp.spawn(cmd,args,options)
194
229
console.log("ProcID = "+proc.pid);
195
230
myOutputChannel.appendLine('Language server PID:'+proc.pid)
0 commit comments