Skip to content

vscode.executeDocumentSymbolProvider seems to only work once (or at least only once in close succession) #2112

@eamodio

Description

@eamodio

Environment data

  • VS Code version: 1.25 or 1.26
  • Extension version (available under the Extensions sidebar): 2018.6.0
  • OS and version: Windows 10 x64
  • Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.15
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A

Originally reported here: https://github.com/DonJayamanne/pythonVSCode/issues/553
Another case of this here: gitkraken/vscode-gitlens#439

Actual behavior

Executing vscode.executeDocumentSymbolProvider only returns all the symbols on the first call, successive calls return 0 symbols (at least within a small window)

Expected behavior

Executing vscode.executeDocumentSymbolProvider should return all the symbols no matter how many times (concurrently or not) it is called

Steps to reproduce:

  1. Call vscode.executeDocumentSymbolProvider more than once in close succession (or observe the behavior seen in GitLens breaks Outline for Python gitkraken/vscode-gitlens#439)

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