Skip to content

Default behavior for analyzing of entire project in new language server #2113

Closed

Description

#2030
#1861

Currently the language server analyzes the entire project.
This can be turned off using the setting python.diagnostics.openFilesOnly: false

What should the default behavior be?

  • Analyze entire project
  • Analyze just the open file

Note: Today VSC Python displays errors (linter errors) for opened files.
With the introduction of the new language server, we're changing this default behavior to analyze entire project. This could both be a good thing as well as bad.

E.g. for someone working on a large code base, with Python 2.7 code, or similar, they could end up with 100s of errors (like me when using PTVSD, i see 880 errors).

Yes, the solution is as simple as turn off the feature to analyze opened file. This is similar to the pylint linter is not installed message. Once again, the solution is as simple as disabling it, but its annoying to have it as the default behavior.

My concern is users will start getting annoyed with these messages.

@Microsoft/pvsc-team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions