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

x/tools/gopls: bad quick fix title for go mod tidy suggestion #40659

Closed
burhan opened this issue Aug 9, 2020 · 1 comment
Closed

x/tools/gopls: bad quick fix title for go mod tidy suggestion #40659

burhan opened this issue Aug 9, 2020 · 1 comment
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@burhan
Copy link

burhan commented Aug 9, 2020

Issue Type: Bug

Once you add a library that is not in go.mod, you get a helpful hint. However, the quick fix shortcut shows %s instead of the path to be added (even if you highlight the offending line).

image

Now the popup:

image

Extension version: 0.16.1
VS Code version: Code - Insiders 1.48.0-insider (2277c8e2a3e1cc630a6397301ba54a1dccd8a60d, 2020-08-07T11:32:09.993Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.84GB (0.60GB free)
Process Argv
Screen Reader no
VM 10%
@stamblerre stamblerre transferred this issue from golang/vscode-go Aug 9, 2020
@stamblerre stamblerre changed the title %s instead of name of the library to be added x/tools/gopls: bad quick fix title for go mod tidy suggestion Aug 9, 2020
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Aug 9, 2020
@gopherbot gopherbot added this to the Unreleased milestone Aug 9, 2020
@stamblerre stamblerre modified the milestones: Unreleased, gopls/v.0.4.5 Aug 9, 2020
@gopherbot
Copy link

Change https://golang.org/cl/248037 mentions this issue: internal/lsp: fix bad go mod tidy quick fix title

@golang golang locked and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants