-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvement: changes to LSP to prepare for monaco
- move GraphQLCache to interface package, prepare for de-nodeification - graphql-languageservice package exports interface, parser & types (ala vscode) - remove some unnecessarily duplicate types from gls-types - improve autocomplete results to return a vscode CompletionItemKind - Change diagnostic severity case to match other vscode patterns
- Loading branch information
Showing
46 changed files
with
458 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
packages/graphql-language-service-interface/src/__tests__/.graphqlrc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
projects: | ||
default: | ||
schema: '__schema__/StarWarsSchema.graphql' | ||
testWithSchema: | ||
schema: | ||
- __schema__/StarWarsSchema.graphql | ||
- 'directive @customDirective on FRAGMENT_SPREAD' | ||
testWithEndpoint: | ||
schema: https://example.com/graphql | ||
testWithEndpointAndSchema: | ||
schema: | ||
- __schema__/StarWarsSchema.graphql | ||
- https://example.com/graphql | ||
testWithoutSchema: | ||
schema: '' | ||
testWithCustomDirectives: | ||
schema: | ||
- __schema__/StarWarsSchema.graphql | ||
- 'directive @customDirective on FIELD' | ||
testSingularIncludesGlob: | ||
schema: __schema__/StarWarsSchema.graphql | ||
include: __queries__/*.graphql | ||
testMultipleIncludes: | ||
schema: __schema__/StarWarsSchema.graphql | ||
include: | ||
- __queries__/*.graphql | ||
- __fragments__/*.graphql | ||
testNoIncludes: | ||
schema: __schema__/StarWarsSchema.graphql | ||
testBadIncludes: | ||
schema: __schema__/StarWarsSchema.graphql | ||
include: nope.nopeql |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ages/graphql-language-service-interface/src/__tests__/__queries__/definitionQuery.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type Query { hero(episode: Episode): Character } |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.