-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect generics for function references from inherited Methods…
…. (+ Fix issue where evaluation cache did not clear correctly)
- Loading branch information
Showing
9 changed files
with
57 additions
and
22 deletions.
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
23 changes: 23 additions & 0 deletions
23
...java/com/intellij/plugins/haxe/model/type/HaxeExpressionEvaluatorCacheChangeListener.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.intellij.plugins.haxe.model.type; | ||
|
||
import com.intellij.openapi.project.Project; | ||
import com.intellij.psi.util.PsiModificationTracker; | ||
|
||
/** | ||
* TMP workaround for a problem | ||
* <p> | ||
* Looks like project serivce and project listener entries in plugin.xml creates different instances | ||
* so to avoid problems with caches not beeing cleared we create a listener that finds the service and clears the cache. | ||
*/ | ||
public class HaxeExpressionEvaluatorCacheChangeListener implements PsiModificationTracker.Listener { | ||
private final Project myProject; | ||
|
||
public HaxeExpressionEvaluatorCacheChangeListener(Project project) { | ||
myProject = project; | ||
} | ||
|
||
public void modificationCountChanged() { | ||
myProject.getService(HaxeExpressionEvaluatorCacheService.class).clearCaches(); | ||
} | ||
} | ||
|
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
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