cucumber / monaco

Configure Monaco editor to use cucumber-language-service
MIT License
16 stars 4 forks source link

Downgrade severity level of undefined steps to warning #127

Closed kieran-ryan closed 5 months ago

kieran-ryan commented 5 months ago

πŸ€” What's changed?

⚑️ What's your motivation?

The Cucumber Language Service uses Language Server Protocol (LSP) diagnostic severity levels. These enums differ from the same diagnostic severity levels represented by the Monaco editor API.

Assumption is that while integrating the Language Service with the Monaco editor, it was observed that errors were being classified as 'hint' and warnings as 'info'; and thus a mitigation was to cast all severity levels to Monaco 'error' severity levels.

This change rectifies the issue by mapping intended severity levels of the language service (LSP levels) to those of the Monaco editor API.

Improves distinction between gherkin syntax errors and undefined step warnings.

🏷️ What kind of change is this?

πŸ“‹ Checklist: