@@ -10,11 +10,11 @@ import '@codingame/monaco-vscode-json-default-extension';
1010import '@codingame/monaco-vscode-python-default-extension' ;
1111import { LogLevel } from '@codingame/monaco-vscode-api' ;
1212import { CodePlusFileExt , configureAndInitVscodeApi , disposeLanguageClients , LanguageClientWrapper , MonacoEditorLanguageClientWrapper , WrapperConfig } from 'monaco-editor-wrapper' ;
13- import { configureMonacoWorkers , disableButton } from '../common/client/utils.js' ;
13+ import { configureMonacoWorkers , disableElement } from '../common/client/utils.js' ;
1414import { createJsonLanguageClientConfig , createPythonLanguageClientConfig } from './config.js' ;
1515
1616export const runMultipleLanguageClientsExample = async ( ) => {
17- disableButton ( 'button-flip' , true ) ;
17+ disableElement ( 'button-flip' , true ) ;
1818
1919 const textJson = `{
2020 "$schema": "http://json.schemastore.org/coffeelint",
@@ -106,10 +106,11 @@ print("Hello Moon!")
106106 ( wrapperConfig . editorAppConfig . codeResources . modified as CodePlusFileExt ) . fileExt = currenFileExt ;
107107 }
108108
109- disableButton ( 'button-flip' , false ) ;
109+ disableElement ( 'button-flip' , false ) ;
110+ disableElement ( 'checkbox-extlc' , true ) ;
110111 } ) ;
111112 document . querySelector ( '#button-dispose' ) ?. addEventListener ( 'click' , async ( ) => {
112- disableButton ( 'button-flip' , true ) ;
113+ disableElement ( 'button-flip' , true ) ;
113114
114115 wrapperConfig . vscodeApiConfig ! . vscodeApiInitPerformExternally = ( document . getElementById ( 'checkbox-extlc' ) ! as HTMLInputElement ) . checked ;
115116 if ( wrapperConfig . vscodeApiConfig ! . vscodeApiInitPerformExternally === true ) {
0 commit comments