提交 61d0aa4d 编写于 作者: A Alex Dima

Fix tests

上级 b01cb4f8
......@@ -91,7 +91,12 @@ export function withTestCodeEditor(text: string | string[] | null, options: Test
export function createTestCodeEditor(options: TestCodeEditorCreationOptions): TestCodeEditor {
const model = options.model;
delete options.model;
const services: ServiceCollection = options.serviceCollection || new ServiceCollection();
delete options.serviceCollection;
const instantiationService: IInstantiationService = new InstantiationService(services);
if (!services.has(ICodeEditorService)) {
......@@ -119,6 +124,6 @@ export function createTestCodeEditor(options: TestCodeEditorCreationOptions): Te
options,
codeEditorWidgetOptions
);
editor.setModel(options.model);
editor.setModel(model);
return editor;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册