jsonnext / codemirror-json-schema

A JSONSchema enabled mode for codemirror 6, for json4 and json5, inspired by monaco-json
https://codemirror-json-schema.netlify.app
MIT License
63 stars 12 forks source link

Improvements to completion logic (mainly for top level) #102

Closed imolorhe closed 4 months ago

imolorhe commented 4 months ago

Improvements to completion logic (mainly for top level). In true TDD fashion, I'm fairly confident with the changes given the tests are all passing.

Added additional tests for

I wanted to also work on the "include value completions for boolean" test case but there's a bit extra work (when completing the property value and the node used for the completion is different from the original node passed in to getValueCompletions(), we also need to figure out the correct from and to values for the completion context, so that applying the completion replaces the correct things, otherwise it will replace the original node which may not be what we want) to be done to get it working as expected, so decided to tackle part of it but leave it commented out for now.

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: 8e00addd5dadca151639b455c2ea7cdb5c4e3dc1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | codemirror-json-schema | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

netlify[bot] commented 4 months ago

Deploy Preview for codemirror-json-schema ready!

Name Link
Latest commit 8e00addd5dadca151639b455c2ea7cdb5c4e3dc1
Latest deploy log https://app.netlify.com/sites/codemirror-json-schema/deploys/665859ee33f16d0008cf41c5
Deploy Preview https://deploy-preview-102--codemirror-json-schema.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

acao commented 4 months ago

so excited to see this, I'm going to take a closer look tonight