File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4141function Setup :enrich_config (config )
4242 config = vim .deepcopy (config )
4343
44+ -- skip enriching if already enriched
45+ if config .mainClass and config .projectName and config .modulePaths and config .classPaths and config .javaExec then
46+ return config
47+ end
48+
4449 local main = config .mainClass
45- local project = config .projectName
50+ -- when we set it to empty string, it will create a project with some random
51+ -- string as name
52+ local project = config .projectName or ' '
4653
4754 assert (main , ' To enrich the config, mainClass should already be present' )
48- assert (project , ' To enrich the config, projectName should already be present' )
4955
5056 if config .request == ' launch' then
5157 self .java_debug :build_workspace (main , project , nil , false )
You can’t perform that action at this time.
0 commit comments