Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont complete for illegal file module names #844

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Conversation

zth
Copy link
Collaborator

@zth zth commented Nov 11, 2023

We handled namespace file modules before, but other "exotic" file modules could still appear (example: SomeTest.test.res) which can't be used anyway. This filters anything with illegal characters in the name, for file modules specifically.

@zth zth requested a review from cristianoc November 11, 2023 20:39
@@ -216,3 +216,10 @@ let rec lastElements list =
let lowercaseFirstChar s =
if String.length s = 0 then s
else String.mapi (fun i c -> if i = 0 then Char.lowercase_ascii c else c) s

let hasUnallowedChars s =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unclear this is about file names by just looking at the code.

@zth zth force-pushed the filter-out-illegal-names branch from 8fa57d9 to 7619c0c Compare November 13, 2023 07:55
@zth zth merged commit 4731805 into master Nov 13, 2023
5 checks passed
@zth zth deleted the filter-out-illegal-names branch November 13, 2023 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants