Skip to content

Open PowerShell files in ide - #70

Merged
GordonBeeming merged 3 commits into
mainfrom
gb/powershell-file-support
Aug 5, 2026
Merged

Open PowerShell files in ide#70
GordonBeeming merged 3 commits into
mainfrom
gb/powershell-file-support

Conversation

@GordonBeeming

@GordonBeeming GordonBeeming commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Register PowerShell scripts, modules, manifests, and XML definition files with macOS so they can open directly in ide.
  • Use PowerShell highlighting for .ps1, .psm1, and .psd1, and XML highlighting for .ps1xml and .cdxml.
  • Keep the Tauri association validator and language-loader tests covering all five extensions.

Test plan

  • npm test
  • npm run build
  • npm run tauri:check
  • cargo check --manifest-path src-tauri/Cargo.toml

Summary by CodeRabbit

  • New Features

    • Added syntax recognition and structured text editing support for PowerShell module, data, type, and command-definition files.
    • Added XML handling for .ps1xml and .cdxml files.
  • Tests

    • Expanded coverage to verify correct language detection for the newly supported PowerShell file types.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@GordonBeeming, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e6a42bfa-00db-4210-af18-9bfdf70246dc

📥 Commits

Reviewing files that changed from the base of the PR and between 856509a and da7df7e.

⛔ Files ignored due to path filters (2)
  • package-lock.json is excluded by !**/package-lock.json
  • src-tauri/Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • package.json
📝 Walkthrough

Walkthrough

The change adds .psm1, .psd1, .ps1xml, and .cdxml support to Tauri file associations, configuration validation, language loading, and loader tests.

Changes

PowerShell file support

Layer / File(s) Summary
PowerShell file associations
src-tauri/tauri.conf.json, scripts/validate-tauri-config.mjs
Tauri recognizes PowerShell module and XML file extensions. Configuration validation requires all four extensions.
PowerShell language loading
src/language.ts, src/language.test.ts
The language loader maps .ps1xml and .cdxml to XML highlighting. Tests cover all four extensions.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: opening PowerShell files directly in the IDE.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch gb/powershell-file-support

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@GordonBeeming

Copy link
Copy Markdown
Owner Author

@codex review

@GordonBeeming

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds first-class support for common PowerShell file types so they open in ide on macOS and receive appropriate syntax highlighting in the editor.

Changes:

  • Added XML highlighting for PowerShell XML definition formats (.ps1xml, .cdxml) while keeping PowerShell highlighting for scripts/modules/manifests (.ps1, .psm1, .psd1).
  • Expanded language-loader tests to cover all five PowerShell-related extensions.
  • Updated Tauri macOS file associations and the config validator to require/validate these extensions.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/language.ts Maps .ps1xml/.cdxml to XML highlighting via CodeMirror legacy XML mode.
src/language.test.ts Ensures language loader resolves highlighting for .ps1, .psm1, .psd1, .ps1xml, .cdxml.
src-tauri/tauri.conf.json Registers macOS file associations for PowerShell module/manifest and PowerShell XML file extensions.
scripts/validate-tauri-config.mjs Extends required associated extensions list to enforce the new file associations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 856509aea1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@GordonBeeming

Copy link
Copy Markdown
Owner Author

@codex review

@GordonBeeming
GordonBeeming requested a lite review from Copilot August 5, 2026 02:22
@GordonBeeming

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 6ae489ba9c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@GordonBeeming

Copy link
Copy Markdown
Owner Author

@codex review

@GordonBeeming
GordonBeeming requested a lite review from Copilot August 5, 2026 02:31
@GordonBeeming

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 7 changed files in this pull request and generated no new comments.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: da7df7ee35

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@GordonBeeming
GordonBeeming marked this pull request as ready for review August 5, 2026 02:41
@GordonBeeming
GordonBeeming merged commit 8a554b7 into main Aug 5, 2026
4 of 6 checks passed
@GordonBeeming
GordonBeeming deleted the gb/powershell-file-support branch August 5, 2026 02:42
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