qian0817 commented on a change in pull request #1816: URL: https://github.com/apache/apisix-dashboard/pull/1816#discussion_r625499416
########## File path: web/src/components/Plugin/PluginDetail.tsx ########## @@ -190,49 +188,53 @@ const PluginDetail: React.FC<Props> = ({ }); }); }; - const handleModeChange = (value: PluginComponent.CodeMirrorMode) => { + + const editorWillMount = (monaco: typeof monacoEditor) => { + fetchSchema(name, schemaType).then((schema)=> { + const schemaConfig = { + validate: true, + schemas: [ + { + uri: `https://apisix.apache.org/`, Review comment: This uri seems like useless if the schema is already set, but this is required by type and must be a valid uri. So I just use `https://apisix.apache.org` as a placeholder. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org