Merge remote-tracking branch 'baidu/master'

This commit is contained in:
2betop 2020-04-09 11:42:14 +08:00
commit 63adc76437

View File

@ -204,7 +204,8 @@ export class Editor extends React.Component<EditorProps, any> {
// json 默认开启验证。 // json 默认开启验证。
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({ monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
enableSchemaRequest: true, enableSchemaRequest: true,
validate: true validate: true,
allowComments: true
}); });
// After initializing monaco editor // After initializing monaco editor