Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Debug console autocompletion not working #1000

Closed
DonJayamanne opened this issue Nov 9, 2018 · 3 comments
Closed

Debug console autocompletion not working #1000

DonJayamanne opened this issue Nov 9, 2018 · 3 comments

Comments

@DonJayamanne
Copy link
Contributor

From @darrickyee on November 9, 2018 16:21

Environment data

  • VS Code version: 1.28.2
  • Extension version (available under the Extensions sidebar): 2018.10.0
  • OS and version: Windows 7
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A

Actual behavior

Autocompletion in the debug console console doesn't seem to work on anything except the first name typed.

Autocomplete works when an object is the first thing typed:
debug1

No autocompletion if the same object is on the other side of an assignment, passed as a parameter, or even just enclosed in brackets:
debug2

Is this the intended behavior?

Copied from original issue: microsoft/vscode-python#3282

@karthiknadig
Copy link
Member

I don't think this is a regression. The completions were always pretty simple (i.e., the first case). I don't think it ever handled the second case.
/cc @fabioz

@fabioz
Copy link
Contributor

fabioz commented Dec 3, 2018

I'll investigate it here (i.e.: it seems to work for me in plain pydev/pydevd, so, it may be some integration issue).

@fabioz
Copy link
Contributor

fabioz commented Dec 18, 2018

The problem is that the completion command only expects the token for the completion and not the full text entered (that part was expected to be handled by the IDE)...

I'm in the process of changing the related message to use the DAP json format so that it has the full info on the text/column so that it can do what's needed properly.

As a note, I'm doing it on top of the changes in the pull request: #1070 (so, please don't rebase when merging).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants