mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Added notification for unsaved file in scheduling (#7705)
* Added notification for unsaved file in scheduling * Removed logging message in line 216 * Changed regex for all 3 platforms (forbid '/') * Untitled file prompts to save in mainController * removed spaces and changed save message
This commit is contained in:
@@ -169,8 +169,8 @@ export class MainController {
|
|||||||
if (!ownerUri || ownerUri instanceof vscode.Uri) {
|
if (!ownerUri || ownerUri instanceof vscode.Uri) {
|
||||||
let path: string;
|
let path: string;
|
||||||
if (!ownerUri) {
|
if (!ownerUri) {
|
||||||
if (azdata.nb.activeNotebookEditor.document.isDirty) {
|
if (azdata.nb.activeNotebookEditor.document.isDirty || azdata.nb.activeNotebookEditor.document.isUntitled) {
|
||||||
vscode.window.showErrorMessage(localize('agent.unsavedFileSchedulingError', 'Save file before scheduling'), { modal: true });
|
vscode.window.showErrorMessage(localize('agent.unsavedFileSchedulingError', 'The notebook must be saved before being scheduled. Please save and then retry scheduling again.'), { modal: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
path = azdata.nb.activeNotebookEditor.document.fileName;
|
path = azdata.nb.activeNotebookEditor.document.fileName;
|
||||||
|
|||||||
Reference in New Issue
Block a user