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

💡 RFC: Go To Definition (F12) should takes the respetive css file while path alias is active #977

Open
3 tasks
xkeshav opened this issue Nov 27, 2024 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@xkeshav
Copy link

xkeshav commented Nov 27, 2024

Background & Motivation

I have a .astro file and there import a css file and I am using path alias ; configured in tsconfig.json, now in VS code when we hover over the import line and click on Go To Definiton File ( f12 ) ; it opens node_modukles/astro/client.d.ts file where declare syntax of cdd is menationed

// CSS
declare module '*.css' {
	const css: string;
	export default css;
}

while I want that it should open the respective file.

Note: this works fine when give relative path but alias path dint\d not work, only for css file impot.

vs code 1.95
ubuntu 24.04
Astro V 4.16
Astro vs code extension v 2.15.4

Proposed Solution

Possible solutions

Alternatives considered

Risks, downsides, and/or tradeoffs

Open Questions

Detailed Design

No response

Help make it happen!

  • I am willing to submit a PR to implement this change.
  • I am willing to submit a PR to implement this change, but would need some guidance.
  • I am not willing to submit a PR to implement this change.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Nov 27, 2024
@recursivezero
Copy link

Hello any update on this? when can we do triage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants