Skip to content

Commit

Permalink
Fix execInREPL Enter to respect complete expression (microsoft#23973)
Browse files Browse the repository at this point in the history
Resolves: microsoft#23934
Updating to check filed of object, since structure/type has changed when
I refactored code for native REPL.
  • Loading branch information
anthonykim1 committed Sep 13, 2024
1 parent 1641506 commit 092f5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/repl/pythonServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class PythonServerImpl implements Disposable {
}

public async checkValidCommand(code: string): Promise<boolean> {
const completeCode = await this.connection.sendRequest('check_valid_command', code);
if (completeCode === 'True') {
const completeCode: ExecutionResult = await this.connection.sendRequest('check_valid_command', code);
if (completeCode.output === 'True') {
return new Promise((resolve) => resolve(true));
}
return new Promise((resolve) => resolve(false));
Expand Down

0 comments on commit 092f5f0

Please sign in to comment.