graphql-language-service-server
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -94,3 +94,3 @@ 'use strict'; | ||
function handleDidChangeNotification(params) { | ||
var textDocument, contentChanges, documentUri, cachedDocument, diagnostics; | ||
var textDocument, contentChanges, uri, cachedDocument, diagnostics; | ||
return regeneratorRuntime.async(function handleDidChangeNotification$(_context2) { | ||
@@ -114,7 +114,7 @@ while (1) { | ||
documentUri = textDocument.uri || params.uri; | ||
uri = textDocument.uri || params.uri; | ||
invalidateCache(textDocument, documentUri, contentChanges[contentChanges.length - 1]); | ||
invalidateCache(textDocument, uri, contentChanges[contentChanges.length - 1]); | ||
cachedDocument = textDocumentCache.get(documentUri); | ||
cachedDocument = textDocumentCache.get(uri); | ||
@@ -130,7 +130,7 @@ if (cachedDocument) { | ||
_context2.next = 11; | ||
return regeneratorRuntime.awrap(provideDiagnosticsMessage(cachedDocument.content.text, documentUri)); | ||
return regeneratorRuntime.awrap(provideDiagnosticsMessage(cachedDocument.content.text, uri)); | ||
case 11: | ||
diagnostics = _context2.sent; | ||
return _context2.abrupt('return', { documentUri: documentUri, diagnostics: diagnostics }); | ||
return _context2.abrupt('return', { uri: uri, diagnostics: diagnostics }); | ||
@@ -294,3 +294,3 @@ case 13: | ||
// libraries. | ||
uri: res.path.indexOf('file:') === 0 ? res.path : _path2.default.join('file:', res.path), | ||
uri: res.path.indexOf('file://') === 0 ? res.path : _path2.default.join('file://', res.path), | ||
range: res.range | ||
@@ -297,0 +297,0 @@ }; |
{ | ||
"name": "graphql-language-service-server", | ||
"repository": "https://github.com/graphql/graphql-language-service", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Server process backing the GraphQL Language Service", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
83835