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/flat-news-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"vscode-apollo": patch
---

Report project name in warning when no files are found. Allows to better pinpoint offending project when working with multiple projects.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"editor.wordWrapColumn": 110,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"[typescript]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "never"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed you don't "organize imports" in this project.
So I added this setting to override my default setting.
It might be just a "me" problem, but I figured it makes it makes the way of working more explicit in this project and avoids having to comment on PRs: "Please put back the imports the way they were before"

}
},
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
Expand Down
2 changes: 1 addition & 1 deletion src/language-server/project/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class GraphQLClientProject extends GraphQLInternalProject {

if (this.allIncludedFiles().length === 0) {
console.warn(
"⚠️ It looks like there are 0 files associated with this Apollo Project. " +
`⚠️ It looks like there are 0 files associated with Apollo Project: "${this.displayName}". ` +
"This may be because you don't have any files yet, or your includes/excludes " +
"fields are configured incorrectly, and Apollo can't find your files. " +
"For help configuring Apollo projects, see this guide: https://go.apollo.dev/t/config",
Expand Down