style: remove unused comment

This commit is contained in:
JinmingYang
2023-07-06 01:13:45 +08:00
parent 1ffc547cab
commit e26eac232b
2 changed files with 2 additions and 7 deletions

View File

@@ -62,10 +62,9 @@ export const ChatMessageInput: FC<ChatMessageInputProps> = memo((props) => {
if (!monacoRef.current || !currentLanguage)
return
// when user input >.xxx,
// match xxx to language,
// when user input .xxx,
// and show suggestion,
// when user click suggestion,
// when user click suggestion,
// switch to that language.
const completionDispose = monacoRef.current.languages.registerCompletionItemProvider(currentLanguage, {
triggerCharacters: ['.'],

View File

@@ -145,10 +145,6 @@ export const Editor: FC<EditorProps> = memo((props) => {
enabled: false,
},
suggestOnTriggerCharacters: true,
// acceptSuggestionOnEnter: 'on',
// acceptSuggestionOnCommitCharacter: true,
// tabCompletion: 'on',
// wordBasedSuggestions: true,
fixedOverflowWidgets: true,
...options,
}}