Skip to content

feat: custom popup for displaying editor schemas - #2049

Draft
olensmar wants to merge 7 commits into
mainfrom
olelensmar/feat/schemaUri-in-editor
Draft

feat: custom popup for displaying editor schemas#2049
olensmar wants to merge 7 commits into
mainfrom
olelensmar/feat/schemaUri-in-editor

Conversation

@olensmar

@olensmar olensmar commented Jul 5, 2022

Copy link
Copy Markdown
Member

This PR starts a local server for hosting custom schemas requested by the editor. The server is started in a worker window - which could be expanded for further async-processing later on.

The main (only?) drawback with this approach is that the user will be prompted to allow local network connections when the server starts the first time (which it does lazily as needed - which might be never for many users...).

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Comment thread src/hooks/useResourceYamlSchema.ts Outdated
path: schemaPath,
content: JSON.stringify(resourceSchema, null, 2),
});
schemaUri = `http://localhost:51038${schemaPath}`;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

port is hardcoded - need to get the actual port from the server

@pull-request-size pull-request-size Bot added size/M and removed size/L labels Jul 6, 2022
@olensmar olensmar changed the title feat: initial implementation of local server for hosting editor schemas feat: custom popup for displaying editor schemas Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant