We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1641506 commit 092f5f0Copy full SHA for 092f5f0
src/client/repl/pythonServer.ts
@@ -75,8 +75,8 @@ class PythonServerImpl implements Disposable {
75
}
76
77
public async checkValidCommand(code: string): Promise<boolean> {
78
- const completeCode = await this.connection.sendRequest('check_valid_command', code);
79
- if (completeCode === 'True') {
+ const completeCode: ExecutionResult = await this.connection.sendRequest('check_valid_command', code);
+ if (completeCode.output === 'True') {
80
return new Promise((resolve) => resolve(true));
81
82
return new Promise((resolve) => resolve(false));
0 commit comments