question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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: https://github.com/eamodio/vscode-gitlens/issues/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 https://github.com/eamodio/vscode-gitlens/issues/439)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
brettcannoncommented, Aug 14, 2018

Duplicate of #2334

0reactions
brettcannoncommented, Aug 20, 2018

@sandipb feel free to open a new issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitLens breaks Outline for Python · Issue #439 - GitHub
vscode.executeDocumentSymbolProvider seems to only work once (or at least only once in close succession) microsoft/vscode-python#2112.
Read more >
Built-in Commands | Visual Studio Code Extension API
The Keyboard Shortcuts editor lists all commands built into VS Code or contributed by extensions, along with their keybindings and visibility when clauses....
Read more >
How to not close the editor window when closing the last tab ...
Simple test: in terminal type "code myfile", this will open code with one tab open. Click the 'x' on the tab to close...
Read more >
How to Always Open Files in a New Tab - VSCode.one
So one day while you're hacking away you realize that VS Code just doesn't want to let you keep your file tabs open....
Read more >
Visual Studio Code Extensions to Improve Your Productivity
Learn about 10 helpful VS Code extensions. These VSCode extensions could make you more productive as a developer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found