-
Notifications
You must be signed in to change notification settings - Fork 1.2k
remove pylance create,start,stop. Pylance will now do that itself. #25370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
new LanguageClient(PYTHON_LANGUAGE, 'Python Language Server', args[0], args[1]), | ||
start: (client: BaseLanguageClient): Promise<void> => client.start(), | ||
stop: (client: BaseLanguageClient): Promise<void> => client.stop(), | ||
getTelemetryReporter: () => reporter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keeping getTelemetryReporter()
removing others
const api = pylanceExtension.exports; | ||
if (api.client && api.client.isEnabled()) { | ||
pylanceApi = api; | ||
await api.client.start(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just removing this call to start. not sure why the diff is messed up. My other idea was to leave this logic in. but change pylance's api.client.isEnabled()
to return false and then just return in that case.
@@ -255,7 +255,7 @@ export namespace InterpreterQuickPickList { | |||
} | |||
|
|||
export namespace OutputChannelNames { | |||
export const languageServer = l10n.t('Python Language Server'); | |||
export const JediLanguageServer = l10n.t('Jedi'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed Jedi's output window to 'Jedi'
@@ -62,6 +64,7 @@ export class JediLSExtensionManager implements IDisposable, ILanguageServerExten | |||
this.serverManager.dispose(); | |||
this.serverProxy.dispose(); | |||
this.analysisOptions.dispose(); | |||
this.outputChannel.dispose(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now dispose Jedi's output channel here instead of the global one
}, | ||
start: (client: BaseLanguageClient): Promise<void> => client.start(), | ||
stop: (client: BaseLanguageClient): Promise<void> => client.stop(), | ||
getTelemetryReporter: () => getTelemetryReporter(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff is messed up, removing createClient
, start
, stop
createClient(...args: any[]): BaseLanguageClient; | ||
start(client: BaseLanguageClient): Promise<void>; | ||
stop(client: BaseLanguageClient): Promise<void>; | ||
getTelemetryReporter(): TelemetryReporter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing
createClient(...args: any[]): BaseLanguageClient;
start(client: BaseLanguageClient): Promise<void>;
stop(client: BaseLanguageClient): Promise<void>;
…vscode-python into remove-pylance-client2
Note: this means older of versions of pylance wont work.