File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
82
82
83
83
private _contexts = new Map < number , xdebug . Context > ( ) ;
84
84
85
+ private _contextNames : string [ ] = [ "Private" , "Public" ] ;
86
+
85
87
private _properties = new Map < number , xdebug . Property > ( ) ;
86
88
87
89
private _evalResultProperties = new Map < number , xdebug . EvalResultProperty > ( ) ;
@@ -387,7 +389,7 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
387
389
scopes = contexts . map ( ( context ) => {
388
390
const variableId = this . _variableIdCounter ++ ;
389
391
this . _contexts . set ( variableId , context ) ;
390
- return new Scope ( context . name , variableId ) ;
392
+ return new Scope ( this . _contextNames [ context . id ] , variableId ) ;
391
393
} ) ;
392
394
response . body = {
393
395
scopes,
You can’t perform that action at this time.
0 commit comments