Skip to content

Commit

Permalink
Fix: #232
Browse files Browse the repository at this point in the history
Output of members in bracketed notation in Output directive,
Watch expression, etc. may not be evaluated correctly
  • Loading branch information
zero-plusplus committed Jul 11, 2022
1 parent 01004e1 commit 001f138
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Also want to check the development status, check the [commit history](https://gi
* [#215](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/215) The list of running AutoHotkey processes displayed before attaching does not display correctly when it contains multibyte strings
* [#220](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/220) Grouping of messages using Debug Directive is not working, such as `; @Debug-Output:start`, `; @Debug-Output:end`
* [#229](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/229) Raw error message on Critical Error
* [#232](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/232) Output of members in bracketed notation in Output directive, Watch expression, etc. may not be evaluated correctly

## [1.11.0] - 2022-02-11
### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This extension is a debugger adapter for [VSCode](https://code.visualstudio.com/
* Fixed: [#215](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/215) The list of running AutoHotkey processes displayed before attaching does not display correctly when it contains multibyte strings
* Fixed: [#220](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/220) Grouping of messages using Debug Directive is not working, such as `; @Debug-Output:start`, `; @Debug-Output:end`
* Fixed: [#229](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/229) Raw error message on Critical Error
* Fixed: [#232](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/232) Output of members in bracketed notation in Output directive, Watch expression, etc. may not be evaluated correctly

* `1.11.0` - 2022-02-11
* Added: [#201](https://github.com/zero-plusplus/vscode-autohotkey-debug/issues/201) Add `useLoadedScripts` to launch.json
Expand Down
7 changes: 6 additions & 1 deletion src/dbgpSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,12 @@ export class Session extends EventEmitter {
}

if (property instanceof ObjectProperty) {
const childName = splitedVariablePathList[index + 1];
let childName = splitedVariablePathList[index + 1];
const isIndex = (/^\[\d+\]$/u).test(childName);
if (!isIndex && childName.startsWith('[')) {
childName = childName.replace(/^\["?((?:""|[^"])*)"?\]$/u, '$1');
}

const containsChild = property.children.some((child) => equalsIgnoreCase(child.name, childName));
if (containsChild) {
continue;
Expand Down

0 comments on commit 001f138

Please sign in to comment.