File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
extensions/ql-vscode/src/data-extensions-editor Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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 ( {
You can’t perform that action at this time.
0 commit comments