Minor cleanup#72
Conversation
|
Isn't Number 4 looks like a pretty obvious typo to me, deleting it seems the wrong approach. Although, it would be worth to properly inverstigate why this typo doesn't break more. Anyways I think the necessity to do |
That's what I mean, it modifies in-place and only used as such.
Agree. (and also worth putting it in the documentation. Alternatively if e.g. Windows is the culprit, then do the replacement on Windows only suffices (to avoid surprising behavior I guess.) |
|
Thank you for the PR! I've now incorporated these in #88 |
I just come across some parts of the code that can be improved:
urisToFilenamesandFilenamesToUriare used nowhere, so I just delete it and declare the function works by mutating the object.projectsBasePathup to deduplicate some code.readerandwriteronly needonMessage, onError, onCloseandsendrespectively.!message.method === 'textDocument/definition'evaluates as(!message.method) === 'textDocument/definition', the left hand side is always a boolean and never equal to a string. So that line is in fact useless.That said, I haven't tested these locally.