sqldelight
sqldelight copied to clipboard
Go To Declaration or usages jumps through each migration file
SQLDelight Version
2.0.0-SNAPSHOT-1689903876336
IDE Version
2023.2 EAP RC 1
Dialect
SQLite
Describe the Bug
Having the following migration file:
ALTER TABLE flashDeck ADD COLUMN frontTextAlignment TEXT;
ALTER TABLE flashDeck ADD COLUMN backTextAlignment TEXT;
ALTER TABLE flashDeck ADD COLUMN explanationTextAlignment TEXT;
When I have my caret on the last flashDeck and invoke the Go To Declaration or usages functionality, it jumps to the second line, when I invoke it once more it jumps to the first line:
ALTER TABLE <third_caret>flashDeck ADD COLUMN frontTextAlignment TEXT;
ALTER TABLE <second_caret>flashDeck ADD COLUMN backTextAlignment TEXT;
ALTER TABLE <first_caret>flashDeck ADD COLUMN explanationTextAlignment TEXT;
Now when I invoke the functionality again it takes me to the next lower migration file that also uses the flashDeck table.
Actual behavior:
It jumps through each and every reference of the given table in all migration files & the original sq file.
Expected behavior:
I'd go straight away to the definition in the sq file.
Stacktrace
No response
I've been tricked twice. Go To Declaration or usages actually goes at the very last step to the 0.db file; the one that is used to verify migrations. I never end up in my FlashDeck.sq file.