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