Merge pull request #537 from RickCole21/master

json-editor 中允许注释
This commit is contained in:
liaoxuezhi 2020-04-09 10:53:38 +08:00 committed by GitHub
commit 7bbef724eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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