Skip to content

Commit 092f5f0

Browse files
committed
Fix execInREPL Enter to respect complete expression (microsoft#23973)
Resolves: microsoft#23934 Updating to check filed of object, since structure/type has changed when I refactored code for native REPL.
1 parent 1641506 commit 092f5f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/repl/pythonServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ class PythonServerImpl implements Disposable {
7575
}
7676

7777
public async checkValidCommand(code: string): Promise<boolean> {
78-
const completeCode = await this.connection.sendRequest('check_valid_command', code);
79-
if (completeCode === 'True') {
78+
const completeCode: ExecutionResult = await this.connection.sendRequest('check_valid_command', code);
79+
if (completeCode.output === 'True') {
8080
return new Promise((resolve) => resolve(true));
8181
}
8282
return new Promise((resolve) => resolve(false));

0 commit comments

Comments
 (0)