.module.scss.d.ts F12 does not direct to .scss.
CoachRDeveloper opened this issue · 0 comments
CoachRDeveloper commented
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:
- Enable both javascript.preferGoToSourceDefinition and typescript.preferGoToSourceDefinition
- Have a vite project with sassDts enabled.
- Have a My.module.scss with a class .myClass
- Have a file My.js
- Have the line
import styles from "./My.module.scss";
- sassDts generates a .d.ts file for the My.module.scss, called My.module.scss.d.ts
- In My.js, add
styles.myClass
- Hit F12
- 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).