mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-29 09:35:38 -05:00
Unique title for opened notebooks (#10673)
* removing debug log * Ensure unique title for Nb launch * pr feedback * pr feedback * pr fedback * pr feedback
This commit is contained in:
@@ -124,7 +124,8 @@ export class PlatformService implements IPlatformService {
|
||||
}
|
||||
|
||||
isNotebookNameUsed(title: string): boolean {
|
||||
return (azdata.nb.notebookDocuments.findIndex(doc => doc.isUntitled && doc.fileName === title) > -1);
|
||||
return (azdata.nb.notebookDocuments.findIndex(doc => doc.isUntitled && doc.fileName === title) > -1)
|
||||
&& (vscode.workspace.textDocuments.findIndex(doc => doc.isUntitled && doc.fileName === title) > -1);
|
||||
}
|
||||
|
||||
async makeDirectory(path: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user