Skip to content

Make some minor improvements to resource filter keywords and add filter keyword support for resource snippets - #13731

Merged
Stephen Weatherford (StephenWeatherford) merged 3 commits into
mainfrom
sw/keywords2-snippets
Apr 11, 2024
Merged

Stephen Weatherford (StephenWeatherford) merged 3 commits into
mainfrom
sw/keywords2-snippets

Conversation

@StephenWeatherford

@StephenWeatherford Stephen Weatherford (StephenWeatherford) commented Mar 27, 2024 •

Copy link
Copy Markdown
Contributor

Another part of #6387

  1. Hopefully fix update baselines script (unrelated)
  2. vscode handles spaces between than commas
  3. prioritize the actual resource name over the keywords by placing them first
  4. Added a couple more aliases
  5. Implement filtering for snippets:
    a) add snippet description to filter
    b) add resource types and keywords for all resources used in the snippet
Microsoft Reviewers: Open in CodeFlow

@github-actions

github-actions Bot commented Mar 27, 2024 •

Copy link
Copy Markdown
Contributor

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

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

@github-actions

github-actions Bot commented Mar 27, 2024 •

Copy link
Copy Markdown
Contributor

Test Results

    66 files   -     33      66 suites   - 33   22m 20s ⏱️ - 22m 10s
10 748 tests  -     16  10 747 ✅  -     16  1 💤 ±0  0 ❌ ±0 
25 392 runs   - 12 680  25 390 ✅  - 12 679  2 💤  - 1  0 ❌ ±0 

Results for commit 6f6628e. ± Comparison against base commit 63e8819.

♻️ This comment has been updated with latest results.

@StephenWeatherford
Stephen Weatherford (StephenWeatherford) force-pushed the sw/keywords2-snippets branch 9 times, most recently from 3404817 to ba039ea Compare April 1, 2024 18:02
@StephenWeatherford Stephen Weatherford (StephenWeatherford) changed the title DRAFT Make some minor improvements to resource filter keywords and add filter keyword support for resource snippets Apr 4, 2024
@StephenWeatherford
Stephen Weatherford (StephenWeatherford) marked this pull request as ready for review April 4, 2024 19:53
}

// Add the resource type and its keywords for all resourced used in the snippet
var resourceTypeFilters = resourceTypesUsed.Select(rt => TryGetResourceTypeFilterText(new ResourceTypeReference(rt, null)) ?? rt).ToArray();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: No need to call ToArray.

@StephenWeatherford

Copy link
Copy Markdown
Contributor Author

Shenglong Li (@shenglol) Thanks!

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.

2 participants