mirror of
https://github.com/Microsoft/vscode
synced 2024-08-25 03:56:03 +00:00
Fix extension recommendation notifications for notebooks.
Reacts to the cell model showing up in the modelService
This commit is contained in:
parent
cf0a7bfcac
commit
6dca117625
|
@ -153,7 +153,7 @@ export class FileBasedRecommendations extends ExtensionRecommendations {
|
|||
|
||||
private onModelAdded(model: ITextModel): void {
|
||||
const uri = model.uri;
|
||||
const supportedSchemes = [Schemas.untitled, Schemas.file, Schemas.vscodeRemote];
|
||||
const supportedSchemes = [Schemas.untitled, Schemas.file, Schemas.vscodeRemote, Schemas.vscodeNotebookCell];
|
||||
if (!uri || !supportedSchemes.includes(uri.scheme)) {
|
||||
return;
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ export class FileBasedRecommendations extends ExtensionRecommendations {
|
|||
if (!extensionIds.length) {
|
||||
continue;
|
||||
}
|
||||
if (!match(pattern, uri.toString())) {
|
||||
if (!match(pattern, uri.with({ fragment: '' }).toString())) {
|
||||
continue;
|
||||
}
|
||||
for (const extensionId of extensionIds) {
|
||||
|
|
Loading…
Reference in a new issue