Closed johnsoncodehk closed 3 months ago
Close #43, implement connection.languages.diagnostics.onWorkspace of language server.
connection.languages.diagnostics.onWorkspace
const plugin: LanguageServicePlugin = { capabilities: { diagnosticProvider: { workspaceDiagnostics: true, }, }, create(context): LanguageServicePluginInstance<Provide> { return { provideWorkspaceDiagnostics() { return [{ uri: 'file://a.css', items: [{ severity: 2, source: 'html1', message: 'Only one style tag is allowed.', // ... }] }]; } }; }, }
Close #43, implement
connection.languages.diagnostics.onWorkspace
of language server.LS Plugin Code Sample