-
-
Notifications
You must be signed in to change notification settings - Fork 414
feat(IDE): enable Go To Definition feature
#3518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "recommendations": [ | ||
| "EditorConfig.EditorConfig", | ||
| "yoavbls.pretty-ts-errors" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same idea - IMHO, this is very much user-preference.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is only to inform users about the recommended VS Code extensions. Without |
||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same question here. Do we need vscode preferences at the project level?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are fallback defaults for users who do not have the |
||
| "diffEditor.diffAlgorithm": "advanced", | ||
| "diffEditor.experimental.showMoves": true, | ||
| "editor.rulers": [80, 120], | ||
| "editor.insertSpaces": true, | ||
| "editor.tabSize": 2, | ||
| "editor.trimAutoWhitespace": true, | ||
| "files.trimTrailingWhitespace": true, | ||
| "files.eol": "\n", | ||
| "files.insertFinalNewline": true, | ||
| "files.trimFinalNewlines": true, | ||
| "js/ts.inlayHints.parameterNames.enabled": "all", | ||
| "js/ts.inlayHints.variableTypes.enabled": true, | ||
| "js/ts.preferGoToSourceDefinition": true, | ||
| "workbench.editor.labelFormat": "short" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "ignoreDeprecations": "6.0", | ||
| "checkJs": false, | ||
| "baseUrl": ".", | ||
| "moduleResolution": "bundler", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please share why "bundler" was chosen? I can see why the path mappings help editor navigation, but I'd like to understand this resolution.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Like TS, we have few options for moduleResolution: "Node", "Classic", "Node16", "NodeNext" and "Bundler" https://code.visualstudio.com/docs/languages/jsconfig#_what-is-jsconfigjson |
||
| "paths": { | ||
| "vtk.js/Sources/*": ["Sources/*/index.js", "Sources/*.js", "Sources/*"], | ||
| "vtk.js/*": ["./*"] | ||
| } | ||
| }, | ||
| "include": ["Sources/**/*.js", "Examples/**/*.js", "Utilities/**/*.js"] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,7 +108,6 @@ | |
| "build:esm": "npm run build:pre && cross-env BUILD_TARGET=esm vite build", | ||
| "build:umd": "npm run build:pre && cross-env BUILD_TARGET=umd vite build", | ||
| "build:release": "npm run lint && npm run build", | ||
| "release:create-packages": "node ./Utilities/ci/build-npm-package.js", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like an unrelated change. Was it meant to be removed?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, |
||
| "test": "vitest run", | ||
| "test:watch": "vitest", | ||
| "test:debug": "vitest run --reporter=verbose", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These recommendations seems user-preference. Should they be committed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are not installed by default. When developers open VS Code, they will receive a notification prompting them to install the recommended extensions.
https://code.visualstudio.com/docs/configure/extensions/extension-marketplace#_workspace-recommended-extensions