Skip to content

Commit

Permalink
fic crash when python extension tries to start the "pylance" server c…
Browse files Browse the repository at this point in the history
…aused by `this` binding moment
  • Loading branch information
DetachHead committed Jun 19, 2024
1 parent ab07a44 commit 6b59f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vscode-pyright/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ export async function activate(context: ExtensionContext): Promise<PylanceApi> {
isEnabled: () => {
return pyrightLanguageServerEnabled;
},
start: client.start,
stop: client.stop,
start: () => client.start(),
stop: () => client.stop(),
},
notebook: {
registerJupyterPythonPathFunction: (func) => {
Expand Down

0 comments on commit 6b59f80

Please sign in to comment.