mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Fix broken markdown cells
The editor wants to create a scoped CKS which you can't do with an Overlay
This commit is contained in:
parent
992cf6bd44
commit
3a442c6939
|
@ -308,9 +308,8 @@ export class StatefulMarkdownCell extends Disposable {
|
||||||
this.templateData.editorContainer.innerText = '';
|
this.templateData.editorContainer.innerText = '';
|
||||||
|
|
||||||
// create a special context key service that set the inCompositeEditor-contextkey
|
// create a special context key service that set the inCompositeEditor-contextkey
|
||||||
const editorContextKeyService = this.contextKeyService.createOverlay([
|
const editorContextKeyService = this.contextKeyService.createScoped(this.templateData.editorPart);
|
||||||
[EditorContextKeys.inCompositeEditor.key, true]
|
EditorContextKeys.inCompositeEditor.bindTo(editorContextKeyService).set(true);
|
||||||
]);
|
|
||||||
const editorInstaService = this.instantiationService.createChild(new ServiceCollection([IContextKeyService, editorContextKeyService]));
|
const editorInstaService = this.instantiationService.createChild(new ServiceCollection([IContextKeyService, editorContextKeyService]));
|
||||||
|
|
||||||
this.editor = editorInstaService.createInstance(CodeEditorWidget, this.templateData.editorContainer, {
|
this.editor = editorInstaService.createInstance(CodeEditorWidget, this.templateData.editorContainer, {
|
||||||
|
|
Loading…
Reference in a new issue