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:
Arvind Ranasaria
2020-06-02 15:21:34 -07:00
committed by GitHub
parent da41fda4bb
commit f7c3484438
3 changed files with 5 additions and 5 deletions

View File

@@ -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> {