File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module.exports = class schemaBrowser {
46
46
vscode . commands . registerCommand ( `vscode-db2i.addSchemaToSchemaBrowser` , async ( ) => {
47
47
const config = instance . getConfig ( ) ;
48
48
49
- const schemas = config . databaseBrowserList || [ ] ;
49
+ const schemas = config . get ( ` databaseBrowserList` ) || [ ] ;
50
50
51
51
const newSchema = await vscode . window . showInputBox ( {
52
52
prompt : `Library to add to Database Browser`
@@ -64,9 +64,9 @@ module.exports = class schemaBrowser {
64
64
//Running from right click
65
65
const config = instance . getConfig ( ) ;
66
66
67
- let schemas = config . databaseBrowserList ;
67
+ let schemas = config . get ( ` databaseBrowserList` ) ;
68
68
69
- let index = schemas . findIndex ( file => file . toUpperCase ( ) === node . path )
69
+ let index = schemas . findIndex ( file => file . toUpperCase ( ) === node . schema )
70
70
if ( index >= 0 ) {
71
71
schemas . splice ( index , 1 ) ;
72
72
}
@@ -221,7 +221,7 @@ module.exports = class schemaBrowser {
221
221
if ( connection ) {
222
222
const config = instance . getConfig ( ) ;
223
223
224
- const libraries = config . databaseBrowserList || [ ] ;
224
+ const libraries = config . get ( ` databaseBrowserList` ) || [ ] ;
225
225
226
226
for ( let library of libraries ) {
227
227
items . push ( new Schema ( library ) ) ;
You can’t perform that action at this time.
0 commit comments