docs icon indicating copy to clipboard operation
docs copied to clipboard

think about update `graphql-language-service` to v4

Open dimaMachina opened this issue 4 years ago • 0 comments

Because in <OperationsEditor /> with graphql-language-service v4 when we select a field that has selection subfields curly brackets { and } add automatically, in v3 – not 😔 Look at the video

https://user-images.githubusercontent.com/7361780/145635521-fc7a14c2-626b-4145-baf0-1df89262105b.mov

Things to make

  • import this enum directly from graphql-language-service as CompletionItemKind
  • LanguageService class is no longer present in graphql-language-service v3, install and import him from monaco-graphql package

There are also breaking changes that need to be fixed

  • LanguageService.getSchema and LanguageService.setSchema methods was removed, now there are getSchemaForFile and updateSchema methods
  • LanguageService.getDiagnostics is now sync

dimaMachina avatar Dec 10 '21 20:12 dimaMachina