Skip to content

Investigate Delayed Go-to-Definition Behavior in Editors #34783

@DanielRosenwasser

Description

@DanielRosenwasser

Today go-to-definition across files takes a minute in large projects when a file isn't currently opened in an editor.

// a.ts
import "./b.js" // <- jump to definition on this path

// b.ts
export function foo() {
}

It's not clear why this is the case when the language service is fully initialized and program loading has occured - the file path is already known (even when declaration maps are enabled). So it seems like the editor is taking a bit longer than it needs, or go-to-definition is being blocked by some other operation (which should potentially be considered lower-priority).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions