Skip to content

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

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
// @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!

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Symbol NavigationRelates to go-to-definition, find-all-references, highlighting/occurrences.Fix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions