-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handle module name whitespace (#1195)
* Fix false positive module name check diagnostic Discovered that modules with whitespace in their name could cause false positives in the module name check diagnostic. Root cause is in els_uri:path/1, since uri_string:normalize/1 return a percent encoded path, we need to percent decode that path to get the real path. * Shouldn't need to handle percent encoding for windows paths any more This change essentially reverts #1017 and adds a unit test * Use http_uri:decode/1 for older OTP releases
- Loading branch information
Showing
3 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
apps/els_lsp/priv/code_navigation/src/diagnostics module name check.erl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-module('diagnostics module name check'). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters