Skip to content

Commit c47117e

Browse files
committed
Fixed backward compatibility
1 parent 16d92d8 commit c47117e

File tree

7 files changed

+26
-4
lines changed

7 files changed

+26
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m
66
pluginGroup = com.intellij.lang.jsgraphql
77
pluginName = JS GraphQL
88
pluginVersion = 2.6.0
9-
pluginSinceBuild = 182.711
9+
pluginSinceBuild = 183.6156.11
1010

1111
platformType = IU
1212
platformVersion = IU-LATEST-EAP-SNAPSHOT

resources/messages/GraphQLMessages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ graphql.notification.unable.to.parse.file=Unable to parse {0}
1717
graphql.notification.load.schema.from.endpoint.title=Get GraphQL schema from endpoint now?
1818
graphql.notification.load.schema.from.endpoint.body=Introspect ''{0}'' to update the local schema file.
1919
graphql.notification.load.schema.from.endpoint.action=Introspect ''{0}''
20+
graphql.notification.dont.show.again.message=Don't show again
2021

2122
# Introspection
2223
graphql.introspection.missing.data=Expected `data` key to be present in query result.

src/main/com/intellij/lang/jsgraphql/GraphQLBundle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package com.intellij.lang.jsgraphql;
22

3-
import com.intellij.DynamicBundle;
3+
import com.intellij.AbstractBundle;
44
import org.jetbrains.annotations.Nls;
55
import org.jetbrains.annotations.NonNls;
66
import org.jetbrains.annotations.NotNull;
77
import org.jetbrains.annotations.PropertyKey;
88

9-
public class GraphQLBundle extends DynamicBundle {
9+
public class GraphQLBundle extends AbstractBundle {
1010
@NonNls
1111
public static final String PATH = "messages.GraphQLMessages";
1212

src/main/com/intellij/lang/jsgraphql/ide/editor/GraphQLIntrospectEndpointUrlLineMarkerProvider.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
import java.net.MalformedURLException;
4040
import java.net.URL;
41+
import java.util.Collection;
42+
import java.util.List;
4143
import java.util.Map;
4244
import java.util.Optional;
4345
import java.util.stream.Stream;
@@ -186,4 +188,10 @@ private GraphQLConfigVariableAwareEndpoint getEndpoint(String url, JsonProperty
186188
}
187189
return null;
188190
}
191+
192+
@Override
193+
public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> elements,
194+
@NotNull Collection<? super LineMarkerInfo<?>> result) {
195+
// compatibility with 182
196+
}
189197
}

src/main/com/intellij/lang/jsgraphql/ide/editor/GraphQLIntrospectionJsonToSDLLineMarkerProvider.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
import org.jetbrains.annotations.NotNull;
3030
import org.jetbrains.annotations.Nullable;
3131

32+
import java.util.Collection;
33+
import java.util.List;
34+
3235
/**
3336
* Line marker which shows an action to turn a GraphQL Introspection JSON result into a GraphQL schema expressed in GraphQL SDL.
3437
*/
@@ -98,4 +101,10 @@ public LineMarkerInfo<?> getLineMarkerInfo(@NotNull PsiElement element) {
98101
}
99102
return null;
100103
}
104+
105+
@Override
106+
public void collectSlowLineMarkers(@NotNull List<? extends PsiElement> elements,
107+
@NotNull Collection<? super LineMarkerInfo<?>> result) {
108+
// compatibility with 182
109+
}
101110
}

src/main/com/intellij/lang/jsgraphql/ide/editor/GraphQLIntrospectionService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private void showEmptyErrorsNotification() {
276276
NotificationType.WARNING
277277
);
278278

279-
final AnAction dontShowAgainAction = new NotificationAction(EditorBundle.message("notification.dont.show.again.message")) {
279+
final AnAction dontShowAgainAction = new NotificationAction(GraphQLBundle.message("graphql.notification.dont.show.again.message")) {
280280
@Override
281281
public void actionPerformed(@NotNull AnActionEvent e, @NotNull Notification notification) {
282282
PropertiesComponent.getInstance().setValue(DISABLE_EMPTY_ERRORS_WARNING_KEY, "true");

src/main/com/intellij/lang/jsgraphql/ide/project/GraphQLPsiSearchHelper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ public void beforePsiChanged(boolean isPhysical) {
117117
// clear the cache on each PSI change
118118
fileNameToSchemaScope.clear();
119119
}
120+
121+
@Override
122+
public void afterPsiChanged(boolean isPhysical) {
123+
}
120124
});
121125
}
122126

0 commit comments

Comments
 (0)