microsoft/TypeScript

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

CoachRDeveloper opened this issue · 0 comments

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).