-
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Labels
completionsEnhancements to Lexical's autocompleterEnhancements to Lexical's autocompleterenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
When completing defmodule
, Lexical infers the default module name from the path and file name. For instance:
# lib/my_app/foo/bar.ex
defmodule MyApp.Foo.Bar do
|
end
How you capitalize acronyms in modules is a point of preference. For instance, lib/my_app/http.ex
might contain MyApp.Http
or MyApp.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 complete defmodule
at lib/my_app/http/request.ex
, the default module will be MyApp.Http.Request
.
It should be possible for Lexical to infer that you want MyApp.HTTP.Request
based on the existence of MyApp.HTTP
.
gh-tsc
Metadata
Metadata
Assignees
Labels
completionsEnhancements to Lexical's autocompleterEnhancements to Lexical's autocompleterenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers