Skip to content

Commit 3bad7c0

Browse files
committed
Added 2.0.0-alpha-2 (#164)
- Removed references to JavaScript and TypeScript file types in JSGraphQLFindUsagesUtil.java which caused errors when running in Android Studio - Updated release info in plugin.xml to match alpha feature set
1 parent e0b40a4 commit 3bad7c0

File tree

10 files changed

+15
-69
lines changed

10 files changed

+15
-69
lines changed
2.09 MB
Binary file not shown.

alpha-releases/updatePlugins.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<plugins>
2-
<plugin id="com.intellij.lang.jsgraphql" url="https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/blob/v2/alpha-releases/JS%20GraphQL-2.0.0-alpha-1.zip?raw=true" version="2.0.0-alpha-1"/>
2+
<plugin id="com.intellij.lang.jsgraphql" url="https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/blob/v2/alpha-releases/JS%20GraphQL-2.0.0-alpha-2.zip?raw=true" version="2.0.0-alpha-2"/>
33
</plugins>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
}
1313

1414
group 'com.intellij.lang.jsgraphql'
15-
version '2.0.0-alpha-1'
15+
version '2.0.0-alpha-2'
1616

1717
apply plugin: 'java'
1818

js-graphql-intellij-plugin.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.id="js-graphql-intellij-plugin" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.intellij.lang.jsgraphql" external.system.module.version="2.0.0-alpha-1" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.id="js-graphql-intellij-plugin" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.intellij.lang.jsgraphql" external.system.module.version="2.0.0-alpha-2" type="JAVA_MODULE" version="4">
33
<component name="NewModuleRootManager" inherit-compiler-output="true">
44
<exclude-output />
55
<content url="file://$MODULE_DIR$">

resources/META-INF/plugin.xml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,24 @@
1010
<idea-plugin>
1111
<id>com.intellij.lang.jsgraphql</id>
1212
<name>JS GraphQL</name>
13-
<version>2.0.0-alpha-1</version>
13+
<version>2.0.0-alpha-2</version>
1414
<vendor>Jim Kynde Meyer - [email protected]</vendor>
1515

1616
<description><![CDATA[
1717
<p>GraphQL language support including Relay.QL tagged templates in JavaScript and TypeScript.</p>
1818
<p>Provides the following features:</p>
1919
<ul>
20-
<li>Schema-aware completion, error highlighting, and documentation</li>
20+
<li>Schema-aware completion, error highlighting</li>
2121
<li>Syntax highlighting, code-formatting, folding, commenter, and brace-matching</li>
2222
<li>'Find Usages' and 'Go to Declaration' for schema types and fields</li>
23-
<li>Schema viewer and 'Go to Implementation' for schema interfaces</li>
24-
<li>'Structure view' to navigate GraphQL and GraphQL Schema files</li>
25-
<li>Configurable GraphQL schema retrieval and reloading based on a local file or a url using 'then-request'</li>
23+
<li>'Go to Implementation' for schema interfaces</li>
2624
<li>Execute queries with variables against configurable endpoints</li>
2725
</ul>
2826
]]></description>
2927

3028
<change-notes><![CDATA[
3129
<ul>
32-
<li>1.7.2: Restore whitespace tokens for top level fragment placeholders in Apollo to preserve them during format lines.</li>
33-
<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>
34-
<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>
35-
<li>1.6.3: 'Editor > Code Style' never loads In WebStorm 2017.3.</li>
36-
<li>1.6.2: Resolve fragment references under progress in annotator to ensure WebStorm 2017.3 compatibility.</li>
37-
<li>1.6.1: 2017.3 compatibility.</li>
38-
<li>1.6.0: Support for Relay Modern fragments. Language Service 1.5.0: Support for loading the schema from .graphql file (Relay Modern projects).</li>
39-
<li>1.5.4: Only show the error console automatically on the first error in the project. Fixes Int variables being sent as floats. Fixes auto-import is not placed on a new line in JS files with GraphQL templates.</li>
40-
<li>1.5.3: Support Relay Modern graphql.experimental tag.</li>
41-
<li>1.5.2: Pass "variables" in payload to GraphQL server as JSON.</li>
42-
<li>1.5.1: Compatible with IntelliJ IDEA 2017.1 EAP tagged template expressions.</li>
43-
<li>1.5.0: Language Service 1.4.0 based on graphql 0.9.1 and codemirror-graphql 0.6.2. Experimental support for GraphQL Endpoint Language (.graphqle)</li>
44-
<li>1.4.4: Fixes Assertion failed: Caret model is in its update process.</li>
45-
<li>1.4.3: GraphQL configuration page for indentation. Language Service 1.3.2: Object literal for variables in getFragment closes Relay.QL template expression.</li>
46-
<li>1.4.2: Language Service 1.3.1: Support __schema root in schema.json.</li>
47-
<li>1.4.1: Support for gql tagged templates used by Apollo and Lokka GraphQL Clients. Fixes false Error in Relay Mutation.</li>
48-
<li>1.4.0: Language Service 1.2.0 based on graphql 0.7.0 and codemirror-graphql 0.5.4. Basic editor support for GraphQL Schema (.graphqls)</li>
49-
<li>1.3.3: Fixes compatibility issue with IDEA 2016.2.2</li>
50-
<li>1.3.2: Removes GraphQL schema from scratch file formats.</li>
51-
<li>1.3.1: Fixes compatibility issue with WebStorm 2016.2 EAP.</li>
52-
<li>1.3.0: Adds support for GraphQL Scratch Files. Query results are now formatted.</li>
53-
<li>1.2.0: Contextual query support: Execute buffer, selection, or named operations at the caret position in the GraphQL editor</li>
54-
<li>1.1.1: Completion after ... fragment spread operator. Language Service 1.1.1 based on graphql 0.4.16 and codemirror-graphql 0.2.2</li>
55-
<li>1.1.0: Find usages, schema viewer, structure view</li>
30+
<li>2.0.0-alpha-2: Language support for GraphQL draft spec as of June 2018. Compatible with Android Studio 3.1 and IntelliJ IDEA Community Edition</li>
5631
</ul>
5732
]]>
5833
</change-notes>

src/main/com/intellij/lang/jsgraphql/v1/ide/findUsages/JSGraphQLFindUsagesUtil.java

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/main/com/intellij/lang/jsgraphql/v1/ide/findUsages/JSGraphQLProjectAndLibrariesScope.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88
package com.intellij.lang.jsgraphql.v1.ide.findUsages;
99

10+
import com.intellij.lang.jsgraphql.ide.references.GraphQLFindUsagesUtil;
1011
import com.intellij.lang.jsgraphql.v1.schema.ide.project.JSGraphQLSchemaLanguageProjectService;
1112
import com.intellij.openapi.vfs.VirtualFile;
1213
import com.intellij.psi.search.ProjectAndLibrariesScope;
@@ -35,7 +36,7 @@ public boolean contains(@NotNull VirtualFile file) {
3536
}
3637

3738
// we're only interested in usages in GraphQL, JavaScript and TypeScript files
38-
return JSGraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.contains(file.getFileType()) && super.contains(file);
39+
return GraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.contains(file.getFileType()) && super.contains(file);
3940

4041
}
4142

src/main/com/intellij/lang/jsgraphql/v1/ide/notifications/JSGraphQLConfigEditorNotificationProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
import com.intellij.ide.util.PropertiesComponent;
1111
import com.intellij.lang.jsgraphql.GraphQLFileType;
1212
import com.intellij.lang.jsgraphql.GraphQLParserDefinition;
13+
import com.intellij.lang.jsgraphql.ide.references.GraphQLFindUsagesUtil;
1314
import com.intellij.lang.jsgraphql.v1.ide.configuration.JSGraphQLConfigurationProvider;
14-
import com.intellij.lang.jsgraphql.v1.ide.findUsages.JSGraphQLFindUsagesUtil;
1515
import com.intellij.lang.jsgraphql.v1.languageservice.JSGraphQLNodeLanguageServiceClient;
1616
import com.intellij.notification.Notification;
1717
import com.intellij.notification.NotificationType;
@@ -92,7 +92,7 @@ protected boolean isGraphQLRelatedFile(VirtualFile file) {
9292
if(file.getFileType() == GraphQLFileType.INSTANCE) {
9393
return true;
9494
}
95-
if(JSGraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.contains(file.getFileType())) {
95+
if(GraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.contains(file.getFileType())) {
9696
return true;
9797
}
9898
return false;

src/main/com/intellij/lang/jsgraphql/v1/ide/project/JSGraphQLPsiSearchHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
import com.google.common.collect.Lists;
1212
import com.google.common.collect.Maps;
13+
import com.intellij.lang.jsgraphql.ide.references.GraphQLFindUsagesUtil;
1314
import com.intellij.lang.jsgraphql.v1.JSGraphQLTokenTypes;
14-
import com.intellij.lang.jsgraphql.v1.ide.findUsages.JSGraphQLFindUsagesUtil;
1515
import com.intellij.lang.jsgraphql.v1.psi.JSGraphQLFragmentDefinitionPsiElement;
1616
import com.intellij.lang.jsgraphql.v1.psi.JSGraphQLNamedTypePsiElement;
1717
import com.intellij.openapi.components.ServiceManager;
@@ -35,7 +35,7 @@
3535
*/
3636
public class JSGraphQLPsiSearchHelper {
3737

38-
private static final FileType[] FILE_TYPES = JSGraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.toArray(new FileType[JSGraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.size()]);
38+
private static final FileType[] FILE_TYPES = GraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.toArray(new FileType[GraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.size()]);
3939

4040
private final Project myProject;
4141
private final Map<String, JSGraphQLNamedTypePsiElement> fragmentDefinitionsByName = Maps.newConcurrentMap();

src/main/com/intellij/lang/jsgraphql/v1/psi/JSGraphQLNamedPsiElement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
package com.intellij.lang.jsgraphql.v1.psi;
99

1010
import com.intellij.lang.ASTNode;
11+
import com.intellij.lang.jsgraphql.ide.references.GraphQLFindUsagesUtil;
1112
import com.intellij.lang.jsgraphql.v1.JSGraphQLTokenTypes;
12-
import com.intellij.lang.jsgraphql.v1.ide.findUsages.JSGraphQLFindUsagesUtil;
1313
import com.intellij.lang.jsgraphql.v1.schema.ide.project.JSGraphQLSchemaLanguageProjectService;
1414
import com.intellij.lang.jsgraphql.v1.schema.psi.JSGraphQLSchemaFile;
1515
import com.intellij.openapi.fileTypes.FileType;
@@ -121,7 +121,7 @@ public SearchScope getUseScope() {
121121

122122
@NotNull
123123
private GlobalSearchScope createFileTypeRestrictedUsageScope(Project project) {
124-
FileType[] fileTypes = JSGraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.toArray(new FileType[JSGraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.size()]);
124+
FileType[] fileTypes = GraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.toArray(new FileType[GraphQLFindUsagesUtil.INCLUDED_FILE_TYPES.size()]);
125125
return GlobalSearchScope.getScopeRestrictedByFileTypes(ProjectScope.getAllScope(project), fileTypes);
126126
}
127127

0 commit comments

Comments
 (0)