Skip to content

Commit 15768dd

Browse files
committed
- Updated plugin.xml and CHANGELOG.md for 1.7.3 release.
- Removed direct reference to Node.js settings which moved package to preserve compatibility - Tweaked generics in executors to comply with newer Java version
1 parent 5611a9b commit 15768dd

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 1.7.3 (2019-01-26)
2+
3+
Fixes:
4+
5+
- Fixed missing syntax highlighting colors due to uninitialized JavaScript colors being referenced from GraphQL (#158)
6+
- Set default charset to UTF-8 in query result viewer to align with JSON spec (#181)
7+
- Query result viewer doesn't always reformat the response JSON (#209)
8+
- Make the Query result viewer work with windows line endings in JSON responses (#191)
9+
110
## 1.7.2 (2018-05-29)
211

312
Fixes:

resources/META-INF/plugin.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<idea-plugin version="2">
1111
<id>com.intellij.lang.jsgraphql</id>
1212
<name>JS GraphQL</name>
13-
<version>1.7.2</version>
13+
<version>1.7.3</version>
1414
<vendor>Jim Kynde Meyer - [email protected]</vendor>
1515

1616
<description><![CDATA[
@@ -29,6 +29,7 @@
2929

3030
<change-notes><![CDATA[
3131
<ul>
32+
<li>1.7.3: Fixed missing syntax highlighting colors. Set default charset to UTF-8 in query result viewer. Support windows line endings in query result viewer and fixed reformat timing issue.</li>
3233
<li>1.7.2: Restore whitespace tokens for top level fragment placeholders in Apollo to preserve them during format lines.</li>
3334
<li>1.7.1: Node 10 Buffer deprecation warning no longer read by plugin as an error in the language service. Two additional minor bug-fixes.</li>
3435
<li>1.7.0: Fixed editor background loading issue. Language Service 1.5.1: Support for strongly typed variable placeholders in GraphQL tagged templates. Support for declaring annotations in Endpoint language.</li>

src/main/com/intellij/lang/jsgraphql/endpoint/ide/search/JSGraphQLEndpointDefinitionsSearchExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
public class JSGraphQLEndpointDefinitionsSearchExecutor implements QueryExecutor<PsiElement, PsiElement> {
2929

3030
@Override
31-
public boolean execute(@NotNull PsiElement queryParameters, @NotNull Processor<PsiElement> consumer) {
31+
public boolean execute(@NotNull PsiElement queryParameters, @NotNull Processor<? super PsiElement> consumer) {
3232
ApplicationManager.getApplication().runReadAction((Computable) () -> JSGraphQLEndpointDefinitionsSearchExecutor.doExecute(queryParameters, consumer));
3333
return true;
3434
}
3535

36-
private static boolean doExecute(PsiElement sourceElement, final Processor<PsiElement> consumer) {
36+
private static boolean doExecute(PsiElement sourceElement, final Processor<? super PsiElement> consumer) {
3737

3838
// must be an interface definition with a named type to be applicable
3939
final Ref<JSGraphQLEndpointNamedTypeDef> sourceNamedTypeDef = new Ref<>();

src/main/com/intellij/lang/jsgraphql/ide/notifications/JSGraphQLNodeInterpreterEditorNotificationProvider.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import com.intellij.ui.EditorNotificationPanel;
2525
import com.intellij.ui.EditorNotifications;
2626
import com.intellij.ui.EditorNotifications.Provider;
27-
import com.jetbrains.nodejs.settings.NodeSettingsConfigurable;
2827
import org.jetbrains.annotations.NotNull;
2928
import org.jetbrains.annotations.Nullable;
3029

@@ -111,7 +110,7 @@ protected Color getColor(EditorNotificationPanel panel) {
111110
@NotNull
112111
protected Runnable getConfigureAction() {
113112
return () -> {
114-
ShowSettingsUtilImpl.showSettingsDialog(myProject, NodeSettingsConfigurable.ID, "Node interpreter");
113+
ShowSettingsUtilImpl.showSettingsDialog(myProject, "settings.nodejs", "Node interpreter");
115114
myNotifications.updateAllNotifications();
116115
};
117116
}

src/main/com/intellij/lang/jsgraphql/schema/ide/search/JSGraphQLDefinitionsSearchExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public class JSGraphQLDefinitionsSearchExecutor implements QueryExecutor<PsiElem
3030
private static final String IMPLEMENTS_KEYWORD = "implements";
3131

3232
@Override
33-
public boolean execute(@NotNull PsiElement queryParameters, @NotNull Processor<PsiElement> consumer) {
33+
public boolean execute(@NotNull PsiElement queryParameters, @NotNull Processor<? super PsiElement> consumer) {
3434
ApplicationManager.getApplication().runReadAction((Computable) () -> JSGraphQLDefinitionsSearchExecutor.doExecute(queryParameters, consumer));
3535
return true;
3636
}
3737

38-
private static boolean doExecute(PsiElement sourceElement, final Processor<PsiElement> consumer) {
38+
private static boolean doExecute(PsiElement sourceElement, final Processor<? super PsiElement> consumer) {
3939
if (sourceElement instanceof JSGraphQLNamedTypePsiElement) {
4040
final String typeName = ((JSGraphQLNamedTypePsiElement) sourceElement).getName();
4141
if(typeName != null) {

0 commit comments

Comments
 (0)