PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

Module changes in interactive window are not working

Open linette-zyy opened this issue 3 years ago • 2 comments

Environment image

Steps to Reproduce

  1. Using module combo box, switch to io module
  2. Define a new method: def hello(): pass
  3. Check that it exists: dir()
  4. Switch back to main module
  5. Check that it doesn't exist in main module: dir()
  6. import io

Expected behavior io.hello() # you should get intellisense on hello

Actual result Cannot find the new method defined. image

linette-zyy avatar May 28 '21 09:05 linette-zyy

This would require forwarding the module changes to pylance. Not sure we want to do that? Pylance would think that edits had happened to the original file.

rchiodo avatar Jun 02 '21 16:06 rchiodo

This is something that would need support from Pylance to support.

greazer avatar Jun 02 '21 22:06 greazer