-
Notifications
You must be signed in to change notification settings - Fork 3
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
Rewrite #56
Conversation
* allow to bootstrap with position * configure language with provided context
In case where `baa|` is user input we only suggest `baawaap` and not `foo` as variables.
* group semantically * slight renames of specs * remove duplicate test
Fixes recovery on function positional arguments.
* You can now provide built-ins (other than Camunda) as you instantiate the editor. feat(autocompletion): filter completed built-ins chore: simplify internal structure * This is a larger rewrite of the inner structure of the tool, fixing some longer standing bugs chore: treat built-ins like special variables fix: recognize built-ins in the language grammar * We properly configure the language based on built-ins provided this allows the grammar to recognize `get or else` or other bogus built-ins that would otherwise be recognized as language constructs Related to camunda/camunda-modeler#3983
src/autocompletion/variable.js
Outdated
if (!label.includes(match)) { | ||
return -100; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in the walkthrough, this will remove fuzzy search from the suggestions. We can limit how many Items are shown by configuring maxRenderedOptions
(default is 100), but I think ordering them is good enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restored via e3477fb.
This is done by @codemirror/autocomplete itself.
Ready for review (again). Please have a look! |
Proposed Changes
This PR aims to improve the following:
You can try out the changes via
Related to camunda/camunda-modeler#3983
Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}