Added `workspaceContains:pyproject.toml` to activationEvents by BrandonLWhite · Pull Request #12056 · microsoft/vscode-python · GitHub
Skip to content

Added workspaceContains:pyproject.toml to activationEvents#12056

Merged
ericsnowcurrently merged 2 commits into
microsoft:masterfrom
BrandonLWhite:workspaceContains-pyproject
Jun 23, 2020
Merged

Added workspaceContains:pyproject.toml to activationEvents#12056
ericsnowcurrently merged 2 commits into
microsoft:masterfrom
BrandonLWhite:workspaceContains-pyproject

Conversation

@BrandonLWhite

@BrandonLWhite BrandonLWhite commented May 29, 2020

Copy link
Copy Markdown

(for #4765)

This PR adds triggering off of 'pyproject.toml' in the workspace root to load the extension.

I'm hoping that using this standard file is easier to get merged vs. the "kitchen-sink" approach that has stalled another PR due to debates and disagreements.

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).
  • The wiki is updated with any design decisions/details.

@karrtikr karrtikr 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.

Thanks for the PR. Don't forget to add a news entry.

@ericsnowcurrently ericsnowcurrently 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.

What issue is this for? We need a bit more discussion on the topic of file-based activation events (in package.json). For example, there are other files that are just as valid as markers for Python projects (requirements.txt, pytest.ini, etc.). Furthermore, note that we don't already have "workspaceContains:**/*.py" in the list. So a bit more discussion in a corresponding issue would be helpful.

@BrandonLWhite

BrandonLWhite commented Jun 3, 2020

Copy link
Copy Markdown
Author

@BrandonLWhite

Copy link
Copy Markdown
Author

Relates to Issue #4765

@ericsnowcurrently

Copy link
Copy Markdown

Understood. I've left a comment on #4765.

@ghost

ghost commented Jun 11, 2020

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@BrandonLWhite

Copy link
Copy Markdown
Author

Can we please move forward with this and merge? If not, please advise as to what is blocking.

@ericsnowcurrently

Copy link
Copy Markdown

I'm fine with the PR (though I'd suggest adding setup.py to it). However, I'm double-checking with someone else first. Thanks for your patience.

@ericsnowcurrently ericsnowcurrently 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.

LGTM

We'll also look at adding workspaceContains:setup.py in the near future.

@ericsnowcurrently ericsnowcurrently merged commit 3eb1325 into microsoft:master Jun 23, 2020
@ericsnowcurrently

Copy link
Copy Markdown

Thanks @BrandonLWhite!

@ericsnowcurrently

Copy link
Copy Markdown

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.

4 participants