Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into gh-76-step-0-comp…
Browse files Browse the repository at this point in the history
…osite
  • Loading branch information
bollwyvl committed Oct 28, 2019
2 parents f948e9f + 903ee46 commit 1add7ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ variables:
PYTHONUNBUFFERED: 1
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
PY_JLSP_VERSION: 0.6.0b0
JS_JLLSP_VERSION: 0.5.0
JS_JLLSP_VERSION: 0.6.0

jobs:
- template: ci/job.test.yml
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@krassowski/jupyterlab-lsp",
"version": "0.5.0",
"version": "0.6.0",
"description": "Language Server Protocol integration for JupyterLab",
"keywords": [
"jupyter",
Expand Down
6 changes: 5 additions & 1 deletion src/adapters/jupyterlab/jl_adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export abstract class JupyterLabWidgetAdapter
>;
protected abstract current_completion_connector: LSPConnector;
private _tooltip: FreeTooltip;
protected connection_manager: DocumentConnectionManager;
public connection_manager: DocumentConnectionManager;

protected constructor(
protected app: JupyterFrontEnd,
Expand Down Expand Up @@ -189,6 +189,10 @@ export abstract class JupyterLabWidgetAdapter
this.connection_manager.connect_document_signals(virtual_document);
virtual_document.changed.connect(this.document_changed.bind(this));
await this.connect(virtual_document).catch(console.warn);

virtual_document.foreign_document_opened.connect((host, context) => {
this.connect(context.foreign_document).catch(console.warn);
});
}

document_changed(virtual_document: VirtualDocument) {
Expand Down

0 comments on commit 1add7ce

Please sign in to comment.