-
Notifications
You must be signed in to change notification settings - Fork 0
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
Recompile on Edit [RIP67] #73
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # build.sbt # project/Dependencies.scala # src/main/scala/com/ossuminc/riddl/plugins/idea/settings/RiddlIdeaSettings.scala # src/main/scala/com/ossuminc/riddl/plugins/idea/settings/RiddlIdeaSettingsComponent.scala # src/main/scala/com/ossuminc/riddl/plugins/idea/settings/RiddlIdeaSettingsConfigurable.scala # src/main/scala/com/ossuminc/riddl/plugins/idea/utils/ParsingUtils.scala # src/main/scala/com/ossuminc/riddl/plugins/idea/utils/ToolWindowUtils.scala # src/main/scala/com/ossuminc/riddl/plugins/idea/utils/utils.scala
…mandForEditor via DocumentListener [RIP-67]
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.
This is too long to review in detail at 5pm but I made some comments about your build that you should change. In general, the immense amount of logic you're dealing with for highlighting could probably be changed to a TopLevelParser.parseToTokens call and a match statement on each of the resulting tokens.
It helps my review greatly if you can put a video showing the visual results.
src/main/scala/com/ossuminc/riddl/plugins/idea/files/RiddlDocumentListener.scala
Outdated
Show resolved
Hide resolved
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.
LGTM, please make sure it compiles with 0.56.0 before merging.
parseRootWithURLs
in Settings on applyparseNebulaContents
inrunCommandForEditor
viaDocumentListener.documentChanged