We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 488d103 commit 6878880Copy full SHA for 6878880
src/client/activation/activationService.ts
@@ -250,9 +250,10 @@ export class LanguageServerExtensionActivationService
250
}
251
252
253
- // If "Pylance" was explicitly chosen, use it even though it's not guaranteed to work
254
- // properly with Python 2.
255
- if (!this.getCurrentLanguageServerTypeIsDefault()) {
+ // If Pylance was chosen via the default and the interpreter is Python 2, fall back to
+ // Jedi. If Pylance was explicitly chosen, continue anyway, even if Pylance won't work
+ // as expected, matching pre-default behavior.
256
+ if (this.getCurrentLanguageServerTypeIsDefault()) {
257
if (serverType === LanguageServerType.Node && interpreter && interpreter.version) {
258
if (interpreter.version.major < 3) {
259
sendTelemetryEvent(EventName.JEDI_FALLBACK);
0 commit comments