OpenModelica / modelica-language-server

A VS Code language server extension for Modelica.
Other
5 stars 2 forks source link

Implement Diagnostics #1

Open AnHeuermann opened 10 months ago

AnHeuermann commented 10 months ago

Description

PublishDiagnostics Notification

The modelica-tree-sitter can find most semantic errors. Publish these diagnostics. The OpenModelica Compiler could be used to get additional diagnostics and specific error messages.

Desired Features

Implement generation of Diagnostics similar to https://github.com/microsoft/vscode-extension-samples/blob/main/lsp-sample/server/src/server.ts#L147C27-L182: