Skip to content

Outline: Navigation to some attributes jumps to the start of the file #2530

Description

@derekwallace
  • VS Code version: 1.28 insiders
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: Win10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6 python.org

Simple class below.

# comment

class Api:
   myclassattr   = 1

   def __init__(self, oD):
      self.oD  = oD
      self.dA  = {}
      x=1

   def _addUpload_UploadId(self):
      sMd5           = "X"
      self.dA[sMd5]  = "Y"

The outline thinks the self.dA is a class attribute.

image

Doublic click on dA and it jumps to line 1 of the file
image

Activity

  1. brettcannon commented on Sep 10, 2018

    @brettcannon
    Member

    Can you please verify, Eric Snow (@ericsnowcurrently) ?

  2. ericsnowcurrently commented on Sep 18, 2018

    @ericsnowcurrently

    Thanks for letting us know about this, derekwallace. I can reproduce the problem (using the new language server, but not under jedi). We'll look into it.

  3. luabud commented on Sep 11, 2019

    @luabud
    Member
  4. locked as resolved and limited conversation to collaborators on Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions