Skip to content

Intellisense for import.meta.resolve() #61631

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

Open
thesoftwarephilosopher opened this issue Apr 29, 2025 · 1 comment
Open

Intellisense for import.meta.resolve() #61631

thesoftwarephilosopher opened this issue Apr 29, 2025 · 1 comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@thesoftwarephilosopher
Copy link

Would be useful to have import.meta.resolve(" begin an intellisense relative to the current directory with the same matches it would for regular import statements and expressions.

@thesoftwarephilosopher
Copy link
Author

And by same matches, I mean, including whatever global module augmentations are currently visible to TypeScript, such as:

declare module "*.css" {
  const text: string
  export default text
}

Ultimately I just want this to be both auto-completed and type-checked:

<link rel="stylesheet" href={import.meta.resolve("./mystyle.css")}/>

In production at thesoftwarephilosopher/immaculata.dev@64adcab

@mjbvz mjbvz transferred this issue from microsoft/vscode Apr 30, 2025
@mjbvz mjbvz removed their assignment Apr 30, 2025
@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature labels Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants