|
42 | 42 | <applicationService serviceImplementation="com.intellij.lang.jsgraphql.ide.references.GraphQLFindUsagesUtil" /> |
43 | 43 |
|
44 | 44 | <!-- Language registration --> |
45 | | - <fileTypeFactory implementation="com.intellij.lang.jsgraphql.GraphQLFileTypeFactory"/> |
| 45 | + <fileType name="GraphQL" implementationClass="com.intellij.lang.jsgraphql.GraphQLFileType" fieldName="INSTANCE" language="GraphQL" |
| 46 | + extensions="graphql;graphqls;gql"/> |
46 | 47 | <lang.parserDefinition language="GraphQL" implementationClass="com.intellij.lang.jsgraphql.GraphQLParserDefinition"/> |
47 | 48 |
|
| 49 | + <!-- File templates --> |
| 50 | + <internalFileTemplate name="GraphQL File"/> |
| 51 | + |
48 | 52 | <!-- Icons --> |
49 | 53 | <iconProvider implementation="com.intellij.lang.jsgraphql.GraphQLIconProvider" /> |
50 | 54 |
|
|
107 | 111 | <projectConfigurable groupId="language" instance="com.intellij.lang.jsgraphql.ui.GraphQLProjectConfigurable" /> |
108 | 112 |
|
109 | 113 | <!-- .graphqlconfig JSON --> |
110 | | - <fileTypeFactory implementation="com.intellij.lang.jsgraphql.ide.project.graphqlconfig.GraphQLConfigFileTypeFactory" /> |
111 | | - |
112 | | - <!-- recognize .graphqls as GraphQL for legacy reasons --> |
113 | | - <fileTypeFactory implementation="com.intellij.lang.jsgraphql.ide.project.GraphQLSLegacyFileTypeFactory" /> |
| 114 | + <fileType name="JSON" extensions="graphqlconfig"/> |
114 | 115 |
|
115 | 116 | <!-- Editor notifications --> |
116 | 117 | <editorNotificationProvider implementation="com.intellij.lang.jsgraphql.ide.notifications.GraphQLScopeEditorNotificationProvider"/> |
|
122 | 123 | <editorTabTitleProvider implementation="com.intellij.lang.jsgraphql.ide.editor.GraphQLIntrospectionEditorTabTitleProvider" /> |
123 | 124 |
|
124 | 125 | <!-- Project Language services --> |
125 | | - <projectService serviceInterface="com.intellij.lang.jsgraphql.v1.ide.configuration.JSGraphQLConfigurationProvider" serviceImplementation="com.intellij.lang.jsgraphql.v1.ide.configuration.JSGraphQLConfigurationProvider" /> |
126 | | - <projectService serviceInterface="com.intellij.lang.jsgraphql.endpoint.ide.project.JSGraphQLEndpointNamedTypeRegistry" serviceImplementation="com.intellij.lang.jsgraphql.endpoint.ide.project.JSGraphQLEndpointNamedTypeRegistry" /> |
| 126 | + <projectService serviceImplementation="com.intellij.lang.jsgraphql.v1.ide.configuration.JSGraphQLConfigurationProvider" /> |
| 127 | + <projectService serviceImplementation="com.intellij.lang.jsgraphql.endpoint.ide.project.JSGraphQLEndpointNamedTypeRegistry" /> |
127 | 128 |
|
128 | 129 |
|
129 | 130 | <!-- Spellchecking and to-do view--> |
130 | 131 | <spellchecker.support language="GraphQL Endpoint" implementationClass="com.intellij.lang.jsgraphql.endpoint.JSGraphQLEndpointSpellcheckingStrategy" /> |
131 | 132 | <todoIndexer filetype="GraphQL Endpoint" implementationClass="com.intellij.lang.jsgraphql.endpoint.JSGraphQLEndpointTodoIndexer"/> |
132 | 133 |
|
133 | 134 |
|
134 | | - <!-- File types --> |
135 | | - <fileTypeFactory implementation="com.intellij.lang.jsgraphql.endpoint.JSGraphQLEndpointFileTypeFactory"/> |
136 | | - <fileTypeFactory implementation="com.intellij.lang.jsgraphql.endpoint.doc.JSGraphQLEndpointDocFileTypeFactory"/> |
137 | | - <internalFileTemplate name="GraphQL File"/> |
138 | | - |
| 135 | + <!-- Endpoint File types --> |
| 136 | + <fileType name="GraphQL Endpoint" implementationClass="com.intellij.lang.jsgraphql.endpoint.JSGraphQLEndpointFileType" |
| 137 | + language="GraphQL Endpoint" extensions="graphqle"/> |
| 138 | + <fileType name="GraphQL Endpoint Doc" implementationClass="com.intellij.lang.jsgraphql.endpoint.doc.JSGraphQLEndpointDocFileType" |
| 139 | + language="GraphQL Endpoint Doc" extensions="graphqld"/> |
139 | 140 |
|
140 | 141 | <!-- Language --> |
141 | 142 |
|
|
0 commit comments