Skip to content

Go-to-definition doesn't work when a file exists but is not a module #41861

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

Closed
DanielRosenwasser opened this issue Dec 7, 2020 · 0 comments · Fixed by #42539
Closed

Go-to-definition doesn't work when a file exists but is not a module #41861

DanielRosenwasser opened this issue Dec 7, 2020 · 0 comments · Fixed by #42539
Assignees
Labels
Bug A bug in TypeScript Domain: Symbol Navigation Relates to go-to-definition, find-all-references, highlighting/occurrences. Fix Available A PR has been opened for this issue

Comments

@DanielRosenwasser
Copy link
Member

DanielRosenwasser commented Dec 7, 2020

// @filename: scriptThing.ts
console.log("woooo side effects")

// @filename: stylez.css
div {
  color: magenta;
}

// @filename: moduleThing.ts

// not a module, but we should let you jump to it.
import /*1*/"./scriptThing";

// not JS/TS, but if we can, you should be able to jump to it.
import /*2*/"./stylez.css";

Go to definition on /*1*/ and /*2*/ should work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: Symbol Navigation Relates to go-to-definition, find-all-references, highlighting/occurrences. Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants