You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sh...@apache.org on 2023/05/15 12:00:00 UTC
[daffodil-vscode] branch main updated: Fix hex view duplication issue
This is an automated email from the ASF dual-hosted git repository.
shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-vscode.git
The following commit(s) were added to refs/heads/main by this push:
new 4b81015 Fix hex view duplication issue
4b81015 is described below
commit 4b81015e003453c6ae551f2555869cd83246d200
Author: Shane Dell <sh...@gmail.com>
AuthorDate: Wed May 3 15:20:12 2023 -0400
Fix hex view duplication issue
- Issue was caused by variable not being set to empty string on each new debug session being started.
Closes #616
---
src/hexView.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hexView.ts b/src/hexView.ts
index ca4e93f..f58f3d0 100644
--- a/src/hexView.ts
+++ b/src/hexView.ts
@@ -140,6 +140,7 @@ export class DebuggerHexView {
this.closeHexFile()
this.deleteFile(this.hexFile)
this.decorator.dispose()
+ this.hexString = '' // make sure no data from previous runs is carried over
}
}
@@ -278,6 +279,7 @@ export class DebuggerHexView {
let hexLength = this.hexString.split('\n')[this.bytePos1b - 1]
? this.hexString.split('\n')[this.bytePos1b - 1].length
: 0
+
if (hexLength === 0) {
this.closeHexFile()
}