Skip to content

Vscode extension disallowing collapsing #171

@jgarcdev

Description

@jgarcdev

Describe the bug

With the V-analyzer on, I cannot do the scope collapsing for functions, structs, etc. The down arrows normally present disappear, but once I turn it off, they return.

Expected Behavior

A down-arrow visible allowing to collapse the "range".

Image

Current Behavior

No down-arrow visible.

Image

Reproduction Steps

Open a V file with the V-analyzer on.
Add sample code:

fn main() {
  println("Hello")
}

Notice unable to collapse.

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

|V full version      |V 0.4.11 c49b9da04e8d21735f5fc060b1c7396603613087.a5f9899
|:-------------------|:-------------------
|OS                  |linux, Ubuntu 22.04.5 LTS (WSL 2)
|Processor           |16 cpus, 64bit, little endian, AMD Ryzen 7 7730U with Radeon Graphics
|Memory              |2.49GB/7.42GB
|                    |
|V executable        |/opt/v/v
|V last modified time|2025-08-01 03:57:43
|                    |
|V home dir          |OK, value: /opt/v
|VMODULES            |OK, value: /home/aruel/.vmodules
|VTMP                |OK, value: /tmp/v_1000
|Current working dir |OK, value: /home/aruel
|                    |
|Git version         |git version 2.34.1
|V git status        |weekly.2025.31-dirty
|.git/config present |true
|                    |
|cc version          |cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
|gcc version         |gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
|clang version       |N/A
|tcc version         |tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
|tcc git status      |thirdparty-linux-amd64 696c1d84
|emcc version        |N/A
|glibc version       |ldd (Ubuntu GLIBC 2.35-0ubuntu3.10) 2.35

Editor name

Vscode

v-analyzer Version

0.0.3-beta.1.a796f25

VS Code Extension Version

0.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions