Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smithy Language Server integration #32

Merged
merged 13 commits into from
Jun 14, 2022
Merged

Smithy Language Server integration #32

merged 13 commits into from
Jun 14, 2022

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Apr 29, 2022

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.

.vscode/tasks.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@srchase srchase marked this pull request as ready for review June 9, 2022 23:06
@srchase srchase requested a review from a team as a code owner June 9, 2022 23:06
@srchase srchase changed the title [DRAFT] Smithy Language Server integration Smithy Language Server integration Jun 10, 2022
`npm install && npm run install-plugin`
* Open VS Code and add a `smithy-build.json` file to the root of your project,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? What happens when I look at a detached model file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in that case. Only if you have dependencies that need loaded. I'll update that.

@srchase srchase merged commit 90aa764 into main Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants