File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/wrapper-react/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export type MonacoEditorProps = {
3232let apiWrapper : MonacoVscodeApiWrapper | undefined ;
3333const lcsManager = new LanguageClientManager ( ) ;
3434const haveEditorService = ( ) => {
35- return apiWrapper ?. getMonacoVscodeApiConfig ( ) . viewsConfig . $type === 'EditorService' ;
35+ return getEnhancedMonacoEnvironment ( ) . viewServiceType === 'EditorService' ;
3636} ;
3737
3838const runQueue : Array < { id : string , func : ( ) => Promise < void > } > = [ ] ;
@@ -145,7 +145,7 @@ export const MonacoEditorReactComp: React.FC<MonacoEditorProps> = (props) => {
145145 debugLogging ( 'GLOBAL INIT' , true ) ;
146146 if ( apiWrapper === undefined ) throw new Error ( 'Unexpected error occurred: apiWrapper is not available! Aborting...' ) ;
147147
148- if ( haveEditorService ( ) ) {
148+ if ( apiWrapper ?. getMonacoVscodeApiConfig ( ) . viewsConfig . $type === 'EditorService' ) {
149149 apiWrapper . overrideViewsConfig ( {
150150 $type : 'EditorService' ,
151151 htmlContainer : containerRef . current !
You can’t perform that action at this time.
0 commit comments