some cleanup

This commit is contained in:
fehrlich
2021-08-18 12:20:11 +02:00
parent aa3412e6ac
commit 2af8ef9a53

View File

@@ -95,9 +95,7 @@ export class PyVisualizationBackend extends VisualizationBackendBase {
let result = reply.result;
// remove the initial escape by the the debug session e.g. `''{"kind": {"text": true}, "text": "{"asdf1\'"}''`
result = result.replaceAll(/\\'/g, "'");
result = result.replaceAll(/\\'/g, "'");
result = result.replaceAll(/\\\\/g, "\\")
result.substr(1, result.length - 2);
result = result.replaceAll(/\\\\/g, "\\");
return parseEvaluationResultFromGenericDebugAdapter(
result,