Skip to content

Commit a3dcf1b

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)