Files
openide/plugins
Andrei Klunnyi d20d91ace1 KTIJ-27596 [scripts]: highlighting issues in .gradle.kts
What was the problem caused highlighting issues: missing script definition.

The class `ScriptDefinitionsManager` has implicit contract: `definitions` are either null or non-empty list.
There are statements like definitions?: <do-smth>. The contract was broken.

Why was a definition missing?

There is `ScriptDefinitionsManager.reloadDefinitionsBy(<source>)` which can be called as a reaction to some event.
When a user opens groovy files (`build.gradle` for example), the method is called as a reaction to the compiler
settings update with the corresponding source. It loads nothing and leaves definitions empty (not null).
Further calls to `ScriptDefinitionsManager.findDefinition()` (the user opens, say, `build.gradle.kts`) bumped
into `definitions?: <load>` and result in nothing.

^KTIJ-27596 fixed

GitOrigin-RevId: 0fdadde19195e42a8ee7f841c02dec54a09dfd07
2023-11-07 22:25:56 +00:00
..
2023-11-03 19:17:26 +00:00
2023-11-07 18:10:32 +00:00
2023-11-06 22:27:09 +00:00
2023-11-06 22:27:09 +00:00
2023-11-06 17:26:33 +01:00
2023-10-23 09:34:00 +00:00