Skip to content
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

.module.scss.d.ts F12 does not direct to .scss. #60532

Open
CoachRDeveloper opened this issue Nov 18, 2024 · 0 comments
Open

.module.scss.d.ts F12 does not direct to .scss. #60532

CoachRDeveloper opened this issue Nov 18, 2024 · 0 comments

Comments

@CoachRDeveloper
Copy link

CoachRDeveloper commented Nov 18, 2024

Does this issue occur when all extensions are disabled?: Yes

Version: 1.95.1 (system setup)
Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6
Date: 2024-10-31T05:14:54.222Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.20348

Steps to Reproduce:

  1. Enable both javascript.preferGoToSourceDefinition and typescript.preferGoToSourceDefinition
  2. Have a vite project with sassDts enabled.
  3. Have a My.module.scss with a class .myClass
  4. Have a file My.js
  5. Have the line import styles from "./My.module.scss";
  6. sassDts generates a .d.ts file for the My.module.scss, called My.module.scss.d.ts
  7. In My.js, add styles.myClass
  8. Hit F12
  9. The definitions popup now opens the .d.ts by default, which is useless. It should've opened the .scss file (which it also suggests, but there's no way to make this the default).
@aeschli aeschli assigned mjbvz and unassigned aeschli Nov 18, 2024
@mjbvz mjbvz transferred this issue from microsoft/vscode Nov 18, 2024
@mjbvz mjbvz removed their assignment Nov 18, 2024
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

No branches or pull requests

3 participants