Open goyal-anjali opened 1 year ago
@aasimkhan30 let me know if you need any help.
You could use a task for this - it will display a prompt when the user quits if it's still running asking if they want to quit.
Our extension repo sits outside ADS, can I still use it? @Charles-Gagnon
Yes, tasks are part of the extensibility API (the code I linked was just showing where in code it does the popup. That isn't something you control directly except by having an actively running task)
See https://github.com/microsoft/azuredatastudio/blob/0fca085ca7c3f2b329d078f2222dd7b1cca387b1/extensions/sql-database-projects/src/models/deploy/deployService.ts#L138 for an example of starting a task
Question How can we detect ADS close button getting clicked? Is there an event to track that?
Context With respect to Database Migration Assessment for Oracle extension on ADS, when an assessment is in progress and customer tries to close ADS, we want to give them a popup. Something like - 'Assessment is in progress. Do you want to close Azure Data Studio?'