Skip to content

lsp: loosing '#' prefix when renaming fields #4186

@nxcc

Description

@nxcc

What version of CUE are you using (cue version)?

$ cue version
cue version v0.16.0-0.dev.0.20251114120001-3a51f9d875f7+dirty

CUE language version v0.16.0

Go version go1.25.3
      -buildmode exe
       -compiler gc
  DefaultGODEBUG containermaxprocs=0,decoratemappings=0,tlssha1=1,updatemaxprocs=0,x509sha256skid=0
     CGO_ENABLED 1
          GOARCH amd64
            GOOS linux
         GOAMD64 v1
             vcs git
    vcs.revision 3a51f9d875f7f9160506e752c9f550e8775b2e0a
        vcs.time 2025-11-14T12:00:01Z
    vcs.modified true

What did you do?

#a: 1
v:  #a

put the cursor on "#a", pressed F2 (vscode), rename dialog opens and just shows "a", changed to "b", pressed enter

What did you expect to see?

all instances of "#a" to be renamed to "#b"

What did you see instead?

all instances of "#a" are renamed to "b"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions