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

First indent in a line indents two times #26

Open
Ruhrpottpatriot opened this issue May 8, 2023 · 3 comments
Open

First indent in a line indents two times #26

Ruhrpottpatriot opened this issue May 8, 2023 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Ruhrpottpatriot
Copy link

Type: Bug

When the cursor is at the very beginning of the line, and TAB is pressed, then the indentation is two times the size of the intended indent. Every other keypress indents as intended.

Extension version: 0.2.2
VS Code version: Code 1.78.0 (252e5463d60e63238250799aef7375787f68b4ee, 2023-05-03T20:09:00.748Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 7 2700X Eight-Core Processor (16 x 3700)
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) 31.91GB (6.46GB free)
Process Argv .
Screen Reader no
VM 0%
@ttax00
Copy link
Owner

ttax00 commented May 14, 2023

Thanks for the report, could you clarify what you meant by other key presses that'd cause an indentation? Also if TAB did caused an indent, but it is not the right size, you may wanna check your VSCode tab-size options are set correctly. which can be found in the bottom right of the editor.

It'd also be helpful if you can provide an example :)

@ttax00 ttax00 added bug Something isn't working question Further information is requested labels May 14, 2023
@Ruhrpottpatriot
Copy link
Author

Ruhrpottpatriot commented May 15, 2023

If the cursor is at the very beginning of a line at column 0 and I press TAB then it indents two times. Assuming that the indent size is set to four spaces, then the resulting indent is eight spaces. However, if the cursor is, e.g. on column 12, and I press TAB, then the next indentation is 16, as it should be.

I already checked the indent size and if I disable code-yew-server, the buggy behaviour for when the cursor is at column 0 disappears.

@ttax00
Copy link
Owner

ttax00 commented Jun 10, 2023

Sorry for my belated reply, midterms has been taking priority for me.

Could you also send me the code snippet that trigger this behavior? Cause I have tested this on both simple, and nested html! {} macros, and indentation doesn't seem to be an issue with pressing TAB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants