Fails to handle explicit providers
Closed this issue · 1 comments
iwahbe commented
What happened?
- Attempts to find the provider for
pulumi
, erroring when it cannot be found. - After
pulumi:providers:aws
is typed out, correctly recognizes that this is in theaws
package but sayspulumi:providers:aws
does not exist inaws
. - Autocomplete doesn't work on the type.
Steps to reproduce
Typing this document produces all of the following errors:
name: yaml-name
runtime: yaml
resources:
provider:
type: pulumi:providers:aws
properties:
region: us-west-2
bucket:
type: aws:s3:Bucket
Expected Behavior
Everything should just work:
- When entering
pu
it should autocomplete topulumi
. pulumi:
should autocomplete topulumi:providers:
.pulumi:providers:
should autocomplete toaws
(since it is one of the currently loaded modules).- Then the rest of the completion engine should work as normal for provider fields.
Actual Behavior
See "What happened"
Versions used
pulumi-lsp
doesn't have versions. See #18.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).