Respect existing capitalization in defmodule
completion
#786
Labels
completions
Enhancements to Lexical's autocompleter
enhancement
New feature or request
good first issue
Good for newcomers
When completing
defmodule
, Lexical infers the default module name from the path and file name. For instance:How you capitalize acronyms in modules is a point of preference. For instance,
lib/my_app/http.ex
might containMyApp.Http
orMyApp.HTTP
; both are equally valid. Lexical will always generate the camel-case version, which is fine.However, if you've chosen uppercase and have an existing module
MyApp.HTTP
and then completedefmodule
atlib/my_app/http/request.ex
, the default module will beMyApp.Http.Request
.It should be possible for Lexical to infer that you want
MyApp.HTTP.Request
based on the existence ofMyApp.HTTP
.The text was updated successfully, but these errors were encountered: