Skip to content

Conversation

ericsnowcurrently
Copy link

This PR does the following with each class in the component that has the @injectable decorator:

  • add a compatible proxy class to src/client/pythonEnvironments/legacyIOC.ts
  • register the proxy with the DI framework rather than the component-internal class
  • drop the @injectable decorator from the component-internal class

Note that this change does the absolute minimum. No classes are refactored. No code is pulled up into the proxies, no matter how basic. Also note that the @inject decorators are left behind to make it easier to identify where separate refactoring needs to happen (per our plans).

The review for the PR should be trivial.

@ericsnowcurrently ericsnowcurrently added the no-changelog No news entry required label Jul 7, 2020
@ericsnowcurrently ericsnowcurrently force-pushed the py-envs-ioc-move-to-surface branch from da59bec to 73d82d3 Compare July 7, 2020 21:44
@ericsnowcurrently ericsnowcurrently force-pushed the py-envs-ioc-move-to-surface branch from 73d82d3 to d80276b Compare July 7, 2020 22:24
@ericsnowcurrently ericsnowcurrently force-pushed the py-envs-ioc-move-to-surface branch from d80276b to 78fc597 Compare July 7, 2020 22:55
@ericsnowcurrently ericsnowcurrently force-pushed the py-envs-ioc-move-to-surface branch from 1fa7a58 to fa2ec88 Compare July 8, 2020 18:35
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 8, 2020

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
0.0% 0.0% Duplication

@ericsnowcurrently ericsnowcurrently merged commit 3016ad8 into microsoft:master Jul 8, 2020
@ericsnowcurrently ericsnowcurrently deleted the py-envs-ioc-move-to-surface branch July 8, 2020 19:34
ericsnowcurrently added a commit that referenced this pull request Jul 22, 2020
(for #12833)

The changes in PR #12795 led to a couple of tests in CI intermittently timing out.  Increasing the timeout resolves the problem (for now).
ericsnowcurrently added a commit to ericsnowcurrently/vscode-python that referenced this pull request Aug 4, 2020
ericsnowcurrently added a commit that referenced this pull request Aug 11, 2020
…jectable usage. (#12795)" (#13278)

(for #12833)

This reverts commit 3016ad8.

We will work on un-reverting separately.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog No news entry required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants