We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4176d commit ad1d8bbCopy full SHA for ad1d8bb
src/vs/workbench/contrib/notebook/browser/notebook.contribution.ts
@@ -808,10 +808,9 @@ class NotebookEditorManager implements IWorkbenchContribution {
808
// --- Start Positron ---
809
// Make sure that we dont try and open the same editor twice if we're using positron
810
// notebooks.
811
- for (const positronInstance of this._positronNotebookService.listInstances(model.resource)) {
812
- if (positronInstance.connectedToEditor) {
813
- continue;
814
- }
+ const positronInstances = this._positronNotebookService.listInstances(model.resource);
+ if (positronInstances.some(instance => instance.connectedToEditor)) {
+ continue;
815
}
816
// --- End Positron ---
817
result.push({
0 commit comments