code-d icon indicating copy to clipboard operation
code-d copied to clipboard

detach workspace-d initialization from activePlugin call

Open WebFreak001 opened this issue 9 years ago • 0 comments

workspace-d should only initialize when there is either

  • [ ] a dub.json/dub.sdl in the project root (or package.json looking like dub package)
  • [ ] a command ran requiring workspace-d
  • [ ] settings contain fsworkspace additional import paths & project is not a dub project / dub is disabled

basically just lazy load it when its required or the open folder is guaranteed a dub project. Initialization of single files and non-dub projects is quick anyway.

Some code-d commands not using workspace-d have long startup times otherwise

WebFreak001 avatar Oct 11 '16 12:10 WebFreak001