File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -245,9 +245,10 @@ export class LanguageServerExtensionActivationService
245
245
}
246
246
}
247
247
248
- // If "Pylance" was explicitly chosen, use it even though it's not guaranteed to work
249
- // properly with Python 2.
250
- if ( ! this . getCurrentLanguageServerTypeIsDefault ( ) ) {
248
+ // If Pylance was chosen via the default and the interpreter is Python 2, fall back to
249
+ // Jedi. If Pylance was explicitly chosen, continue anyway, even if Pylance won't work
250
+ // as expected, matching pre-default behavior.
251
+ if ( this . getCurrentLanguageServerTypeIsDefault ( ) ) {
251
252
if ( serverType === LanguageServerType . Node && interpreter && interpreter . version ) {
252
253
if ( interpreter . version . major < 3 ) {
253
254
sendTelemetryEvent ( EventName . JEDI_FALLBACK ) ;
You can’t perform that action at this time.
0 commit comments