smithy-lang / smithy-language-server

A Language Server Protocol implementation for the Smithy IDL
https://smithy.io
Apache License 2.0
33 stars 19 forks source link

More gracefully handle unknown traits #74

Closed milesziemer closed 2 years ago

milesziemer commented 2 years ago

Issue #, if available: #67 Description of changes: This commit allows hover and jump to definition to continue functioning when there are unknown traits in the model, and stops crashes when hovering when there are unknown traits in the model. Additionally, when hovering over shapes that use an unknown trait, an error message will be displayed in the hover content. Tests were also added to verify that:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.