From bf3ab8d1a313745f52ece710daeb928afc880ab9 Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Mon, 19 Aug 2024 11:30:02 -0700 Subject: [PATCH] fix enter issue --- src/client/repl/pythonServer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));