Skip to content

Commit 6be860a

Browse files
running with effect
1 parent e1afa76 commit 6be860a

File tree

22 files changed

+3591
-1552
lines changed

22 files changed

+3591
-1552
lines changed

packages/app/src/app/components/CodeEditor/VSCode/MonacoReactComponent.js

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -47,32 +47,6 @@ class MonacoEditor extends React.PureComponent {
4747
// Before initializing monaco editor
4848
this.editorWillMount(context.monaco);
4949

50-
const r = context.require;
51-
52-
const [
53-
{ IEditorService },
54-
{ ICodeEditorService },
55-
{ ITextFileService },
56-
{ ILifecycleService },
57-
{ IEditorGroupsService },
58-
{ IStatusbarService },
59-
{ IExtensionService },
60-
{ IContextViewService },
61-
{ IQuickOpenService },
62-
{ IInstantiationService },
63-
] = [
64-
r('vs/workbench/services/editor/common/editorService'),
65-
r('vs/editor/browser/services/codeEditorService'),
66-
r('vs/workbench/services/textfile/common/textfiles'),
67-
r('vs/platform/lifecycle/common/lifecycle'),
68-
r('vs/workbench/services/editor/common/editorGroupsService'),
69-
r('vs/platform/statusbar/common/statusbar'),
70-
r('vs/workbench/services/extensions/common/extensions'),
71-
r('vs/platform/contextview/browser/contextView'),
72-
r('vs/platform/quickOpen/common/quickOpen'),
73-
r('vs/platform/instantiation/common/instantiation'),
74-
];
75-
7650
const container = document.createElement('div');
7751
const part = document.createElement('div');
7852

@@ -206,12 +180,7 @@ class MonacoEditor extends React.PureComponent {
206180
width && width.toString().includes('%') ? width : `${width}px`;
207181
const fixedHeight =
208182
height && height.toString().includes('%') ? height : `${height}px`;
209-
const style = {
210-
width: fixedWidth,
211-
height: fixedHeight,
212-
overflow: 'hidden',
213-
position: 'absolute',
214-
};
183+
const style = {};
215184

216185
return (
217186
<div

0 commit comments

Comments
 (0)