# lsp: Persist vtsls update imports on rename choice \(\#45105\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0c304c0e1b7d72ce1e81242ba0df2ab99754088d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0c304c0e1b7d72ce1e81242ba0df2ab99754088d

Requested commit: 0c304c0e1b7d72ce1e81242ba0df2ab99754088d

Commit: 0c304c0e1b7d72ce1e81242ba0df2ab99754088d

Tree: 06aa3b3f2fdc8af2e2a3cda59476c392052461bb

Author: Gaauwe Rombouts

Committer: GitHub

## Message

```
lsp: Persist vtsls update imports on rename choice (#45105)

Closes #35930

When a TypeScript file is renamed or moved, vtsls can automatically
update the imports in other files. It pops up a message with the option
to always automatically update imports. This choice would previously
only be remembered for the current session and would pop up again after
a restart.

Now we persist that choice to the vtsls LSP settings in Zed, so that it
remembers across editor sessions.

Release Notes:

- When renaming a TypeScript or JavaScript file, the selected option to
automatically update imports will now be remembered across editor
sessions.
```

## Parents

- [1b24b442c6d44437a896b8537d0200c3716ef319](https://git.cafe/gitcafe/zed/commit/1b24b442c6d44437a896b8537d0200c3716ef319?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0c304c0e1b7d72ce1e81242ba0df2ab99754088d?format=markdown)
