diff --git a/packages/pyright-internal/src/languageServerBase.ts b/packages/pyright-internal/src/languageServerBase.ts index abf1870829..ce9178270b 100644 --- a/packages/pyright-internal/src/languageServerBase.ts +++ b/packages/pyright-internal/src/languageServerBase.ts @@ -579,8 +579,6 @@ export abstract class LanguageServerBase implements LanguageServerInterface, Dis // Create a service instance for each of the workspace folders. this.workspaceFactory.handleInitialize(params); - // Bug? Or do we need to send another event always? - this.updateSettingsForAllWorkspaces(); if (this.client.hasWatchFileCapability) { this.addDynamicFeature( diff --git a/packages/pyright-internal/src/realLanguageServer.ts b/packages/pyright-internal/src/realLanguageServer.ts index 3b1298c689..c0bae633b4 100644 --- a/packages/pyright-internal/src/realLanguageServer.ts +++ b/packages/pyright-internal/src/realLanguageServer.ts @@ -214,15 +214,10 @@ export abstract class RealLanguageServer extends LanguageServerBase { } } catch (error) { const errorMessage = error instanceof Error ? error.message : error; - // workaround for https://github.com/DetachHead/basedpyright/issues/573 - if (errorMessage === 'Unhandled method workspace/configuration') { - this.console.error(`Error reading settings: ${error}`); - } else { - this.connection.sendNotification(ShowMessageNotification.type, { - message: errorMessage, - type: MessageType.Error, - }); - } + this.connection.sendNotification(ShowMessageNotification.type, { + message: errorMessage, + type: MessageType.Error, + }); } return serverSettings; }