Skip to content

Extend jsconfig.json for better Visual Studio Code experience.#477

Draft
fschmenger wants to merge 1 commit intowegue-oss:masterfrom
fschmenger:improve_vs_code_experience
Draft

Extend jsconfig.json for better Visual Studio Code experience.#477
fschmenger wants to merge 1 commit intowegue-oss:masterfrom
fschmenger:improve_vs_code_experience

Conversation

@fschmenger
Copy link
Copy Markdown
Collaborator

This extends jsconfig.json to improve IntelliSense and navigation behavior of VisualStudio (and potentially other IDEs using a JavaScript language service). For a documentation of available options see https://code.visualstudio.com/docs/languages/jsconfig.

Some brief explanation:

  • Enable type-check for JavaScript files: "checkJs": true:
  • Improve reliability of path resolution
"baseUrl": ".",
"paths": {
  "@/*": ["src/*"],
  "APP/*": ["app/*"]
} 
  • Add explicit includes: "include": [....]
  • Tell VSCode how to handle module resolution: "moduleResolution": "Node"
  • Help VSCode to assume ESM syntax and understand JS features:
"module": "ESNext"
"target": "ES2020"

@fschmenger
Copy link
Copy Markdown
Collaborator Author

This gives alot better suggestions for autocompletion, when the type can be deduced. i,E for local variables and expressions.
Here and there the syntax check is complaining. We should address that in the future, e.g.

  • $appConfig on the Vue prototype is unknown.
  • A revision of the Map component, to properly declare all data properties

@fschmenger fschmenger requested a review from sronveaux April 2, 2026 12:00
@fschmenger fschmenger marked this pull request as draft April 2, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant