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

Decompile Bicepparams: Use consistent URI -> FS conversion #11834

Merged
merged 5 commits into from
Sep 21, 2023

Conversation

anthony-c-martin
Copy link
Member

@anthony-c-martin anthony-c-martin commented Sep 14, 2023

I noticed we're inconsistent in usage of URI vs file system paths in the language server - this PR fixes that.

This might address #11615, but I'm not confident we have enough information about it to confirm or deny that.

Microsoft Reviewers: Open in CodeFlow

Uri outputUri = PathHelper.FilePathToFileUrl(outputPath);
var inputUri = PathHelper.FilePathToFileUrl(inputPath);
var outputUri = PathHelper.FilePathToFileUrl(outputPath);
var bicepUri = bicepPath is {} ? PathHelper.FilePathToFileUrl(bicepPath) : null;
Copy link
Member Author

Choose a reason for hiding this comment

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

Should we be validating this file actually exists?

@github-actions
Copy link
Contributor

github-actions bot commented Sep 14, 2023

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

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 15, 2023

Test Results

     132 files  ±    0       132 suites  ±0   3h 21m 57s ⏱️ + 2m 37s
10 550 tests +  87  10 550 ✔️ +  87  0 💤 ±0  0 ±0 
50 751 runs  +352  50 751 ✔️ +352  0 💤 ±0  0 ±0 

Results for commit ebdca0d. ± Comparison against base commit 8e6a24b.

♻️ This comment has been updated with latest results.

@Azure Azure deleted a comment from github-actions bot Sep 15, 2023
@Azure Azure deleted a comment from github-actions bot Sep 15, 2023
@Azure Azure deleted a comment from github-actions bot Sep 15, 2023
@Azure Azure deleted a comment from github-actions bot Sep 15, 2023
Copy link
Contributor

@jeskew jeskew left a comment

Choose a reason for hiding this comment

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

Just had a question and a small nitpick; otherwise LGTM!

@anthony-c-martin anthony-c-martin enabled auto-merge (squash) September 21, 2023 14:41
@anthony-c-martin anthony-c-martin merged commit f3276e7 into main Sep 21, 2023
47 checks passed
@anthony-c-martin anthony-c-martin deleted the ant/bicepparam_uri branch September 21, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants