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

Refactor should take into consideration primitives vs objects (in Python) #198600

Closed
rentruewang opened this issue Nov 18, 2023 · 2 comments
Closed
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@rentruewang
Copy link

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.84.2
  • OS Version: Windows 11

Steps to Reproduce:

  1. Use the following code snippet
a = 0

for i in range(10):
    a += 1
  1. Use extract method from refactoring tools on the for loop.
  2. Get the following code
a = 0

def new_func(a):
    for i in range(10):
        a += 1

new_func(a)

This has no effect on primitive types.

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 20, 2023

/extPython

@VSCodeTriageBot
Copy link
Collaborator

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot added the *caused-by-extension Issue identified to be caused by an extension label Nov 20, 2023
@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

3 participants