Skip to content

Commit 9c0af35

Browse files
authored
Let pylance use SharedArrayBuffer cancellation in the browser (#21482)
Dirk implemented a new cancellation method for the browser in the LSP library. About 6 months ago. We use this in the browser to provide cancellation. Since we moved creation of the pylance language client to Python, this is picking up the LSP library currently in the Python extension and it was before this change by Dirk. This change moves the LSP library up to the latest.
1 parent c1ff6c3 commit 9c0af35

3 files changed

Lines changed: 60 additions & 66 deletions

File tree

package-lock.json

Lines changed: 54 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,9 +2008,9 @@
20082008
"vscode-debugadapter": "^1.28.0",
20092009
"vscode-debugprotocol": "^1.28.0",
20102010
"vscode-jsonrpc": "8.0.2-next.1",
2011-
"vscode-languageclient": "8.0.2-next.5",
2012-
"vscode-languageserver": "8.0.2-next.5",
2013-
"vscode-languageserver-protocol": "3.17.2-next.6",
2011+
"vscode-languageclient": "^8.1.0",
2012+
"vscode-languageserver": "^8.1.0",
2013+
"vscode-languageserver-protocol": "^3.17.3",
20142014
"vscode-tas-client": "^0.1.63",
20152015
"which": "^2.0.2",
20162016
"winreg": "^1.2.4",
@@ -2038,13 +2038,13 @@
20382038
"@types/tmp": "^0.0.33",
20392039
"@types/uuid": "^8.3.4",
20402040
"@types/vscode": "^1.75.0",
2041-
"@vscode/vsce": "^2.18.0",
20422041
"@types/which": "^2.0.1",
20432042
"@types/winreg": "^1.2.30",
20442043
"@types/xml2js": "^0.4.2",
20452044
"@typescript-eslint/eslint-plugin": "^3.7.0",
20462045
"@typescript-eslint/parser": "^3.7.0",
20472046
"@vscode/test-electron": "^2.1.3",
2047+
"@vscode/vsce": "^2.18.0",
20482048
"bent": "^7.3.12",
20492049
"chai": "^4.1.2",
20502050
"chai-arrays": "^2.0.0",
@@ -2097,4 +2097,4 @@
20972097
"webpack-require-from": "^1.8.6",
20982098
"yargs": "^15.3.1"
20992099
}
2100-
}
2100+
}

src/client/activation/node/lspInteractiveWindowMiddlewareAddon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class LspInteractiveWindowMiddlewareAddon implements Middleware, Disposab
117117
}
118118

119119
private static _asTextContentChange(event: TextDocumentChangeEvent, c2pConverter: Converter): TextContent {
120-
const params = c2pConverter.asChangeTextDocumentParams(event);
120+
const params = c2pConverter.asChangeTextDocumentParams(event, event.document.uri, event.document.version);
121121
return { document: params.textDocument, changes: params.contentChanges };
122122
}
123123

0 commit comments

Comments
 (0)