From f4d5aecc24572663add7eca0db8180d26425a9cb Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 24 Nov 2021 09:34:14 +0100 Subject: [PATCH] add auto closing brackets --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 02dd43e908..c0574502f4 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -1,7 +1,7 @@ import React, { useState, useRef, useEffect, useReducer } from 'react' // eslint-disable-line import Editor from '@monaco-editor/react' import { reducerActions, reducerListener, initialState } from './actions/editor' -import { language } from './syntax' +import { language, conf } from './syntax' import './remix-ui-editor.css' @@ -342,6 +342,7 @@ export const EditorUI = (props: EditorUIProps) => { monacoRef.current.languages.register({ id: 'remix-solidity' }) // Register a tokens provider for the language monacoRef.current.languages.setMonarchTokensProvider('remix-solidity', language) + monacoRef.current.languages.setLanguageConfiguration('remix-solidity', conf) } return (