File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,12 +4,26 @@ import { create, Workbench } from '@dtinsight/molecule';
44import InstanceService from '@dtinsight/molecule/esm/services/instanceService' ;
55import { ExtendsWorkbench } from './extensions/workbench' ;
66import { version , dependencies } from '../../package.json' ;
7-
7+ import { editor } from 'monaco-editor' ;
88import './languages' ;
99
1010import '@dtinsight/molecule/esm/style/mo.css' ;
11+
1112import './App.css' ;
1213
14+ /**
15+ * Allow code completion when typing in snippets.
16+ *
17+ * You can also set configurations when creating monaco-editor instance
18+ */
19+ editor . onDidCreateEditor ( ( editor ) => {
20+ editor . updateOptions ( {
21+ suggest : {
22+ snippetsPreventQuickSuggestions : false
23+ }
24+ } ) ;
25+ } ) ;
26+
1327function App ( ) : React . ReactElement {
1428 const refMoInstance = useRef < InstanceService > ( ) ;
1529 const [ MyWorkbench , setMyWorkbench ] = useState < React . ReactElement > ( ) ;
You can’t perform that action at this time.
0 commit comments