Skip to content

Commit 1add7ce

Browse files
committed
Merge remote-tracking branch 'upstream/master' into gh-76-step-0-composite
2 parents f948e9f + 903ee46 commit 1add7ce

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ variables:
1212
PYTHONUNBUFFERED: 1
1313
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
1414
PY_JLSP_VERSION: 0.6.0b0
15-
JS_JLLSP_VERSION: 0.5.0
15+
JS_JLLSP_VERSION: 0.6.0
1616

1717
jobs:
1818
- template: ci/job.test.yml

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@krassowski/jupyterlab-lsp",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "Language Server Protocol integration for JupyterLab",
55
"keywords": [
66
"jupyter",

src/adapters/jupyterlab/jl_adapter.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export abstract class JupyterLabWidgetAdapter
8181
>;
8282
protected abstract current_completion_connector: LSPConnector;
8383
private _tooltip: FreeTooltip;
84-
protected connection_manager: DocumentConnectionManager;
84+
public connection_manager: DocumentConnectionManager;
8585

8686
protected constructor(
8787
protected app: JupyterFrontEnd,
@@ -189,6 +189,10 @@ export abstract class JupyterLabWidgetAdapter
189189
this.connection_manager.connect_document_signals(virtual_document);
190190
virtual_document.changed.connect(this.document_changed.bind(this));
191191
await this.connect(virtual_document).catch(console.warn);
192+
193+
virtual_document.foreign_document_opened.connect((host, context) => {
194+
this.connect(context.foreign_document).catch(console.warn);
195+
});
192196
}
193197

194198
document_changed(virtual_document: VirtualDocument) {

0 commit comments

Comments
 (0)