palantir/language-servers

Figure out when first compilation and publishDiagnostics should happen

natgabb opened this issue · 0 comments

Right now it is triggered when the client sends any of these:

  • didChangeWatchedFiles
  • didOpen
  • didChange
  • didClose
  • didSave

But is it weird behavior that you don't get compilation errors until you do one of these? For example, you should be able to get workspace symbols without opening a file. What is the expected workflow from the client after initializing? If it is expected that they would send a didChangeWatchedFiles at the start then it wouldn't be a problem.