-
Notifications
You must be signed in to change notification settings - Fork 33
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
✨ Add support for item components #1131
Merged
+518
−50
Merged
Changes from 11 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
52740d3
begin work
Trivaxy dc6c238
potentially fix error
Trivaxy bd7d1a6
make ParticleNode refer to ItemNode
Trivaxy 6c8fdff
Rudimentary item component syntax support
Trivaxy 3e0f112
✨ Implement various command parsers and tree patch changes (#1128)
misode 4e05d80
fix `ItemOldNode.is` and `ItemNewNode.is`
Trivaxy 797cfdf
report error when duplicate components are defined
Trivaxy ea2a2cb
make duplicate components error localize properly
Trivaxy 6f975f3
make error for duplicate components consistent
Trivaxy e51dad1
make error reporting for duplicates smarter
Trivaxy 0b3af75
rename `item_old` and `item_new`
Trivaxy 27c395a
(very buggy) new item predicate syntax
Trivaxy 4697366
undo changes to `list.ts`
Trivaxy e4bd254
Merge branch 'main' into pr/Trivaxy/1131-1
misode 11a5537
Implement a few of SPGoding's suggestions
misode a5752fd
Refactor nodes to separate item stack and predicate instead of old an…
misode 05f1010
Remove unused function
misode 6ed3a53
Update snapshots
misode 28be8e5
Use correct symbol categories + change duplicate check
misode 3d8f860
Start of completers
misode a6d7d51
Refactor component test parser
misode 8612a2e
fix equality component tests only expecting compounds
Trivaxy 0b89a61
finish item predicates
Trivaxy 89cdf23
Merge remote-tracking branch 'upstream/main' into item-components
Trivaxy e6f6a5d
fix weird merge
Trivaxy f0077d7
fix linting
Trivaxy 5cfdfa1
return component test nodes to being infallible
Trivaxy 3be2227
... fix lint. i forgot to make this automatic
Trivaxy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You can use
core.LanguageErrorInfo.related
to report only one error for this with the duplicated keys' locations added in theinfo.related
field (core.Location.create()
would be helpful to create the entries for the field)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.
Vscode also creates an error for each duplicate key in a json file for example, imo this is the most clean