Skip to content

Commit 7ad518f

Browse files
committed
Revert "Trace env vars"
This reverts commit 3b2c9cf.
1 parent 3b2c9cf commit 7ad518f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/extension.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function findManualExecutable(logger: Logger, uri: Uri, folder?: WorkspaceFolder
108108
if (!executableExists(exePath)) {
109109
let msg = `serverExecutablePath is set to ${exePath}`;
110110
if (directoryExists(exePath)) {
111-
msg += ' but it is a directory and the config option should point to the executable file full path';
111+
msg += ' but it is a directory and the config option should point to the executable full path';
112112
} else {
113113
msg += " but it doesn't exist and it is not on the PATH";
114114
}
@@ -121,7 +121,6 @@ function findManualExecutable(logger: Logger, uri: Uri, folder?: WorkspaceFolder
121121
function findLocalServer(context: ExtensionContext, logger: Logger, uri: Uri, folder?: WorkspaceFolder): string | null {
122122
const exes: string[] = ['haskell-language-server-wrapper', 'haskell-language-server'];
123123
logger.info(`Searching for server executables ${exes.join(',')} in $PATH`);
124-
logger.info(`$PATH environment variable: ${process.env.PATH}`);
125124
for (const exe of exes) {
126125
if (executableExists(exe)) {
127126
logger.info(`Found server executable in $PATH: ${exe}`);
@@ -170,11 +169,6 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
170169

171170
const logger: Logger = new ExtensionLogger('client', clientLogLevel, outputChannel);
172171

173-
logger.info('Environment variables:');
174-
Object.entries(process.env).forEach(([key, value]: [string, string | undefined]) => {
175-
logger.info(` ${key}: ${value}`);
176-
});
177-
178172
let serverExecutable;
179173
try {
180174
// Try and find local installations first

0 commit comments

Comments
 (0)