Skip to content

Supervision of completion process launches a process every few seconds #1139

@zsquareplusc

Description

@zsquareplusc

Environment data

  • VS Code version: 1.21.0
  • Extension version: 2018.2.1
  • OS and version: Win7

Actual behavior

Looks like the "fix" for #744 is launching an external process every 5 seconds to check the completion process size: the command line is wmic process <pid> get workingsetsize,usermodetime,kernelmodetime .

I think this increases the CPU load (battery life..), at least it makes me nervous seeing processes launch at that rate :-) (It's also making the use of ProcessExplorer a bit more difficult if its set to jump to new processes...)

Expected behavior

Ideally, the supervision of the completion process would not launch an external tool to make the measurement, but this may be the behavior of the library used and not be directly caused by the code in this plugin.

Alternatively, it would be nice if there was an option to disable these checks (I only see the python.jediMemoryLimit to change the limit, not the frequency of the test)?

Steps to reproduce:

  1. open a .py file in code on windows
  2. type anything that causes the autocompletion
  3. watch processes e.g. in ProcessExplorer

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions