Skip to content

Commit 98efb74

Browse files
committed
cleanup
1 parent bb98420 commit 98efb74

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
@@ -7553,30 +7553,10 @@ caniuse-api@^3.0.0:
75537553
lodash.memoize "^4.1.2"
75547554
lodash.uniq "^4.5.0"
75557555

7556-
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001317, caniuse-lite@^1.0.30001328:
7557-
version "1.0.30001450"
7558-
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001450.tgz"
7559-
integrity sha512-qMBmvmQmFXaSxexkjjfMvD5rnDL0+m+dUMZKoDYsGG8iZN29RuYh9eRoMvKsT6uMAWlyUUGDEQGJJYjzCIO9ew==
7560-
7561-
caniuse-lite@^1.0.30001406:
7562-
version "1.0.30001507"
7563-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001507.tgz#fae53f6286e7564783eadea9b447819410a59534"
7564-
integrity sha512-SFpUDoSLCaE5XYL2jfqe9ova/pbQHEmbheDf5r4diNwbAgR3qxM9NQtfsiSscjqoya5K7kFcHPUQ+VsUkIJR4A==
7565-
7566-
caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001449:
7567-
version "1.0.30001457"
7568-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001457.tgz#6af34bb5d720074e2099432aa522c21555a18301"
7569-
integrity sha512-SDIV6bgE1aVbK6XyxdURbUE89zY7+k1BBBaOwYwkNCglXlel/E7mELiHC64HQ+W0xSKlqWhV9Wh7iHxUjMs4fA==
7570-
7571-
caniuse-lite@^1.0.30001517:
7572-
version "1.0.30001518"
7573-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001518.tgz#b3ca93904cb4699c01218246c4d77a71dbe97150"
7574-
integrity sha512-rup09/e3I0BKjncL+FesTayKtPrdwKhUufQFd3riFw1hHg8JmIFoInYfB102cFcY/pPgGmdyl/iy+jgiDi2vdA==
7575-
7576-
caniuse-lite@^1.0.30001565:
7577-
version "1.0.30001574"
7578-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001574.tgz#fb4f1359c77f6af942510493672e1ec7ec80230c"
7579-
integrity sha512-BtYEK4r/iHt/txm81KBudCUcTy7t+s9emrIaHqjYurQ10x71zJ5VQ9x1dYPcz/b+pKSp4y/v1xSI67A+LzpNyg==
7556+
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:
7557+
version "1.0.30001588"
7558+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001588.tgz"
7559+
integrity sha512-+hVY9jE44uKLkH0SrUTqxjxqNTOWHsbnQDIKjwkZ3lNTzUUVdBLBGXtj/q5Mp5u98r3droaZAewQuEDzjQdZlQ==
75807560

75817561
capital-case@^1.0.4:
75827562
version "1.0.4"

0 commit comments

Comments
 (0)