Skip to content

Fix run commands with a file URI - #144

Merged
gadenbuie merged 1 commit into
posit-dev:mainfrom
gadenbuie:fix/130-active-editor-language-gating
Nov 18, 2026
Merged

gadenbuie merged 1 commit into
posit-dev:mainfrom
gadenbuie:fix/130-active-editor-language-gating

Conversation

@gadenbuie

Copy link
Copy Markdown
Collaborator

Fixes #130

Summary

  • Remove active-editor language checks from run and debug command enablement, while keeping language-specific Command Palette visibility.
  • Validate the requested document's language before running or debugging. For R console runs, prevent older Positron versions from silently running a different file when they ignore the requested document.

Verification

  • Compile and lint passed; VS Code extension tests passed (124 passing, 1 pending) using a short test-host data path.
  • Open a Python app and an R app side by side. With either editor focused, confirm the other editor's Run button is enabled. Invoke a run command with a URI for a file in the wrong language and confirm it reports an error instead of starting an app.

@gadenbuie
gadenbuie marked this pull request as ready for review November 18, 2026 16:13
@gadenbuie
gadenbuie merged commit e31c8b9 into posit-dev:main Nov 18, 2026
6 checks passed
@gadenbuie
gadenbuie deleted the fix/130-active-editor-language-gating branch November 18, 2026 16:14
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.

Don't gate the Run App commands on the active editor's language

1 participant