Skip to content

Commit 9909b83

Browse files
committed
Fix issues with config access
1 parent 3605f56 commit 9909b83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/views/schemaBrowser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = class schemaBrowser {
4646
vscode.commands.registerCommand(`vscode-db2i.addSchemaToSchemaBrowser`, async () => {
4747
const config = instance.getConfig();
4848

49-
const schemas = config.databaseBrowserList || [];
49+
const schemas = config.get(`databaseBrowserList`) || [];
5050

5151
const newSchema = await vscode.window.showInputBox({
5252
prompt: `Library to add to Database Browser`
@@ -64,9 +64,9 @@ module.exports = class schemaBrowser {
6464
//Running from right click
6565
const config = instance.getConfig();
6666

67-
let schemas = config.databaseBrowserList;
67+
let schemas = config.get(`databaseBrowserList`);
6868

69-
let index = schemas.findIndex(file => file.toUpperCase() === node.path)
69+
let index = schemas.findIndex(file => file.toUpperCase() === node.schema)
7070
if (index >= 0) {
7171
schemas.splice(index, 1);
7272
}
@@ -221,7 +221,7 @@ module.exports = class schemaBrowser {
221221
if (connection) {
222222
const config = instance.getConfig();
223223

224-
const libraries = config.databaseBrowserList || [];
224+
const libraries = config.get(`databaseBrowserList`) || [];
225225

226226
for (let library of libraries) {
227227
items.push(new Schema(library));

0 commit comments

Comments
 (0)