Skip to content

Commit

Permalink
Fix string variable in debugger tree view (#10550)
Browse files Browse the repository at this point in the history
Fixes #10521
  • Loading branch information
fcollonval committed Jul 6, 2021
1 parent f4410e0 commit cd7ac23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/debugger/src/panels/variables/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ export const convertType = (variable: IDebugger.IVariable): string | number => {
case 'bool':
return value;
case 'str':
return value.slice(1, value.length - 1);
if (variable.presentationHint?.attributes?.includes('rawString')) {
return value.slice(1, value.length - 1);
} else {
return value;
}
default:
return type ?? value;
}
Expand Down

0 comments on commit cd7ac23

Please sign in to comment.