Use single diagnostic collection for js and ts
Refactors the ts DiagnosticManager to be shared between language providers. To do this: - Make sure we always maintain a complete list of diagnostics in the extension. But only update the vscode.DiagnosticCollection with the ones we care about - Add the concept of a diagnostic language. This is needed now that we only have a single collection. Use the diagnostic language to determine which diagnostics to filter out using `typescript.validate` and `javascript.validate` - Add a diagnosticSetting class to track settings for different languages (js and ts) Fixes #54359
Showing
想要评论请 注册 或 登录