Rename fails if cursor is at the end of the word
-
Bug description : If the cursor is at the end of the word, regardless of the word is selected or not, rename fails.
-
Observed behaviour : Rename attempt fails. A pop-up with "No result." shows up. The following message shows up in the Output window of Haskero:
[Error - 4:48:38 PM] Request textDocument/rename failed.
Message: Request textDocument/rename failed with message: Cannot read property 'uri' of null
Code: -32603
-
Expected behaviour : Find instances of the function/label and rename them.
-
OS: windows 10
-
Plugin (ghc, stack, intero and haskero) version and VSCode version used :
-
Haskero 1.3.1
-
intero 0.1.24
-
ghc 8.2.2
-
stack 1.6.3
-
vscode 1.19.1
-
Steps to reproduce:
-
Press F2; Rename box shows up.
-
Rename the variable, press Enter.
-
File a bug report (optional).
- If the issue is hard to repeat on an empty haskell project, a link to a repository containing a sample repeating the issue