@jupyterlab/lsp 4.1.3 → 4.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,7 +32,7 @@ export class EditorAdapter {
32
32
  */
33
33
  _injectExtensions(editor) {
34
34
  const codeEditor = editor.getEditor();
35
- if (codeEditor.isDisposed) {
35
+ if (!codeEditor || codeEditor.isDisposed) {
36
36
  return;
37
37
  }
38
38
  this._extensions.forEach(factory => {
@@ -1 +1 @@
1
- {"version":3,"file":"editorAdapter.js","sourceRoot":"","sources":["../../src/adapters/editorAdapter.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,2DAA2D;AAS3D,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAK3C;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB;;;;OAIG;IACH,YAAY,OAA+B;QACzC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;QAEtC,KAAK,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACxC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC;IAOD;;OAEG;IACH,OAAO;QACL,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,OAAO;SACR;QACD,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAED;;OAEG;IACK,iBAAiB,CAAC,MAAwB;QAChD,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,EAAG,CAAC;QACvC,IAAI,UAAU,CAAC,UAAU,EAAE;YACzB,OAAO;SACR;QAED,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YACjC,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,CAAC,UAAU,IAAI,UAAU,CAAC,UAAU,EAAE;YACxC,OAAO;SACR;QAED,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YACjC,MAAM,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;gBAC1B,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI;gBAC7C,MAAM,EAAE,MAAM;gBACd,aAAa,EAAE,IAAI,CAAC,cAAc;gBAClC,KAAK,EAAE,UAAU,CAAC,KAAK;gBACvB,MAAM,EAAE,IAAI;aACb,CAAC,CAAC;YAEH,IAAI,CAAC,GAAG,EAAE;gBACR,OAAO;aACR;YAED,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;IACL,CAAC;CAIF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/lsp",
3
- "version": "4.1.3",
3
+ "version": "4.2.0-alpha.0",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -41,13 +41,13 @@
41
41
  "watch": "tsc -b --watch"
42
42
  },
43
43
  "dependencies": {
44
- "@jupyterlab/apputils": "^4.2.3",
45
- "@jupyterlab/codeeditor": "^4.1.3",
46
- "@jupyterlab/codemirror": "^4.1.3",
47
- "@jupyterlab/coreutils": "^6.1.3",
48
- "@jupyterlab/docregistry": "^4.1.3",
49
- "@jupyterlab/services": "^7.1.3",
50
- "@jupyterlab/translation": "^4.1.3",
44
+ "@jupyterlab/apputils": "^4.3.0-alpha.0",
45
+ "@jupyterlab/codeeditor": "^4.2.0-alpha.0",
46
+ "@jupyterlab/codemirror": "^4.2.0-alpha.0",
47
+ "@jupyterlab/coreutils": "^6.2.0-alpha.0",
48
+ "@jupyterlab/docregistry": "^4.2.0-alpha.0",
49
+ "@jupyterlab/services": "^7.2.0-alpha.0",
50
+ "@jupyterlab/translation": "^4.2.0-alpha.0",
51
51
  "@lumino/coreutils": "^2.1.2",
52
52
  "@lumino/disposable": "^2.1.2",
53
53
  "@lumino/signaling": "^2.1.2",
@@ -58,7 +58,7 @@
58
58
  "vscode-ws-jsonrpc": "~1.0.2"
59
59
  },
60
60
  "devDependencies": {
61
- "@jupyterlab/testing": "^4.1.3",
61
+ "@jupyterlab/testing": "^4.2.0-alpha.0",
62
62
  "@types/jest": "^29.2.0",
63
63
  "@types/lodash.mergewith": "^4.6.1",
64
64
  "jest": "^29.2.0",
@@ -51,8 +51,8 @@ export class EditorAdapter implements IDisposable {
51
51
  * Setup the editor.
52
52
  */
53
53
  private _injectExtensions(editor: Document.IEditor): void {
54
- const codeEditor = editor.getEditor()!;
55
- if (codeEditor.isDisposed) {
54
+ const codeEditor = editor.getEditor();
55
+ if (!codeEditor || codeEditor.isDisposed) {
56
56
  return;
57
57
  }
58
58