Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't tab-complete suggestions #182686

Closed
Tracked by #189320
jkoritzinsky opened this issue May 16, 2023 · 14 comments
Closed
Tracked by #189320

Can't tab-complete suggestions #182686

jkoritzinsky opened this issue May 16, 2023 · 14 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension inline-completions
Milestone

Comments

@jkoritzinsky
Copy link
Member

Type: Bug

When I get GitHub Copilot suggestions (or suggestions from other extensions), I can't tab complete the suggestions. When pressing Tab, a tab character is emitted instead of the suggested completion.

VS Code version: Code 1.78.2 (b3e4e68, 2023-05-10T14:39:26.248Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Xeon(R) W-2235 CPU @ 3.80GHz (12 x 3792)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 63.59GB (24.95GB free)
Process Argv . --crash-reporter-id bd57884a-402c-49ef-ac40-f268ff95755d
Screen Reader no
VM 0%
Extensions (71)
Extension Author (truncated) Version
github-markdown-preview bie 0.3.0
markdown-checkbox bie 0.4.0
markdown-emoji bie 0.3.0
markdown-footnotes bie 0.1.1
markdown-mermaid bie 1.18.1
markdown-preview-github-styles bie 2.0.2
markdown-yaml-preamble bie 0.1.0
vscode-mocha Com 0.1.1
doxdocgen csc 1.4.0
vscode-markdownlint Dav 0.50.0
vscode-eslint dba 2.4.0
docs-article-templates doc 1.0.0
docs-authoring-pack doc 1.0.0
docs-build doc 0.4.0
docs-images doc 1.0.0
docs-markdown doc 1.0.1
docs-preview doc 1.0.1
docs-scaffolding doc 0.0.16
docs-yaml doc 1.0.0
xml Dot 2.5.1
gitlens eam 13.6.0
EditorConfig Edi 0.16.4
html-preview-vscode geo 0.2.5
copilot Git 1.86.82
vscode-pull-request-github Git 0.64.0
vscode-guid hea 1.7.0
better-cpp-syntax jef 1.17.2
dotnet-runtime-test-assistant jko 0.0.2
cmake-language-support-vscode jos 0.0.9
vscode-github-actions me- 3.0.1
vscode-antlr4 mik 2.3.1
azure-pipelines ms- 1.208.0
vscode-docker ms- 1.25.0
csharp ms- 1.25.7
vscode-dotnet-runtime ms- 1.6.0
isort ms- 2022.8.0
python ms- 2023.8.0
vscode-pylance ms- 2023.5.20
jupyter ms- 2023.4.1011241018
jupyter-keymap ms- 1.1.0
jupyter-renderers ms- 1.0.15
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
remote-containers ms- 0.292.0
remote-ssh ms- 0.102.0
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.78.5
vscode-remote-extensionpack ms- 0.24.0
azure-account ms- 0.11.4
cmake-tools ms- 1.14.31
cpptools ms- 1.15.4
cpptools-extension-pack ms- 1.3.0
hexeditor ms- 1.9.11
live-server ms- 0.4.8
powershell ms- 2023.5.0
remote-explorer ms- 0.4.0
remote-server ms- 1.1.0
vs-keybindings ms- 0.2.1
vscode-selfhost-test-provider ms- 0.3.15
vsliveshare ms- 1.0.5864
vsliveshare-pack ms- 0.4.0
uuid-generator net 0.0.5
vscode-xml red 0.25.0
vscode-yaml red 1.12.2
unique-window-colors stu 1.0.51
ninja sur 0.0.1
graphviz-interactive-preview tin 0.3.5
msbuild-project-tools tin 0.4.9
cmake twx 0.0.17
vscode-lldb vad 1.9.1
vscode-icons vsc 12.4.0

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
showlangstatbar:30737416
azdwalk:30721579
pythonms35:30701012
pythonfmttext:30731395
fixshowwlkth:30730052
hidesbindicator:30730055
pythongtdpathcf:30739705

@jrieken
Copy link
Member

jrieken commented May 17, 2023

/needsMoreInfo

/gifPlease

This issue lacks

  • mentioning of the language and extension providing completions
  • copy-paste friendly source code samples

@vscodenpa
Copy link

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

@vscodenpa vscodenpa added ~info-needed Issue requires more information from poster (with bot comment) info-needed Issue requires more information from poster labels May 17, 2023
@vscodenpa
Copy link

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

@vscodenpa vscodenpa removed the ~info-needed Issue requires more information from poster (with bot comment) label May 17, 2023
@jkoritzinsky
Copy link
Member Author

Here's a basic screencap of the issue:

Recording 2023-05-17 at 09 56 09

@jkoritzinsky
Copy link
Member Author

I'm hitting this issue in C# and Markdown. The suggestions come from GitHub Copilot.

This occurs for any Copilot suggestion on my machine.

@jrieken jrieken assigned hediet and unassigned jrieken May 17, 2023
@jrieken jrieken removed the info-needed Issue requires more information from poster label May 17, 2023
@hediet hediet added bug Issue identified by VS Code Team member as probable bug inline-completions labels May 22, 2023
@hediet hediet added this to the May 2023 milestone May 22, 2023
@hediet
Copy link
Member

hediet commented May 22, 2023

Can you try with default settings and default keybindings and just the copilot extension enabled?

@Sukaato
Copy link

Sukaato commented May 25, 2023

I have the same problem with autocomplete in Typescript, but I don't use Copilot or anything.

I have the default shortcut (CTRL + SPACE)

Version: 1.78.2 (user setup)
Commit: b3e4e68
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes

@hediet hediet modified the milestones: May 2023, June 2023 May 26, 2023
@Alex-EEE
Copy link

Hi same problem in Python on macOS. If the suggestion widget is showing, then completing inline suggestions is actually greyed out, even when you hover it. So it's not an issue with keybindings WHATSOEVER. Somehow the suggestions widget is just flat out disabling inline suggestions.
image

@Sukaato
Copy link

Sukaato commented Jun 3, 2023

After a few tests, the bug also appears in version 1.77.3.

On Windows 11:
Version: 1.77.3 (user setup)
Commit: 704ed70
Date: 2023-04-12T09:16:02.548Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes

On Laptop in Windows 10, the shortcut is functional:
Version: 1.77.3 (user setup)
Commit: 704ed70
Date: 2023-04-12T09:16:02.548Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: Yes

On Laptop in Windows 11, the shortcut is functional:
Version: 1.78.2 (user setup)
Commit: b3e4e68
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: Yes

And after an update on my version in Windows 10, the bug doesn't appear.

I conclude that the bug occurs on Windows 11 when the computer isn't a laptop.

@Sukaato
Copy link

Sukaato commented Jun 3, 2023

@jkoritzinsky @jrieken @hediet @Xenxia

After another test, I discovered that the shortcut was used by Peek in PowerToys.

@jkoritzinsky maybe you use PowerToys too.

@hediet hediet modified the milestones: June 2023, July 2023 Jun 27, 2023
@jkoritzinsky
Copy link
Member Author

I figured out that in my case, this was a bad extension interaction between Copilot and learn-markdown. I'll leave the issue open as there are other reports in this issue. Feel free to close in the future.

@Alex-EEE
Copy link

Any tips to root out which extension is having the bad interaction @jkoritzinsky ? I don't have learn-markdown, but I do have a bunch of extensions, so guessing that's the issue

@jkoritzinsky
Copy link
Member Author

Honestly I just went through my extension list and tried disabling the first markdown-related extension (as tab-complete was working in other language modes for me).

@hediet
Copy link
Member

hediet commented Jun 28, 2023

Closing because this seems to be an extension issue.

@hediet hediet closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
@hediet hediet removed the bug Issue identified by VS Code Team member as probable bug label Jun 28, 2023
@hediet hediet added the *caused-by-extension Issue identified to be caused by an extension label Jun 28, 2023
@beto811 beto811 mentioned this issue Jul 31, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension inline-completions
Projects
None yet
Development

No branches or pull requests

6 participants