vlang / v-analyzer

The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more.
MIT License
99 stars 11 forks source link

String Methods are not displayed #12

Closed mamoss-oss closed 5 months ago

mamoss-oss commented 7 months ago

Describe the bug

Builtin methods are not shown for strings.

Screenshot 2024-01-20 165414

Expected Behavior

See the full list of builtin string methods.

Current Behavior

Only a single method str() is displayed.

Module: stubs pub fn (a Any) str() string

Reproduction Steps

Write any string and access its methods. Review displayed methods.

module main

fn main() {
    _ := ''.
}

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

Linux V 0.4.4 9092d7f

Editor name

Same behavior in Helix v23.10 and VS Code

v-analyzer Version

v-analyzer: 0.0.4-beta.1.2d5d12e

VS Code Extension Version

v0.0.4