Skip to content

Find better place to put Code Lens #407

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

Closed
bonaluo opened this issue Sep 2, 2019 · 2 comments
Closed

Find better place to put Code Lens #407

bonaluo opened this issue Sep 2, 2019 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@bonaluo
Copy link

bonaluo commented Sep 2, 2019

Issue Type: Bug

Display error
image

Extension version: 0.15.2
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 x 2195)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: unavailable_off
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 11.91GB (6.72GB free)
Process Argv
Screen Reader no
VM 0%
@jdneo
Copy link
Member

jdneo commented Sep 3, 2019

Since it's hard to determine where the Code Lens should be placed for different language, our implementation is just put it for the last line of the code. So as a workaround, you can just add an empty line to your answer.

BTW, an empty line at EOF is recommended actually: https://stackoverflow.com/a/2287990/11620529

@jdneo jdneo added the enhancement New feature or request label Sep 3, 2019
@jdneo jdneo changed the title Display error Find better place to put Code Lens Sep 3, 2019
@jdneo jdneo added bug Something isn't working and removed enhancement New feature or request labels Sep 27, 2019
@jdneo jdneo added this to the 0.15.5 milestone Sep 27, 2019
@jdneo
Copy link
Member

jdneo commented Sep 27, 2019

Resolved by #426

The CodeLens will be placed above the tag @lc code=end

@jdneo jdneo closed this as completed Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants