Skip to content

[JAVASCRIPT/GO] Empty or entirely-whitespace lines break indentation markers #33404

@charbelnicolas

Description

@charbelnicolas

Summary

Indentation lines are incomplete, they won't envelop the whole scope

Description

Steps to reproduce:
Open any javascript file with a function that has at least an empty line in between the last line of code and a closing curly brace }

Expected Behavior:
The indentation marker should be shown on empty lines too enveloping the whole scope.

Actual Behavior:
The indentation marker is missing at the end. It won't close off completely.

Image
Image

Zed Version and System Specs

Zed: v0.192.5 (Zed)
OS: Linux Wayland arch unknown
Memory: 31 GiB
Architecture: x86_64
GPU: Intel(R) Graphics (RPL-S) || Intel open-source Mesa driver || Mesa 25.1.4-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:editorFeedback for code editing, formatting, editor iterations, etcstate:needs triagetriage is not complete: no `area:*` label, or no `priority:*`/`frequency:*` for Bugs/Crashes

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions