mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
use document object identity and not uri equality when checking if a document belongs to a notebook (#206778)
https://github.com/microsoft/vscode/issues/206487
This commit is contained in:
@@ -541,7 +541,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
const interalSelector = typeConverters.LanguageSelector.from(selector);
|
||||
let notebook: vscode.NotebookDocument | undefined;
|
||||
if (targetsNotebooks(interalSelector)) {
|
||||
notebook = extHostNotebook.notebookDocuments.find(value => Boolean(value.getCell(document.uri)))?.apiNotebook;
|
||||
notebook = extHostNotebook.notebookDocuments.find(value => value.apiNotebook.getCells().find(c => c.document === document))?.apiNotebook;
|
||||
}
|
||||
return score(interalSelector, document.uri, document.languageId, true, notebook?.uri, notebook?.notebookType);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user