aws / language-servers

AWS related Language Servers
Apache License 2.0
17 stars 15 forks source link

Prevent runtime from crashing if FQN worker file is missing #341

Closed makenneth closed 1 week ago

makenneth commented 1 week ago

Problem

(Unsure if without this, it actually crashes....) FQN is actually not required for Q chat to work, so we should not crash the runtime if the file doesn't exist.

Solution

Unfortunately, I had about 30min of time for this so this is hacky, but tried to keep it somewhat flexible. If @aws/lsp-fqn is actually not being released, I think this should be okay. I am writing a proposal for a worker feature anyway, so that should include error handling.

License

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