Skip to content

Commit 1101ca2

Browse files
committed
mapped local,global to private,public
1 parent 567fe1d commit 1101ca2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/debug/debugSession.ts

Lines changed: 3 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"];
86+
8587
private _properties = new Map<number, xdebug.Property>();
8688

8789
private _evalResultProperties = new Map<number, xdebug.EvalResultProperty>();
@@ -387,7 +389,7 @@ 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+
return new Scope(this._contextNames[context.id], variableId);
391393
});
392394
response.body = {
393395
scopes,

0 commit comments

Comments
 (0)