feat: MDA Language Server with diagnostics and VS Code extension (Phase 1) - #43
Open
damianh wants to merge 1 commit into
Open
feat: MDA Language Server with diagnostics and VS Code extension (Phase 1)#43damianh wants to merge 1 commit into
damianh wants to merge 1 commit into
Conversation
…(Phase 1) Add Atoll.Lsp LSP server providing real-time diagnostics for .mda files: - YAML syntax error detection in frontmatter - Unknown component validation (directive and tag syntax) - Missing required frontmatter field reporting - Document parsing with frontmatter, directive, tag, and heading extraction - Project context provider for assembly-based component/schema discovery - TextDocumentSync handler for open/change/close/save lifecycle Add Atoll.Lsp.Vscode extension: - TextMate grammar for .mda syntax highlighting - Language client launching LSP server via stdio - Language configuration for brackets, comments, auto-closing Add Atoll.Lsp.Tests with 36 tests covering: - LineMap offset/position mapping - MdaDocumentParser frontmatter, directive, tag, heading extraction - All three diagnostic rules (positive and negative cases) Wire both projects into Atoll.slnx and add OmniSharp.Extensions.LanguageServer v0.19.9 to Directory.Packages.props.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Atoll.Lsp— an LSP server for.mdafiles using OmniSharp.Extensions.LanguageServer v0.19.9, providing real-time diagnostics (YAML syntax errors, unknown components, missing required frontmatter fields), document parsing, and project context discovery via assembly scanningAtoll.Lsp.Vscode— a VS Code extension with TextMate grammar for.mdasyntax highlighting and a language client that launches the LSP server via stdioAtoll.Lsp.Tests— 36 xUnit v3 tests covering LineMap, MdaDocumentParser, and all three diagnostic rulesWhat's included
src/Atoll.Lsp/— LSP ServerMdaDocumentParserextracts frontmatter, directive usages (:::name{}), tag usages (<PascalCase>), and headings using Atoll'sFrontmatterParser+ regexYamlSyntaxErrorRule,UnknownComponentRule,MissingRequiredFrontmatterRuleProjectContextProviderloads the user's compiled assembly to discover registered components and collection schemasTextDocumentSyncHandlerfor document lifecycle (open/change/close/save) with debounced re-analysissrc/Atoll.Lsp.Vscode/— VS Code Extensiontests/Atoll.Lsp.Tests/— TestsLineMapTests— offset to position mappingMdaDocumentParserTests— frontmatter, directives, tags, headings, code block skippingUnknownComponentRuleTests,YamlSyntaxErrorRuleTests,MissingRequiredFrontmatterRuleTests— positive and negative casesInfrastructure
Atoll.slnx— both new projects addedDirectory.Packages.props—OmniSharp.Extensions.LanguageServerv0.19.9 addedVerification
dotnet build Atoll.slnx— 0 warnings, 0 errorsdotnet test --project tests/Atoll.Lsp.Tests/— 36/36 pass