This change: - Improves finding & filtering of lexicon files - Adds a logger for better debugging - Unsubscribes from the workspace events when enableValidation is false - Removes duplication between extension.ts and language-server.ts
I'd noticed an issue where if the workspace root was containing the lexicon files, then it was validating the .vscode configuration directory, and also files that were absolutely not lexicon files.
A future improvement may be to add configurable filtering of known "non-lexicon" files, like package.json, tsconfig.json, etc.