Commit 5c0e6c6
Adding log viewer for background tasks. (#21841)
* feat: Implement background tasks feature in MSSQL extension
- Added constants for background tasks and related commands in constants.ts.
- Integrated BackgroundTasksProvider and BackgroundTasksService in mainController.ts.
- Implemented background task initialization and handling in MainController.
- Enhanced SqlTasksService to register and manage background tasks.
- Created unit tests for BackgroundTasksProvider, MainController, and SqlTasksService to ensure functionality.
- Added logic for task completion, cancellation, and progress updates.
- Implemented UI updates for background tasks in the VSCode extension.
* feat: Add localization for background task statuses and commands
* Refactor deployment state management and enhance local containers and fabric provisioning logic
- Updated `updateFabricProvisioningState` and `updateLocalContainersState` to use `publishDeploymentState` for state updates.
- Enhanced local containers reducer to handle step completion more effectively, allowing for progress tracking across multiple steps.
- Introduced new properties in `TaskInfo` and `TaskProgressInfo` for better task management and progress reporting.
- Added support for resuming deployments with `resumedDeploymentType` and `resumedWizardPageId` in deployment state.
- Implemented tests for background task synchronization and state updates in both local containers and fabric provisioning.
- Improved user feedback during deployment processes with detailed progress messages and telemetry events.
* Refactor task status and progress message handling in SqlTasksService
* Refactor background task handling in tests and localization updates
- Removed unused stubs and tests related to background task handling in fabricProvisioningHelpers and localContainersHelpers tests.
- Updated assertions to check for state updates instead of direct calls to publishDeploymentState.
- Cleaned up localization files by removing obsolete entries and adding necessary translations for background tasks.
* Add localization entries for background tasks and connection labels
* Refactor background task localization and tooltip handling
* Add localization entries for background task source, connection label, and target location
* Refactor background task handling to improve focus behavior and remove unused progress notifications
* Enhance background task tree view handling by refactoring reveal logic and updating tests for command execution
* Add elapsed time tracking for background tasks and update related localization
* Add localization entries for elapsed time in various formats
* Add background task logging and related localization entries
* Add localization entries for task descriptions, statuses, and logs
* Refactor notification handling in SqlTasksService to use async/await for improved readability
* Remove unused SVG files for completed and failed tasks
* Add background task logging features and improve task management
- Introduced commands for viewing background task logs and managing Docker containers.
- Enhanced background task registration with description and target properties.
- Implemented a logging system for background tasks with timestamp formatting.
- Updated localization constants for new logging features.
- Added tests for background task logging and SQL task service integration.
* Enhance background task log functionality by revealing the latest log entry in the editor and adding millisecond precision to timestamps
* Add background task log viewing functionality and improve log management
* Add detailed JSDoc comments for background task log content provider methods
* Enhance document name generation for background task logs using contextual information
* Refactor background task log update handling and improve test coverage for URI management
* Add confirmation prompt for canceling background tasks and update related UI elements
* Add localization for background task cancellation prompts
---------
Co-authored-by: Aasim Khan <aasimkhan@gmail.com>1 parent d2c596e commit 5c0e6c6
15 files changed
Lines changed: 969 additions & 17 deletions
File tree
- extensions/mssql
- l10n
- src
- backgroundTasks
- constants
- controllers
- services
- test/unit
- localization/xliff
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2001 | 2001 | | |
2002 | 2002 | | |
2003 | 2003 | | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
2004 | 2016 | | |
2005 | 2017 | | |
2006 | 2018 | | |
| |||
2017 | 2029 | | |
2018 | 2030 | | |
2019 | 2031 | | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
2020 | 2057 | | |
2021 | 2058 | | |
2022 | 2059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
858 | 873 | | |
859 | 874 | | |
860 | 875 | | |
861 | 876 | | |
862 | 877 | | |
863 | 878 | | |
864 | | - | |
865 | | - | |
| 879 | + | |
| 880 | + | |
866 | 881 | | |
867 | 882 | | |
868 | 883 | | |
869 | 884 | | |
870 | 885 | | |
871 | | - | |
| 886 | + | |
872 | 887 | | |
873 | 888 | | |
874 | | - | |
875 | | - | |
876 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
877 | 892 | | |
878 | 893 | | |
879 | | - | |
880 | | - | |
881 | | - | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
882 | 897 | | |
883 | 898 | | |
884 | | - | |
885 | | - | |
886 | | - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
887 | 902 | | |
888 | 903 | | |
889 | 904 | | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
890 | 909 | | |
891 | 910 | | |
892 | 911 | | |
| |||
1371 | 1390 | | |
1372 | 1391 | | |
1373 | 1392 | | |
1374 | | - | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1375 | 1401 | | |
1376 | 1402 | | |
1377 | 1403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments