mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 09:35:39 -05:00
Migration wizard Refresh 11th Feb 2021 (#14257)
* Adding summary page, Storing ongoing migrations, localizing some string, made changes to how dropdowns work updated database backup page * Moved classes into different files Fixed a lot of typos Fixed some UI margins
This commit is contained in:
38
extensions/sql-migration/src/constants/notebookPathHelper.ts
Normal file
38
extensions/sql-migration/src/constants/notebookPathHelper.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as vscode from 'vscode';
|
||||
import * as loc from '../models/strings';
|
||||
|
||||
export class NotebookPathHelper {
|
||||
private static context: vscode.ExtensionContext;
|
||||
|
||||
public static inlineMigrationNotebook: MigrationNotebookInfo;
|
||||
public static sqlAssessmentNotebook: MigrationNotebookInfo;
|
||||
|
||||
public static setExtensionContext(context: vscode.ExtensionContext) {
|
||||
NotebookPathHelper.context = context;
|
||||
NotebookPathHelper.inlineMigrationNotebook = {
|
||||
label: loc.NOTEBOOK_INLINE_MIGRATION_TITLE,
|
||||
notebookPath: NotebookPathHelper.context.asAbsolutePath('notebooks/Inline_Migration_Notebook.ipynb')
|
||||
};
|
||||
NotebookPathHelper.sqlAssessmentNotebook = {
|
||||
label: loc.NOTEBOOK_SQL_MIGRATION_ASSESSMENT_TITLE,
|
||||
notebookPath: NotebookPathHelper.context.asAbsolutePath('notebooks/SQL_Assessment_Notebook.ipynb')
|
||||
};
|
||||
}
|
||||
|
||||
public static getAllMigrationNotebooks(): MigrationNotebookInfo[] {
|
||||
return [
|
||||
NotebookPathHelper.inlineMigrationNotebook,
|
||||
NotebookPathHelper.sqlAssessmentNotebook
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
export interface MigrationNotebookInfo {
|
||||
label: string;
|
||||
notebookPath: string
|
||||
}
|
||||
Reference in New Issue
Block a user