提交 6f8515fa 编写于 作者: C Christof Marti

Wait for extension registration (fixes #108378)

上级 c781e1f4
...@@ -39,6 +39,7 @@ import { Dimension, safeInnerHtml, size } from 'vs/base/browser/dom'; ...@@ -39,6 +39,7 @@ import { Dimension, safeInnerHtml, size } from 'vs/base/browser/dom';
import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService'; import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editorGroupsService';
import { CancellationToken } from 'vs/base/common/cancellation'; import { CancellationToken } from 'vs/base/common/cancellation';
import { domEvent } from 'vs/base/browser/event'; import { domEvent } from 'vs/base/browser/event';
import { IExtensionService } from 'vs/workbench/services/extensions/common/extensions';
export const WALK_THROUGH_FOCUS = new RawContextKey<boolean>('interactivePlaygroundFocus', false); export const WALK_THROUGH_FOCUS = new RawContextKey<boolean>('interactivePlaygroundFocus', false);
...@@ -78,6 +79,7 @@ export class WalkThroughPart extends EditorPane { ...@@ -78,6 +79,7 @@ export class WalkThroughPart extends EditorPane {
@IContextKeyService private readonly contextKeyService: IContextKeyService, @IContextKeyService private readonly contextKeyService: IContextKeyService,
@IConfigurationService private readonly configurationService: IConfigurationService, @IConfigurationService private readonly configurationService: IConfigurationService,
@INotificationService private readonly notificationService: INotificationService, @INotificationService private readonly notificationService: INotificationService,
@IExtensionService private readonly extensionService: IExtensionService,
@IEditorGroupsService editorGroupService: IEditorGroupsService @IEditorGroupsService editorGroupService: IEditorGroupsService
) { ) {
super(WalkThroughPart.ID, telemetryService, themeService, storageService); super(WalkThroughPart.ID, telemetryService, themeService, storageService);
...@@ -270,7 +272,10 @@ export class WalkThroughPart extends EditorPane { ...@@ -270,7 +272,10 @@ export class WalkThroughPart extends EditorPane {
this.content.innerText = ''; this.content.innerText = '';
return super.setInput(input, options, context, token) return super.setInput(input, options, context, token)
.then(() => { .then(async () => {
if (input.resource.path.endsWith('.md')) {
await this.extensionService.whenInstalledExtensionsRegistered();
}
return input.resolve(); return input.resolve();
}) })
.then(model => { .then(model => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册