Skip to content

lsp: Renaming variables doesn't updated shorthand property names correctly #28074

@jespertheend

Description

@jespertheend

Version: Deno 2.1.9

function foo({myParam}: {myParam: number}) {
    console.log(myParam);
}

const myParam = 3; // select myParam and hit F2 to rename
foo({myParam})

Normally when you rename myParam using the F2 key, VSCode turns the last line into:

foo({myParam: newParam})

But when you perform this same trick with Deno, you get:

foo({newParam})

Metadata

Metadata

Assignees

Labels

lsprelated to the language server

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions