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

Provide a declared type for imported variable accesses to enable completions #12050

Merged
merged 1 commit into from Oct 4, 2023

Conversation

jeskew
Copy link
Contributor

@jeskew jeskew commented Oct 4, 2023

Resolves #12049

The CompletionProvider always queries the declared type (rather than the assigned type) of expressions when supplying completions. Since we supply a declared type for variable accesses (even though variables have no type declaration), it makes sense to do so for imported variables as well.

Microsoft Reviewers: Open in CodeFlow

@jeskew jeskew enabled auto-merge (squash) October 4, 2023 17:37
Copy link
Contributor

@shenglol shenglol left a comment

Choose a reason for hiding this comment

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

🚢

@github-actions
Copy link
Contributor

github-actions bot commented Oct 4, 2023

Test this change out locally with the following install scripts (Action run 6409826025)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 6409826025
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 6409826025"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 6409826025
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 6409826025"

@jeskew jeskew merged commit 3b5f245 into main Oct 4, 2023
46 checks passed
@jeskew jeskew deleted the jeskew/fix-import-var-intellisense branch October 4, 2023 18:08
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.

Intellisense not working on imported variables
2 participants