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

Allow smithy-build to not be in root directory #92

Open parkerbjur opened 1 week ago

parkerbjur commented 1 week ago

Not sure if this is already available. but there is no way to configure the extension to look for the smithy-build.json file in any other location than the root directory. This leads to the inability to have a smithy folder in a project where you place the models and the smithy-build.json file. This structure is what all of the smithy tutorials and guides recommend so I thought I was doing something wrong when it wasn't working.

I could be wrong about this, please let me know.

If this is the case, I think some documentation should be added that makes this apparent.

milesziemer commented 3 days ago

You should be able to specify a root path using the vscode extension config option smithyLsp.rootPath. But yea it isn't well documented right now.

Really we need to have the extension look for smithy-build.json files from the working directory, though. That way you wouldn't have to specify the path yourself.