Skip to content

Commit 0bfc74e

Browse files
committed
cleanup
1 parent 68662d7 commit 0bfc74e

File tree

3 files changed

+13
-26
lines changed

3 files changed

+13
-26
lines changed

.github/workflows/main-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ jobs:
4848
- uses: codecov/codecov-action@v3
4949
with:
5050
token: ${{ secrets.CODECOV_TOKEN }}
51-
files: coverage/jest/lcov.info
51+
files: coverage/lcov.info
5252
fail_ci_if_error: true
5353
verbose: true

packages/graphql-language-service-server/src/MessageProcessor.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,14 @@ export class MessageProcessor {
10161016
// only local schema lookups if all of the schema entries are local files that we can resolve
10171017
const sdlOnly = unwrappedSchema.every(schemaEntry =>
10181018
allExtensions.some(
1019-
ext => !schemaEntry.startsWith('http') && schemaEntry.endsWith(ext),
1019+
// local schema file URIs for lookup don't start with http, and end with an extension that is not json but may
1020+
// be graphql, gql, ts, js, javascript, or even vue, svelte, etc.
1021+
// would be awesome to use tree sitter to expand our parser to other languages, and then we could support SDL literal
1022+
// definitions in other languages!
1023+
ext =>
1024+
!schemaEntry.startsWith('http') &&
1025+
schemaEntry.endsWith(ext) &&
1026+
ext !== 'json',
10201027
),
10211028
);
10221029
// if we are caching the config schema, and it isn't a .graphql file, cache it

yarn.lock

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7627,30 +7627,10 @@ caniuse-api@^3.0.0:
76277627
lodash.memoize "^4.1.2"
76287628
lodash.uniq "^4.5.0"
76297629

7630-
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001317, caniuse-lite@^1.0.30001328:
7631-
version "1.0.30001450"
7632-
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001450.tgz"
7633-
integrity sha512-qMBmvmQmFXaSxexkjjfMvD5rnDL0+m+dUMZKoDYsGG8iZN29RuYh9eRoMvKsT6uMAWlyUUGDEQGJJYjzCIO9ew==
7634-
7635-
caniuse-lite@^1.0.30001406:
7636-
version "1.0.30001507"
7637-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001507.tgz#fae53f6286e7564783eadea9b447819410a59534"
7638-
integrity sha512-SFpUDoSLCaE5XYL2jfqe9ova/pbQHEmbheDf5r4diNwbAgR3qxM9NQtfsiSscjqoya5K7kFcHPUQ+VsUkIJR4A==
7639-
7640-
caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001449:
7641-
version "1.0.30001457"
7642-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001457.tgz#6af34bb5d720074e2099432aa522c21555a18301"
7643-
integrity sha512-SDIV6bgE1aVbK6XyxdURbUE89zY7+k1BBBaOwYwkNCglXlel/E7mELiHC64HQ+W0xSKlqWhV9Wh7iHxUjMs4fA==
7644-
7645-
caniuse-lite@^1.0.30001517:
7646-
version "1.0.30001518"
7647-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001518.tgz#b3ca93904cb4699c01218246c4d77a71dbe97150"
7648-
integrity sha512-rup09/e3I0BKjncL+FesTayKtPrdwKhUufQFd3riFw1hHg8JmIFoInYfB102cFcY/pPgGmdyl/iy+jgiDi2vdA==
7649-
7650-
caniuse-lite@^1.0.30001565:
7651-
version "1.0.30001574"
7652-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001574.tgz#fb4f1359c77f6af942510493672e1ec7ec80230c"
7653-
integrity sha512-BtYEK4r/iHt/txm81KBudCUcTy7t+s9emrIaHqjYurQ10x71zJ5VQ9x1dYPcz/b+pKSp4y/v1xSI67A+LzpNyg==
7630+
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001317, caniuse-lite@^1.0.30001328, caniuse-lite@^1.0.30001406, caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001517, caniuse-lite@^1.0.30001565:
7631+
version "1.0.30001588"
7632+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001588.tgz"
7633+
integrity sha512-+hVY9jE44uKLkH0SrUTqxjxqNTOWHsbnQDIKjwkZ3lNTzUUVdBLBGXtj/q5Mp5u98r3droaZAewQuEDzjQdZlQ==
76547634

76557635
capital-case@^1.0.4:
76567636
version "1.0.4"

0 commit comments

Comments
 (0)