File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1313 "url" : " https://github.com/timheuer/jsondbg.git"
1414 },
1515 "icon" : " resources/icon.png" ,
16- "version" : " 0.1.2 " ,
16+ "version" : " 0.1.3 " ,
1717 "engines" : {
1818 "vscode" : " ^1.97.0"
1919 },
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ export function registerViewJsonCommand(context: vscode.ExtensionContext): void
4848 jsonValue = jsonValue . replace ( / \\ " / g, '"' ) ;
4949 }
5050
51+ // Clean up line endings - handle both \r\n and \n
52+ jsonValue = jsonValue . replace ( / \\ r \\ n | \\ n | \\ r / g, ' ' ) . trim ( ) ;
53+
5154 try {
5255 // Try to parse the JSON string
5356 const jsonObj = JSON . parse ( jsonValue ) ;
@@ -255,7 +258,7 @@ function getWebviewContent(jsonObj: any): string {
255258
256259 // Create the property div that will hold everything
257260 const propertyDiv = document.createElement('div');
258- propertyDiv.className = 'property';
261+ propertyDiv.className = 'property-root ';
259262
260263 // Create the row that holds the toggle and brackets
261264 const rowDiv = document.createElement('div');
You can’t perform that action at this time.
0 commit comments