11import {
2- commands ,
32 QuickPickItem ,
43 TreeView ,
54 TreeViewExpansionEvent ,
@@ -31,8 +30,8 @@ import { DbTreeViewItem } from "./db-tree-view-item";
3130import { getGitHubUrl } from "./db-tree-view-item-action" ;
3231import { getControllerRepo } from "../../variant-analysis/run-remote-query" ;
3332import { getErrorMessage } from "../../pure/helpers-pure" ;
34- import { Credentials } from "../../common/authentication" ;
3533import { DatabasePanelCommands } from "../../common/commands" ;
34+ import { App } from "../../common/app" ;
3635
3736export interface RemoteDatabaseQuickPickItem extends QuickPickItem {
3837 kind : string ;
@@ -47,8 +46,8 @@ export class DbPanel extends DisposableObject {
4746 private readonly treeView : TreeView < DbTreeViewItem > ;
4847
4948 public constructor (
49+ private readonly app : App ,
5050 private readonly dbManager : DbManager ,
51- private readonly credentials : Credentials ,
5251 ) {
5352 super ( ) ;
5453
@@ -369,13 +368,13 @@ export class DbPanel extends DisposableObject {
369368 ) ;
370369 }
371370
372- await commands . executeCommand ( "vscode.open" , Uri . parse ( githubUrl ) ) ;
371+ await this . app . commands . execute ( "vscode.open" , Uri . parse ( githubUrl ) ) ;
373372 }
374373
375374 private async setupControllerRepository ( ) : Promise < void > {
376375 try {
377376 // This will also validate that the controller repository is valid
378- await getControllerRepo ( this . credentials ) ;
377+ await getControllerRepo ( this . app . credentials ) ;
379378 } catch ( e : unknown ) {
380379 if ( e instanceof UserCancellationException ) {
381380 return ;
0 commit comments