Skip to content

Commit c8c50cf

Browse files
committed
Provide VSCode multi-root workspace for proper linter behavior per https://stackoverflow.com/questions/47405315/visual-studio-code-and-subfolder-specific-settings
1 parent 05d517d commit c8c50cf

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ fabric.properties
126126
!.vscode/launch.json
127127
!.vscode/extensions.json
128128
!.vscode/*.code-snippets
129+
# Specifically allow the provided code workspace with the multi-root workaround
130+
!.vscode/SatisfactoryModManager.code-workspace
129131

130132
# Local History for Visual Studio Code
131133
.history/
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
// Needed for vscode ESLint to work
3+
// https://stackoverflow.com/questions/47405315/visual-studio-code-and-subfolder-specific-settings
4+
"folders": [
5+
{
6+
"name": "root",
7+
"path": "../."
8+
},
9+
{
10+
"path": "../frontend"
11+
},
12+
{
13+
"path": "../backend"
14+
}
15+
],
16+
"settings": {
17+
"files.exclude": {
18+
"**/.git": true,
19+
"backend": true,
20+
"frontend": true
21+
},
22+
},
23+
"extensions": {
24+
"recommendations": [
25+
"svelte.svelte-vscode",
26+
"streetsidesoftware.code-spell-checker",
27+
"dbaeumer.vscode-eslint",
28+
"davidanson.vscode-markdownlint",
29+
"herrmannplatz.npm-dependency-links",
30+
"medo64.render-crlf",
31+
"redhat.vscode-yaml",
32+
"golang.go"
33+
]
34+
}
35+
}

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ Although `wails dev` should run these commands for you under normal circumstance
6969
you may need to run `pnpm graphql-codegen` in the `frontend` directory to update the code generated from the SMR API,
7070
or run `pnpm translations` to update the translation data.
7171

72+
### IDE Configuration
73+
74+
Make sure that your IDE is connecting with the frontend's installation of ESLint to get the best experience.
75+
76+
VSCode users, a preconfigured workspace is provided in `./vscode`
77+
that allows editing both Go and Svelte files
78+
while maintaining correct ESLint functionality.
79+
7280
### Building
7381

7482
```bash

0 commit comments

Comments
 (0)