Skip to content

Commit 4e8df30

Browse files
committed
Add comments for adding flow database
1 parent dbc7f90 commit 4e8df30

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extensions/ql-vscode/src/data-extensions-editor/data-extensions-editor-view.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ export class DataExtensionsEditorView extends AbstractWebview<
241241

242242
const selectedDatabase = this.databaseManager.currentDatabaseItem;
243243

244+
// The external API methods are in the library source code, so we need to ask
245+
// the user to import the library database. We need to have the database
246+
// imported to the query server, so we need to register it to our workspace.
244247
const database = await promptImportGithubDatabase(
245248
this.app.commands,
246249
this.databaseManager,
@@ -257,6 +260,8 @@ export class DataExtensionsEditorView extends AbstractWebview<
257260
return;
258261
}
259262

263+
// The library database was set as the current database by importing it,
264+
// but we need to set it back to the originally selected database.
260265
await this.databaseManager.setCurrentDatabaseItem(selectedDatabase);
261266

262267
const workspaceFolder = getQlSubmoduleFolder();
@@ -301,6 +306,8 @@ export class DataExtensionsEditorView extends AbstractWebview<
301306
);
302307
}
303308

309+
// After the flow model has been generated, we can remove the temporary database
310+
// which we used for generating the flow model.
304311
await this.databaseManager.removeDatabaseItem(
305312
() =>
306313
this.showProgress({

0 commit comments

Comments
 (0)