Skip to content

Commit 2af8ef9

Browse files
author
fehrlich
committed
some cleanup
1 parent aa3412e commit 2af8ef9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

extension/src/VisualizationBackend/PyVisualizationSupport.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ export class PyVisualizationBackend extends VisualizationBackendBase {
9595
let result = reply.result;
9696
// remove the initial escape by the the debug session e.g. `''{"kind": {"text": true}, "text": "{"asdf1\'"}''`
9797
result = result.replaceAll(/\\'/g, "'");
98-
result = result.replaceAll(/\\'/g, "'");
99-
result = result.replaceAll(/\\\\/g, "\\")
100-
result.substr(1, result.length - 2);
98+
result = result.replaceAll(/\\\\/g, "\\");
10199

102100
return parseEvaluationResultFromGenericDebugAdapter(
103101
result,

0 commit comments

Comments
 (0)