pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
238 stars 37 forks source link

Rename provider #141

Closed onelivesleft closed 4 years ago

onelivesleft commented 4 years ago

Adds a rename provider, which allows for IDE-like rename refactoring.

This does not work well currently (nim v1.0.4) because of a bug in nimsuggest: it fails to find the symbol inside template. However, this is fixed in the next nim release.

See: https://github.com/nim-lang/Nim/commit/ff5ef95414e48714efd0ce2b3b694de1017032dc

It's possible nimsuggest could fail to find symbols in other situations, but the best way to get it up to scratch is to start using it, find it's problems, and fix them.

kosz78 commented 4 years ago

@onelivesleft, could You please resolve conflicts?

onelivesleft commented 4 years ago

Done.