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

Refine activation events #286

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Refine activation events #286

wants to merge 2 commits into from

Conversation

DavisVaughan
Copy link
Collaborator

Closes #285

I didn't end up adding anything renv related, but I did add *.Rproj with the assumption that if you are opening a project that you previously used to open in RStudio, then you probably want Air to activate.

@@ -7,6 +7,8 @@

## Development version

- The extension now activates automatically when an `air.toml`, `DESCRIPTION`, or `.Rproj` file is detected at the workspace root. Previously, the extension only activated after an R file was opened (#285).
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(Technically it also used to activate if any *.R file was detected at the workspace root, but I imagine that was rare for our current set of users and is not worth mentioning)

Comment on lines -30 to -31
"workspaceContains:*.r",
"workspaceContains:*.R"
Copy link
Collaborator

@lionel- lionel- Mar 25, 2025

Choose a reason for hiding this comment

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

I think we should keep these for data analysis projects. This way the extension will be activated at the same time (project opening without any files open) for both packages and less structured projects.

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.

Review incorrect VS Code extension activation events
2 participants