- #3543
defc126b
Thanks @acao! - Temporarily revert a syntax highlighting bugfix that caused more bugs
-
#3514
36c7f25c
Thanks @acao! - fix svelte parsing, re-load config only on config changes- fix esbuild bundling of
typescript
forsvelte2tsx
! - confirm with manual testing of the vsix extension bundle ✅
- ensure that the server only attemps to parse opened/saved files when the server is activated or the file is a config file
- fix esbuild bundling of
-
Updated dependencies [
98af5307
,36c7f25c
]:- graphql-language-service-server@2.12.0
-
#3503
6c7adf85
Thanks @acao! - Temporarily revert svelte parsing until we can fix bundling issues with svelte2tsx. For now we return to using the vue parser to parse svelte files which will invariably cause some issues, such as being off by several characters -
Updated dependencies [
6c7adf85
]:- graphql-language-service-server@2.11.10
-
#3500
34d0a976
Thanks @acao! - Add typescript as a dependency forsvelte2tsx
-
Updated dependencies [
34d0a976
]:- graphql-language-service-server@2.11.9
-
#3498
3bfb2877
Thanks @acao! - Add typescript as a dependency forsvelte2tsx
-
Updated dependencies [
3bfb2877
]:- graphql-language-service-server@2.11.8
-
#3490
334224b4
Thanks @acao! - - add ruby syntax support- add graphql syntax support in markdown codeblocks for js, ts, jsx, tsx, svelte, vue, ruby, rescript, reason, ocaml, php and python
- make textmate injectors more performant and specific, eliminate redundant config
-
#3488
d5028be2
Thanks @acao! - Bump graphql & graphql-tools version to fix potential runtime security bugs -
22771f35
Thanks @acao! - Fixes to svelte parsing, tag parsing refactor -
Updated dependencies [
d5028be2
,22771f35
]:- graphql-language-service-server@2.11.7
- #3480
a1fced10
Thanks @craig-riecke! - Fix execution extension esbuild bundling
- Updated dependencies [
75ccd72c
]:- graphql-language-service-server@2.11.6
- Updated dependencies [
530ef47a
]:- graphql-language-service-server@2.11.5
- Updated dependencies []:
- graphql-language-service-server@2.11.4
-
#3322
6939bac4
Thanks @acao! - Bypass babel typescript parsing errors to continue extracting graphql strings -
Updated dependencies [
6939bac4
]:- graphql-language-service-server@2.11.3
-
#3224
5971d528
Thanks @acao! - try removing some packages from pre.json -
#3216
55135804
Thanks @simowe! - fix: reload schema when a change to the schema file is detected -
Updated dependencies [
5971d528
,55135804
]:- graphql-language-service-server@2.11.2
-
#3224
5971d528
Thanks @acao! - try removing some packages from pre.json -
#3216
55135804
Thanks @simowe! - fix: reload schema when a change to the schema file is detected -
Updated dependencies [
5971d528
,55135804
]:- graphql-language-service-server@2.11.2-alpha.0
- Updated dependencies [
4c3a08b1
]:- graphql-language-service-server@2.11.1
- Updated dependencies [
f2040452
]:- graphql-language-service-server@2.10.0
- Updated dependencies [
4d33b221
]:- graphql-language-service-server@2.9.10
- Updated dependencies [
632a7c6b
]:- graphql-language-service-server@2.9.9
-
#3157
06d39823
Thanks @jycouet! - fix:.vue
and.svelte
files doesn't log errors anymore when parsing with no script tag (#2836) -
Updated dependencies [
2e477eb2
,06d39823
,51007002
,15c26eb6
]:- graphql-language-service-server@2.9.8
-
#2940
8725d1b6
Thanks @B2o5T! - enableunicorn/prefer-node-protocol
rule -
Updated dependencies [
bdc966cb
,db2a0982
,90350022
,8725d1b6
]:- graphql-language-service-server@2.9.6
-
#2926
10e97bbe
Thanks @elijaholmos! - support cts and mts file extensions -
#2937
c70d9165
Thanks @B2o5T! - enableunicorn/prefer-includes
-
Updated dependencies [
f7addb20
,d1fcad72
,f9aa87dc
,10e97bbe
,c70d9165
,d502a33b
,0669767e
,f263f778
,4ff2794c
]:- graphql-language-service-server@2.9.5
-
#2901
eff4fd6b
Thanks @acao! - Reload the language service when a legacy format .graphqlconfig file has changed -
Updated dependencies [
eff4fd6b
]:- graphql-language-service-server@2.9.4
- Updated dependencies [
8989ffce
]:- graphql-language-service-server@2.9.3
-
#2488
967006a6
Thanks @acao! - DisablefillLeafsOnComplete
by defaultUsers found this generally annoying by default, especially when there are required arguments
Without automatically prompting autocompletion of required arguments as well as lead expansion, it makes the extension harder to use
You can now supply this in your graphql config:
config.extensions.languageService.fillLeafsOnComplete
Setting it to to
true
will enable this feature. Will soon add the ability to manually enable this inmonaco-graphql
as well.For both, this kind of behavior would be better as a keyboard command, context menu item &/or codelens prompt
-
#2849
9b98c1b6
Thanks @acao! - docs typo bug -/* GraphQL */
(not/* GraphiQL */
) is the delimiter forvscode-graphql-syntax
&vscode-graphql
language support -
Updated dependencies [
bdd1bd04
,967006a6
]:- graphql-language-service-server@2.9.2
-
#2829
c835ca87
Thanks @acao! - svelte language support, using the vue sfc parser introduced for vue support -
Updated dependencies [
c835ca87
,c835ca87
]:- graphql-language-service-server@2.9.1
- Updated dependencies [
b422003c
]:- graphql-language-service-server@2.9.0
-
#2818
929152f8
Thanks @acao! - Workspaces support introduced a regression for no-config scenario. Reverting to fix bugs with no graphql config crashing the server. -
Updated dependencies [
929152f8
]:- graphql-language-service-server@2.8.9
-
#2812
cf2e3061
Thanks @acao! - fix a bundling bug for vscode, rolling back graphql-config upgrade -
Updated dependencies [
cf2e3061
]:- graphql-language-service-server@2.8.8
-
#2810
f688422e
Thanks @acao! - fix graphql exec extension, upgradegraphql-config
, fix issue with graphql-config cosmiconfig typescript config loader. -
Updated dependencies [
f688422e
]:- graphql-language-service-server@2.8.7
-
Updated dependencies [
a2071504
]:- graphql-language-service-server@2.8.6
-
#2616
b0d7f06c
Thanks @acao! - support vscode multi-root workspaces! creates an LSP server instance for each workspace.WARNING: large-scale vscode workspaces usage, and this in tandem with
graphql.config.*
multi-project configs could lead to excessive system resource usage. Optimizations coming soon. -
Updated dependencies [
b0d7f06c
]:- graphql-language-service-server@2.8.5
- #2665
324fbedb
Thanks @acao! - Port the inline query execution capability from the originalvscode-graphql
repository as promised. More improvements to come!
- #2759
67b1e5e9
Thanks @acao! - Fixes #2671 bug for SDL schema support and.graphql
files! pinvscode-languageclient
to 8.0.2 version. Thanks @MariaSolOs for the fix!
- Updated dependencies []:
- graphql-language-service-server@2.8.4
-
#2664
721425b3
Thanks @acao! - This reverts the bugfix for .graphqlrc.ts users, which broke the extension for schema url users -
Updated dependencies [
721425b3
]:- graphql-language-service-server@2.8.3
-
#2660
34d31fbc
Thanks @acao! - bumpts-node
to 10.x, so that TypeScript based configs (i.e..graphqlrc.ts
) will continue to work. It also bumps to the latest patch releases ofgraphql-config
fixed several issues with TypeScript loading (v4.3.2, v4.3.3). We tested manually, but please open a bug if you encounter any with schema-as-url configs & schema introspection. -
Updated dependencies [
34d31fbc
]:- graphql-language-service-server@2.8.2
-
#2623
12cf4db0
Thanks @acao! - In #2624, fix introspection schema fetching regression in lsp server, and fix for users writing new .gql/.graphql files -
Updated dependencies [
12cf4db0
]:- graphql-language-service-server@2.8.1
-
#2573
a358ac1d
Thanks @acao! - ## EnhancementHere we move vscode grammars and basic language support to a new
GraphQL.vscode-graphql-syntax
extension.GraphQL.vscode-graphql
now depends on this new syntax extension. This constitutes no breaking change forvscode-graphql
users, as this extension will be installed automatically as anextensionDependency
forvscode-graphql
. Both extensions will now have independent release lifecycles, but vscode will keep them both up to date for you :)Firstly, this allows users to only install the syntax highlighting extension if they don't need LSP server features.
Secondly, this subtle but important change allows alternative LSP servers and non-LSP graphql extensions to use (and contribute!) to our shared, graphql community syntax highlighting. In some ways, it acts as a shared tooling & annotation spec, though it is intended just for vscode, it perhaps can be used as a point of reference for others implementing (embedded) graphql syntax highlighting elsewhere!
If your language and/or library and/or framework would like vscode highlighting, come join the party!
If you use relay, we would highly reccomend using the
relay-compiler lsp
extension for vscode Relay Graphql (meta.relay
). They will be using the new standalone syntax extension very soon!Even non-relay users may want to try this extension as an alternative to our reference implementation, as relay's configuration has relative similarity with
graphql-config
's format, and doesn't necessitate the use of relay client afaik. We are working hard to optimize and improvegraphql-language-service-server
as a typescript reference implementation, and have some exciting features coming soon, however it's hard to offer more than a brand new & highly performant graphql LSP server written in Rust based on the latest graphql spec with a (mostly) paid team and dedicated open source ecosystem community of co-maintainers! And their implementation appears to allow you to opt out of any relay-specific conventions if you need more flexibility.
-
#2557
3304606d
Thanks @acao! - upgrades thevscode-languageserver
andvscode-jsonrpc
reference implementations for the lsp server to the latest. also upgradesvscode-languageclient
invscode-graphql
to the latest 8.0.1. seems to work fine for IPC invscode-graphql
at least!hopefully this solves #2230 once and for all!
- Updated dependencies [
3304606d
]:- graphql-language-service-server@2.8.0
- Updated dependencies [
edc1c964
]:- graphql-language-service-server@2.7.29
-
#2509
737d4184
Thanks @Chnapy! - Addgql(``)
,graphql(``)
call expressions support for highlighting & language -
Updated dependencies [
de5d5a07
,737d4184
]:- graphql-language-service-server@2.7.28
- Updated dependencies [
cccefa70
]:- graphql-language-service-server@2.7.27
- Updated dependencies [
c9c51b8a
]:- graphql-language-service-server@2.7.26
- Updated dependencies [
cf092f59
]:- graphql-language-service-server@2.7.25
- #2474
70bc61ee
Thanks @acao! - Fix bug with typed parameters on the gql/graphql/etc tagged templates!
-
#2470
d0017a93
Thanks @acao! - Aims to resolve #2421- graphql config errors only log to output channel, no longer crash the LSP
- more performant LSP request no-ops for failing/missing config
this used to fail silently in the output channel, but vscode introduced a new retry and notification for this
would like to provide more helpful graphql config DX in the future but this should be better for now
-
Updated dependencies [
d0017a93
]:- graphql-language-service-server@2.7.24
-
#2417
6ca6a92d
Thanks @acao! - fix annoying trigger character on newline issue #2182 -
Updated dependencies [
6ca6a92d
]:- graphql-language-service-server@2.7.23
-
#2382
1bea864d
Thanks @acao! - allow disabling query/SDL validation withgraphql-config
setting{ extensions: { languageService: { enableValidation: false } } }
.Currently, users receive duplicate validation messages when using our LSP alongside existing validation tools like
graphql-eslint
, and this allows them to disable the LSP feature in that case. -
Updated dependencies [
6db28447
,1bea864d
]:- graphql-language-service-server@2.7.22
- Updated dependencies [
d22f6111
]:- graphql-language-service-server@2.7.21
- Updated dependencies []:
- graphql-language-service-server@2.7.20
c36504a8
Thanks @acao! - - upgradegraphql-config
to latest in server- remove
graphql-config
dependency fromvscode-graphql
andgraphql-language-service
- fix
vscode-graphql
esbuild bundling bug invscode-graphql
#2269 by fixingesbuild
version
- remove
- Updated dependencies [
c36504a8
]:- graphql-language-service-server@2.7.19
- #2276
6973a20b
Thanks @acao! - Simplified, merged with monorepo, dropped operation execution feature, we will recommend an alternative instead.
- Updated dependencies [
e15d1dae
]:- graphql-language-service-server@2.7.18
- #448
f894dad
Thanks @acao! - upgrade graphql-language-service-server to the latest patch version for windows path fix
- #436
2370607
Thanks @orta! - Adds support for making clicking on the graphql status item show the output channel
- #422
0e2235d
Thanks @orta! - Use the vscode theme API to set the right colours for the status bar item
- #402
a97e5df
Thanks @acao! - thanks @markusjwetzel! Add directive highlighting for type system directives. graphql/vscode-graphql#326
-
#391
6be5593
Thanks @acao! - LSP upgrades:- bugfix for
insertText
& completion on invalid list types - add support for template strings and tags with replacement expressions, so strings like these should work now:
const myQuery = /* GraphQL */ ` ${myFragments} query MyQuery { something ${anotherString} } `;
const myQuery = gql` ${myFragments} query MyQuery { something ${anotherString} } `;
- bugfix for
All notable changes to the "vscode-graphql" extension will be manually documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
The git log should show a fairly clean view of each of these new versions, and the issues/PRs associated.
Remove node_modules
from bundle after adding esbuild
to make the extension bundle smaller
Add highlighting and language support for .mjs
, .cjs
, .es6
, .esm
and other similar extensions
Major bugfixes for language features. Most bugs with language features not working should be resolved.
The useSchemaFileDefinition
setting was deprecated, and SDL-driven projects work by default. If you want to opt-into an experimental feature to cache graphql-config schema result for definitions (useful for remote schemas), consult the readme on how to configure cacheSchemaFileForLookup
option in vscode settings, or graphql config (yes you can enable/disable it per-project!)
Definition lookup works by default with SDL file schemas. cacheSchemaFileForLookup
must be enabled if you have a remote schema want definition lookup for input types, etc in queries
- support
graphql-config
for.ts
and.toml
files by upgradinggraphql-config
&graphql-language-service-server
- use
*
activation event, becausegraphql-config
inpackage.json
is impossible to detect otherwise using vscodeactivationEvents
- support additional language features in
graphql-language-service-server
such as interface implements interfaces, etc - upgrade operation execution to use a new graphql client and support subscriptions
- fix openvsx & vscode publish by re-creating PATs and signing new agreements
Note: there are still some known bugs in the language server we will be fixing soon:
- if you don't see editor output, please check your config
- output channel may show errors even after your configuration works
- there may be issues with schema file loading
LSP bugfixes:
- streaming interface bug
- bugfixes for windows filepaths in LSP server
- require
dotenv
in the server runtime (for loading graphql config values), and allow agraphql-config.dotEnvPath
configuration to specify specific paths - reload server on workspace configuration changes
- reload sever-side
graphql-config
and language service on config file changes. definitions cache/etc will be rebuilt- note: client not configured to reload on graphql config changes yet (i.e endpoints)
- accept all
graphql-config.loadConfig()
options
- update underlying
graphql-language-service-server
to allow .gql, .graphqls extensions
- documentation fix
- readme documentation improvements, more examples, FAQ, known issues
- bump
graphql-language-service-server
to allow implicit fragment completion (non-inline fragments). just include your fragments file or string in the graphql-configdocuments
- remove insiders announcement until tooling is properly in place, and insiders extension is up to date
useSchemaFileDefinition
setting
- #213: bugfix for input validation on operation execution
- upgrade to
graphql-config@3
- upgrade to latest major version of
graphql-language-service-server
- upgrades
graphql-config@3
- remove watchman dependency 🎉
- introduce workspace symbol lookup, outline
- validation and completion for input variables
- generate a schema output by default, for code-first schemas. SDL first schemas have an override option now
- upgrades
[todo]