Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/poor-terms-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-language-service-server': patch
---

Add missing `?.` operator in loading config
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class MessageProcessor {
// TODO: eventually we will instantiate an instance of this per workspace,
// so rootDir should become that workspace's rootDir
this._settings = { ...settings, ...vscodeSettings };
const rootDir = this._settings?.load?.rootDir.length
const rootDir = this._settings?.load?.rootDir?.length
? this._settings?.load?.rootDir
: this._rootPath;
if (settings?.dotEnvPath) {
Expand Down