From 54d80ac4ea6dbadf489f569b9734580f71396c6f Mon Sep 17 00:00:00 2001
From: fedor
Date: Wed, 7 Apr 2021 13:19:19 -0400
Subject: [PATCH] IntelliJ 2021.1 Support
---
gradle.properties | 4 +-
.../lang/psi/ThriftPrefixReference.java | 6 -
.../thrift/lang/psi/ThriftTypeReference.java | 6 -
thrift/src/main/resources/META-INF/plugin.xml | 109 +-----------------
4 files changed, 4 insertions(+), 121 deletions(-)
diff --git a/gradle.properties b/gradle.properties
index 5e9a9e03..7bf5effa 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
-ideaVersion = 2020.3.1
+ideaVersion = 2021.1
sources = true
isEAP = false
@@ -6,4 +6,4 @@ org.gradle.daemon=true
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand=true
-org.gradle.jvmargs=-Dfile.encoding=UTF-8
\ No newline at end of file
+org.gradle.jvmargs=-Dfile.encoding=UTF-8
diff --git a/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftPrefixReference.java b/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftPrefixReference.java
index b8a5e92f..1e1aeaf1 100644
--- a/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftPrefixReference.java
+++ b/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftPrefixReference.java
@@ -35,12 +35,6 @@ public Object[] getVariants() {
return PsiElement.EMPTY_ARRAY;
}
- @NotNull
- @Override
- public Collection extends SymbolResolveResult> resolveReference() {
- return super.resolveReference();
- }
-
@Override
public PsiElement handleElementRename(@NotNull String newElementName) throws IncorrectOperationException {
ThriftCustomType element = this.getElement();
diff --git a/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftTypeReference.java b/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftTypeReference.java
index 54876d87..0a7c2e02 100644
--- a/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftTypeReference.java
+++ b/thrift/src/main/java/com/intellij/plugins/thrift/lang/psi/ThriftTypeReference.java
@@ -89,12 +89,6 @@ private T processComponentAndFile(@NotNull Function, T
}
}
- @NotNull
- @Override
- public Collection extends SymbolResolveResult> resolveReference() {
- return super.resolveReference();
- }
-
@Override
public PsiElement handleElementRename(@NotNull String newElementName) throws IncorrectOperationException {
ThriftCustomType element = this.getElement();
diff --git a/thrift/src/main/resources/META-INF/plugin.xml b/thrift/src/main/resources/META-INF/plugin.xml
index 75321565..25f3f035 100644
--- a/thrift/src/main/resources/META-INF/plugin.xml
+++ b/thrift/src/main/resources/META-INF/plugin.xml
@@ -4,113 +4,8 @@
Support for Thrift language
1.4:
-
- - Compatibility with IntelliJ 2020.3
-
- 1.2:
-
- - Compatibility with IntelliJ 2020.2
-
- 1.1:
-
- - Compatibility with IntelliJ 2020.1
-
- 1.0:
-
- - Compatibility with IntelliJ 2019.3
- - Building with Gradle
-
- 0.10.0:
-
- - Compatibility with IntelliJ 2019.2
-
- 0.9.9:
-
- - Compatibility with IntelliJ 2018.1
-
- 0.9.8:
-
- - Proper handling of relative imports
- - Bug fixes
-
- 0.9.7:
-
- - Erlang support
- - Bug fixes
- - Support all IntelliJ-based IDEs
-
- 0.9.6:
-
- - Support for generated_annotations=undated
- - Java 6 bytecode level
-
- 0.9.5:
-
- - Add Thrift v0.9.2 compiler options
- - ID duplication inspection
-
- 0.9.4:
-
- - Always absolute from source roots paths in includes
-
- 0.9.3:
-
- - Bug fixed and performance improvements
-
- 0.9.2:
-
- - Store relative to module folder paths for output folder
- - Fixed resolving for source roots with packages prefixes
-
- 0.9.1:
-
- - Compile thrift files within Idea
-
- 0.9:
-
- - Type Annotations
- - Bug fixes
-
- 0.7:
-
- - Improved include resolver
- - Unresolved include inspection
-
- 0.6:
-
- 0.5:
-
- - Rename Refactoring fixes
-
- 0.4:
-
- 0.3:
-
- - Find usages
- - Structure View
- - Fields and Functions in Go to by Symbol Name
-
- 0.2:
-
- - References
- - Go to implementation
- - Icons
-
- 0.1:
-
- - Syntax error highlighting via parser
- - Simple code highlighting
- - Completion
- - Commenter
- - Brace matching
- - Quote handler
-
- ]]>
+ IntelliJ 2021.1 Support
+ ]]>
@fedor