@@ -29,7 +29,7 @@ export class GodotDebugSession extends LoggingDebugSession {
2929
3030public variables_manager : VariablesManager ;
3131
32- public constructor ( projectVersion : string ) {
32+ public constructor ( projectVersion : string ) {
3333super ( ) ;
3434
3535this . setDebuggerLinesStartAt1 ( false ) ;
@@ -233,14 +233,14 @@ export class GodotDebugSession extends LoggingDebugSession {
233233
234234// TODO: create scopes dynamically for a given frame
235235const vscode_scope_ids = this . variables_manager . get_or_create_frame_scopes ( args . frameId ) ;
236- const scopes_with_references = [
237- { name : "Locals" , variablesReference : vscode_scope_ids . Locals , expensive : false } ,
238- { name : "Members" , variablesReference : vscode_scope_ids . Members , expensive : false } ,
239- { name : "Globals" , variablesReference : vscode_scope_ids . Globals , expensive : false } ,
240- ] ;
236+ const scopes_with_references = [
237+ { name : "Locals" , variablesReference : vscode_scope_ids . Locals , expensive : false } ,
238+ { name : "Members" , variablesReference : vscode_scope_ids . Members , expensive : false } ,
239+ { name : "Globals" , variablesReference : vscode_scope_ids . Globals , expensive : false } ,
240+ ] ;
241241
242242response . body = {
243- scopes : scopes_with_references
243+ scopes : scopes_with_references ,
244244// scopes: [
245245// { name: "Locals", variablesReference: 1, expensive: false },
246246// { name: "Members", variablesReference: 2, expensive: false },
@@ -252,7 +252,10 @@ export class GodotDebugSession extends LoggingDebugSession {
252252this . sendResponse ( response ) ;
253253}
254254
255- protected async variablesRequest ( response : DebugProtocol . VariablesResponse , args : DebugProtocol . VariablesArguments ) {
255+ protected async variablesRequest (
256+ response : DebugProtocol . VariablesResponse ,
257+ args : DebugProtocol . VariablesArguments ,
258+ ) {
256259log . info ( "variablesRequest" , args ) ;
257260try {
258261const variables = await this . variables_manager . get_vscode_object ( args . variablesReference ) ;
@@ -274,10 +277,13 @@ export class GodotDebugSession extends LoggingDebugSession {
274277log . info ( "evaluateRequest" , args ) ;
275278
276279try {
277- const parsed_variable = await this . variables_manager . get_vscode_variable_by_name ( args . expression , args . frameId ) ;
280+ const parsed_variable = await this . variables_manager . get_vscode_variable_by_name (
281+ args . expression ,
282+ args . frameId ,
283+ ) ;
278284response . body = {
279285result : parsed_variable . value ,
280- variablesReference : parsed_variable . variablesReference
286+ variablesReference : parsed_variable . variablesReference ,
281287} ;
282288} catch ( error ) {
283289response . success = false ;
0 commit comments