Skip to content

Support initializer calls as GotoTargets #1010

@Gankra

Description

@Gankra
class MyClass:
    def __init__(self, val):
        self.val = val

x = MyClass(val)
    ^^^^^^^

Currently all of these symbols are treated as references to MyClass instead of their concrete initializer invocation.

This would empower:

  • goto-definition
  • goto-declaration
  • goto-type-definition
  • docstrings

Metadata

Metadata

Assignees

Labels

serverRelated to the LSP server

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions