Skip to content

Create index for methods #2755

@shalom938

Description

@shalom938

there are two services on LanguageService
findWorkspaceUrisForCodeObjectIdsForErrorStackTrace
findWorkspaceUrisForMethodCodeObjectIds

they return uri of the file where the method is, with or without line number.
both these services query the PSI, it can be a large query in large projects.
we can create a file based index where the key is method id and value is line number. these services can query the index and get the corresponding VirtualFile instead of using its url to find it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions