diff --git a/src/client/repl/pythonServer.ts b/src/client/repl/pythonServer.ts index fbcb1104dc69..a342e989af7c 100644 --- a/src/client/repl/pythonServer.ts +++ b/src/client/repl/pythonServer.ts @@ -75,8 +75,8 @@ class PythonServerImpl implements Disposable { } public async checkValidCommand(code: string): Promise { - 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));