smithy-lang / smithy-vscode

A Visual Studio Code extension to provide syntax highlighting for the Smithy IDL.
https://marketplace.visualstudio.com/items?itemName=smithy.smithy-vscode-extension
Apache License 2.0
37 stars 14 forks source link

Smithy Language Server integration #32

Closed srchase closed 2 years ago

srchase commented 2 years ago

This PR integrates the extension to begin using the Smithy Language Server.

The contents of src/extension.ts and src/coursier/ are borrowed from Disney's Smithy VSCode Extension, which uses Coursier to bootstrap the Smithy Language Server and resolve model dependencies specified in a workspace's smithy-build.json.

The PR also adds integration tests which check the extension launches the Smithy Language Server successfully, resolves model dependencies, and uses the Smithy Language Server to provide diagnostics. For now, the integration tests do not un on CI since the Smithy Language Server is not yet being published.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.