File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff 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
1717jobs :
1818 - template : ci/job.test.yml
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments