Skip to content

Commit 20c7519

Browse files
Merge pull request #596 from intersystems-community/482
mapped local,global to private,public
2 parents 567fe1d + bcaad03 commit 20c7519

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/debug/debugSession.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
8282

8383
private _contexts = new Map<number, xdebug.Context>();
8484

85+
private _contextNames: string[] = ["Private", "Public", "Class"];
86+
8587
private _properties = new Map<number, xdebug.Property>();
8688

8789
private _evalResultProperties = new Map<number, xdebug.EvalResultProperty>();
@@ -387,7 +389,11 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
387389
scopes = contexts.map((context) => {
388390
const variableId = this._variableIdCounter++;
389391
this._contexts.set(variableId, context);
390-
return new Scope(context.name, variableId);
392+
if (context.id < this._contextNames.length) {
393+
return new Scope(this._contextNames[context.id], variableId);
394+
} else {
395+
return new Scope(context.name, variableId);
396+
}
391397
});
392398
response.body = {
393399
scopes,

0 commit comments

Comments
 (0)