We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a66ab commit 32641b9Copy full SHA for 32641b9
src/services/workbench/panelService.ts
@@ -1,6 +1,7 @@
1
import 'reflect-metadata';
2
import { singleton, container } from 'tsyringe';
3
import { editor as MonacoEditor } from 'monaco-editor';
4
+import { StandaloneEditor } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneCodeEditor';
5
import { cloneDeepWith, cloneDeep } from 'lodash';
6
import pickBy from 'lodash/pickBy';
7
import { Component } from 'mo/react';
@@ -194,7 +195,7 @@ export class PanelService extends Component<IPanel> implements IPanelService {
194
195
if (
196
value &&
197
typeof value === 'object' &&
- value.constructor.name === 'StandaloneEditor'
198
+ value instanceof StandaloneEditor
199
) {
200
return value;
201
}
0 commit comments