File tree Expand file tree Collapse file tree 3 files changed +31
-6
lines changed
packages/jupyterlab-lsp/src/adapters Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 8
8
9
9
- bug fixes:
10
10
11
- - fix completions with R double and triple colon prefix ([ #449 ] )
12
- - fix contrast on status icon when status item is active ([ #465 ] )
13
- - fix connection manager loosing track of notebooks when multiple were open ([ #474 ] )
11
+ - namespace completions in R (after double and triple colon) now work properly ([ #449 ] )
12
+ - improved status icon contrast when status item is active ([ #465 ] )
13
+ - connection manager now properly keeps track of notebooks when multiple notebooks are open ([ #474 ] )
14
+ - new cells added after kernel restart now work properly; kernel changes are handled correctly ([ #478 ] )
14
15
15
16
[ #449 ] : https://github.com/krassowski/jupyterlab-lsp/pull/449
16
17
[ #465 ] : https://github.com/krassowski/jupyterlab-lsp/pull/465
17
18
[ #474 ] : https://github.com/krassowski/jupyterlab-lsp/pull/474
19
+ [ #478 ] : https://github.com/krassowski/jupyterlab-lsp/pull/478
18
20
19
21
### ` jupyter-lsp 1.0.1 ` (unreleased)
20
22
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ Works With Kernel Running
28
28
29
29
Works When Kernel Is Shut Down
30
30
Lab Command Shut Down All Kernels…
31
+ Wait For Dialog
31
32
Capture Page Screenshot 01-shutting-kernels.png
32
33
Accept Default Dialog Option
33
34
Capture Page Screenshot 02-kernels-shut.png
@@ -39,6 +40,21 @@ Works When Kernel Is Shut Down
39
40
# this comes from kernel:
40
41
Completer Should Not Suggest %%timeit
41
42
43
+ Works After Kernel Restart In New Cells
44
+ Lab Command Restart Kernel…
45
+ Wait For Dialog
46
+ Accept Default Dialog Option
47
+ Enter Cell Editor 1 line=2
48
+ # works in old cells
49
+ Trigger Completer
50
+ Completer Should Suggest test
51
+ Lab Command Insert Cell Below
52
+ Enter Cell Editor 2 line=1
53
+ # works in new cells
54
+ Press Keys None lis
55
+ Trigger Completer
56
+ Completer Should Suggest list
57
+
42
58
Works In File Editor
43
59
[Setup] Prepare File for Editing Python completion completion.py
44
60
Place Cursor In File Editor At 9 2
Original file line number Diff line number Diff line change @@ -236,10 +236,17 @@ export abstract class WidgetAdapter<T extends IDocumentWidget> {
236
236
) ;
237
237
238
238
// recreate virtual document using current path and language
239
- let virtual_document = this . create_virtual_document ( ) ;
240
- this . virtual_editor . virtual_document = virtual_document ;
239
+ // as virtual editor assumes it gets the virtual document at init,
240
+ // just dispose virtual editor (which disposes virtual document too)
241
+ // and re-initialize both virtual editor and document
242
+ this . virtual_editor . dispose ( ) ;
243
+
244
+ this . init_virtual ( ) ;
245
+
241
246
// reconnect
242
- this . connect_document ( virtual_document , true ) . catch ( console . warn ) ;
247
+ this . connect_document ( this . virtual_editor . virtual_document , true ) . catch (
248
+ console . warn
249
+ ) ;
243
250
}
244
251
245
252
protected on_save_state ( context : any , state : DocumentRegistry . SaveState ) {
You can’t perform that action at this time.
0 commit comments