Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.

Fix event

Changed files
+4 -11
src
+4 -11
src/index.ts
···
file: filename,
diagnostics: [
{
-
source: 'gql-test',
-
relatedInformation: [
-
{
-
category: 0,
-
code: 4242,
-
sourceFile: source,
-
start: node.getStart(),
-
length: node.getEnd() - node.getStart(),
-
messageText: 'Shit is fucked',
-
},
-
],
},
],
}, 'suggestionDiag');
···
file: filename,
diagnostics: [
{
+
start: { line: 0, offset: 0 },
+
end: { line: 5, offset: 0 },
+
text: 'Shit is fucked',
+
category: 'warning',
},
],
}, 'suggestionDiag');