mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +08:00
monaco jsonDefaults 保留原有配置
This commit is contained in:
parent
b897efe4f2
commit
09796d31d6
@ -216,7 +216,8 @@ export class Editor extends React.Component<EditorProps, any> {
|
||||
monaco.languages.json?.jsonDefaults.setDiagnosticsOptions({
|
||||
enableSchemaRequest: true,
|
||||
validate: true,
|
||||
allowComments: true
|
||||
allowComments: true,
|
||||
...monaco.languages.json?.jsonDefaults.diagnosticsOptions
|
||||
});
|
||||
|
||||
// After initializing monaco editor
|
||||
|
Loading…
Reference in New Issue
Block a user