Skip to content

Commit c25878f

Browse files
committed
Celeaner
1 parent a21cf8f commit c25878f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/client/repl/nativeRepl.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,12 @@ export class NativeRepl implements Disposable {
6565
if (useEnvExtension()) {
6666
const pythonEnv = await getEnvironment(resource);
6767
if (pythonEnv) {
68-
traceVerbose(
69-
`Creating REPL server using environment extension for: ${pythonEnv.execInfo.run.executable}`,
70-
);
7168
nativeRepl.pythonServer = await createPythonServerEnvExt(pythonEnv, nativeRepl.cwd);
7269
} else {
7370
traceError('Failed to get environment from env extension, falling back to direct spawn');
7471
nativeRepl.pythonServer = createPythonServer([interpreter.path as string], nativeRepl.cwd);
7572
}
7673
} else {
77-
traceVerbose(`Creating REPL server using direct spawn for: ${interpreter.path}`);
7874
nativeRepl.pythonServer = createPythonServer([interpreter.path as string], nativeRepl.cwd);
7975
}
8076

@@ -243,7 +239,6 @@ export async function getNativeRepl(
243239
resource?: Uri,
244240
): Promise<NativeRepl> {
245241
// Check if interpreter has changed - if so, dispose and recreate the REPL
246-
// This serves as a fallback in case the event listener didn't catch the change
247242
if (nativeRepl && nativeRepl.interpreterPath !== interpreter.path) {
248243
traceVerbose(`Interpreter changed to ${interpreter.path}, disposing Native REPL`);
249244
nativeRepl.dispose();

src/client/repl/pythonServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export function createPythonServer(interpreter: string[], cwd?: string): PythonS
129129
traceError(err);
130130
});
131131
const connection = rpc.createMessageConnection(
132-
new rpc.StreamMessageReader(pythonServer.stdout!),
133-
new rpc.StreamMessageWriter(pythonServer.stdin!),
132+
new rpc.StreamMessageReader(pythonServer.stdout),
133+
new rpc.StreamMessageWriter(pythonServer.stdin),
134134
);
135135
serverInstance = new PythonServerImpl(connection, () => pythonServer.kill('SIGINT'));
136136
return serverInstance;

0 commit comments

Comments
 (0)