Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jun 1, 2024

Conversation

imolorhe
Copy link
Collaborator

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.

@imolorhe imolorhe requested a review from acao May 29, 2024 14:50
Copy link

changeset-bot bot commented May 29, 2024

🦋 Changeset detected

Latest commit: 8e00add

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

Copy link

netlify bot commented May 29, 2024

Deploy Preview for codemirror-json-schema ready!

Name Link
🔨 Latest commit 8e00add
🔍 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.

@imolorhe imolorhe linked an issue May 29, 2024 that may be closed by this pull request
@acao
Copy link
Collaborator

acao commented May 30, 2024

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

@acao acao force-pushed the imolorhe/improve-completion branch from 55e6301 to 8e00add Compare May 30, 2024 10:50
Copy link
Collaborator

@acao acao left a comment

Choose a reason for hiding this comment

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

all of this looks and is working awesomely, and the todos are very descriptive! bravo @imolorhe !

@acao acao merged commit 296617f into main Jun 1, 2024
3 checks passed
@acao acao deleted the imolorhe/improve-completion branch June 1, 2024 09:04
acao pushed a commit that referenced this pull request Jun 1, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Patch Changes

- [#102](#102)
[`296617f`](296617f)
Thanks [@imolorhe](https://github.com/imolorhe)! - Improvements to
completion logic (mainly for top level)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support complex base types
2 participants