Skip to content

Commit f5e99d4

Browse files
authored
Update session.ts
Removes SSL check
1 parent 93b9e20 commit f5e99d4

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/session.ts

-28
Original file line numberDiff line numberDiff line change
@@ -113,34 +113,6 @@ export class SessionManager implements Middleware {
113113

114114
this.powerShellExePath = this.getPowerShellExePath();
115115

116-
// Check for OpenSSL dependency on macOS when running PowerShell Core alpha. Look for the default
117-
// Homebrew installation path and if that fails check the system-wide library path.
118-
if (os.platform() === "darwin" && this.getPowerShellVersionLabel() === "alpha") {
119-
if (!(utils.checkIfFileExists("/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib") &&
120-
utils.checkIfFileExists("/usr/local/opt/openssl/lib/libssl.1.0.0.dylib")) &&
121-
!(utils.checkIfFileExists("/usr/local/lib/libcrypto.1.0.0.dylib") &&
122-
utils.checkIfFileExists("/usr/local/lib/libssl.1.0.0.dylib"))) {
123-
const thenable =
124-
vscode.window.showWarningMessage(
125-
"The PowerShell extension will not work without OpenSSL on macOS and OS X when using " +
126-
"PowerShell Core alpha",
127-
"Show Documentation");
128-
129-
thenable.then(
130-
(s) => {
131-
if (s === "Show Documentation") {
132-
cp.exec("open https://github.com/PowerShell/vscode-powershell/blob/master/docs/" +
133-
"troubleshooting.md#1-powershell-intellisense-does-not-work-cant-debug-scripts");
134-
}
135-
});
136-
137-
// Don't continue initializing since Editor Services will not load successfully
138-
this.setSessionFailure(
139-
"Cannot start PowerShell Editor Services due to missing OpenSSL dependency.");
140-
return;
141-
}
142-
}
143-
144116
this.suppressRestartPrompt = false;
145117

146118
if (this.powerShellExePath) {

0 commit comments

Comments
 (0)