Skip to content

Commit b76b05e

Browse files
authored
Merge branch 'krassowski:master' into master
2 parents 22f5dbd + a988979 commit b76b05e

File tree

32 files changed

+1168
-335
lines changed

32 files changed

+1168
-335
lines changed

CHANGELOG.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,52 @@
11
## Changelog
22

3-
### `@krassowski/jupyterlab-lsp 3.7.0` (unreleased)
3+
### `@krassowski/jupyterlab-lsp 3.7.1` (unreleased)
4+
5+
- improvements:
6+
7+
- add a note on manually enabling backend extension ([#621], thanks @icankeep)
8+
9+
- bug fixes:
10+
- fix rename shortcut registration in file editor ([#614])
11+
- improve performance of icon rendering in completer ([#625])
12+
- fix cache misses and concurrency issues for hover ([#630])
13+
14+
[#614]: https://github.com/krassowski/jupyterlab-lsp/pull/614
15+
[#621]: https://github.com/krassowski/jupyterlab-lsp/pull/621
16+
[#625]: https://github.com/krassowski/jupyterlab-lsp/pull/625
17+
[#630]: https://github.com/krassowski/jupyterlab-lsp/pull/630
18+
19+
### `jupyter-lsp 1.3.0` (2021-06-02)
20+
21+
- features:
22+
- add auto-detection of pyright server ([#587], thanks @yuntan)
23+
24+
[#587]: https://github.com/krassowski/jupyterlab-lsp/pull/587
25+
26+
### `@krassowski/jupyterlab-lsp 3.7.0` (2021-05-31)
427

528
- features:
629

730
- add ability to deactivate Kernel completions or LSP completion through the settings ([#586], thanks @Carreau)
831
- allow to set a priority for LSP server, allowing to choose which server to use when multiple servers are installed ([#588])
932
- add auto-detection of pyright server ([#587], thanks @yuntan)
33+
- update from JupyterLab Classic to RetroLab ([#602])
34+
- log server messages in user-accessible console ([#606])
1035

1136
- bug fixes:
1237

1338
- workaround url-parse issue causing problems when using JupyterLab 3.0.15 ([#599])
1439

1540
- other changes:
1641
- drop Node 10 (EOL 2 weeks ago) testing on CI, add Node 15 ([#587])
42+
- update lsp-ws-connection dependencies ([#606])
43+
- old emit-based API of lsp-ws-connection is new deprecated and will be removed in the next major version; please use `serverNotifications`, `clientNotifications`, `clientRequests` and `serverRequests` instead ([#606])
1744

1845
[#586]: https://github.com/krassowski/jupyterlab-lsp/pull/586
19-
[#587]: https://github.com/krassowski/jupyterlab-lsp/pull/587
2046
[#588]: https://github.com/krassowski/jupyterlab-lsp/pull/588
2147
[#599]: https://github.com/krassowski/jupyterlab-lsp/pull/599
48+
[#602]: https://github.com/krassowski/jupyterlab-lsp/pull/602
49+
[#606]: https://github.com/krassowski/jupyterlab-lsp/pull/606
2250

2351
### `jupyter-lsp 1.2.0` (2021-04-26)
2452

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ Use of a python `virtualenv` or a conda env is also recommended.
192192

193193
Server configurations can be edited using the Advanced Settings editor in JupyterLab (_Settings > Advanced Settings Editor_). For settings specific to each server, please see the [table of language servers][language-servers]. Example settings might include:
194194

195-
> Note: for the new (currently recommended) python-lsp-server replace `pyls` occurrences with `pyslp`
195+
> Note: for the new (currently recommended) python-lsp-server replace `pyls` occurrences with `pylsp`
196196
197197
```json
198198
{

binder/environment.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ dependencies:
88
# runtime dependencies
99
- python >=3.6,<3.9.0a0
1010
- jupyterlab >=3.0.0,<4.0.0a0
11-
- jupyterlab-classic >=0.1.3,<0.2
1211
- jupyter_server >=1.1.2
12+
- retrolab >=0.2.0,<0.3
1313
# build dependencies
1414
- nodejs >=12,<15
1515
# for python language server (and development)
@@ -30,5 +30,3 @@ dependencies:
3030
- tectonic
3131
- texlab
3232
- chktex
33-
# TODO: remove when jedi vs IPython is resolved
34-
- jedi <0.18

binder/postBuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ python setup.py sdist bdist_wheel
1717
python -m pip install -e . --ignore-installed --no-deps -vv
1818
jupyter labextension develop . --overwrite
1919
popd
20-
2120
# List extensions
2221
jupyter serverextension list
2322
jupyter server extension list

packages/_example-extractor/jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ let local = {
1717
'\\.(js|jsx)?$': './transform.js',
1818
'\\.svg$': 'jest-raw-loader'
1919
},
20-
transformIgnorePatterns: [
21-
'/node_modules/(?!(@jupyterlab/.*|@jupyterlab-classic/.*)/)'
22-
],
20+
transformIgnorePatterns: ['/node_modules/(?!(@jupyterlab/.*|@retrolab/.*)/)'],
2321
testLocationInResults: true,
2422
reporters: [...upstream['reporters'], 'jest-github-actions-reporter']
2523
};

packages/completion-theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@krassowski/completion-theme",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "Completion theme manager for JupyterLab-LSP",
55
"keywords": [
66
"jupyter",

packages/completion-theme/src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class CompletionThemeManager implements ILSPCompletionThemeManager {
5353
? icons_sets.dark
5454
: icons_sets.light;
5555
const icons: Map<keyof ICompletionIconSet, LabIcon> = new Map();
56+
let options = this.current_theme.icons.options || {};
5657
const mode = this.is_theme_light() ? 'light' : 'dark';
5758
for (let [completion_kind, svg] of Object.entries(set)) {
5859
let name =
@@ -67,7 +68,10 @@ export class CompletionThemeManager implements ILSPCompletionThemeManager {
6768
});
6869
this.icons_cache.set(name, icon);
6970
}
70-
icons.set(completion_kind as keyof ICompletionIconSet, icon);
71+
icons.set(
72+
completion_kind as keyof ICompletionIconSet,
73+
icon.bindprops(options)
74+
);
7175
}
7276
return icons;
7377
}
@@ -83,7 +87,6 @@ export class CompletionThemeManager implements ILSPCompletionThemeManager {
8387
if (this.current_theme === null) {
8488
return null;
8589
}
86-
let options = this.current_theme.icons.options || {};
8790
if (type) {
8891
if (this.icon_overrides.has(type.toLowerCase())) {
8992
type = this.icon_overrides.get(type.toLowerCase());
@@ -92,7 +95,7 @@ export class CompletionThemeManager implements ILSPCompletionThemeManager {
9295
type.substring(0, 1).toUpperCase() + type.substring(1).toLowerCase();
9396
}
9497
if (this.current_icons.has(type)) {
95-
return this.current_icons.get(type).bindprops(options);
98+
return this.current_icons.get(type);
9699
}
97100

98101
if (type === KernelKind) {

packages/jupyterlab-lsp/jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ let local = {
1717
'\\.(js|jsx)?$': './transform.js',
1818
'\\.svg$': 'jest-raw-loader'
1919
},
20-
transformIgnorePatterns: [
21-
'/node_modules/(?!(@jupyterlab/.*|@jupyterlab-classic/.*)/)'
22-
],
20+
transformIgnorePatterns: ['/node_modules/(?!(@jupyterlab/.*|@retrolab/.*)/)'],
2321
testLocationInResults: true,
2422
reporters: [...upstream['reporters'], 'jest-github-actions-reporter']
2523
};

packages/jupyterlab-lsp/package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@krassowski/jupyterlab-lsp",
3-
"version": "3.6.0",
3+
"version": "3.7.0",
44
"description": "Language Server Protocol integration for JupyterLab",
55
"keywords": [
66
"jupyter",
@@ -58,15 +58,14 @@
5858
},
5959
"dependencies": {
6060
"@krassowski/code-jumpers": "~1.1.0",
61-
"@krassowski/completion-theme": "~3.0.0",
62-
"@krassowski/theme-material": "~2.1.0",
63-
"@krassowski/theme-vscode": "~2.1.0",
61+
"@krassowski/completion-theme": "~3.1.0",
62+
"@krassowski/theme-material": "~2.1.1",
63+
"@krassowski/theme-vscode": "~2.1.1",
6464
"lodash.mergewith": "^4.6.1",
65-
"lsp-ws-connection": "~0.5.1"
65+
"lsp-ws-connection": "~0.6.0"
6666
},
6767
"devDependencies": {
6868
"@babel/preset-env": "^7.4.3",
69-
"@jupyterlab-classic/application": "^0.1.2",
7069
"@jupyterlab/application": "^3.0.0",
7170
"@jupyterlab/apputils": "^3.0.0",
7271
"@jupyterlab/builder": "^3.0.0",
@@ -78,6 +77,7 @@
7877
"@jupyterlab/docmanager": "^3.0.0",
7978
"@jupyterlab/docregistry": "^3.0.0",
8079
"@jupyterlab/fileeditor": "^3.0.0",
80+
"@jupyterlab/logconsole": "^3.0.0",
8181
"@jupyterlab/notebook": "^3.0.0",
8282
"@jupyterlab/rendermime": "^3.0.0",
8383
"@jupyterlab/services": "^6.0.0",
@@ -86,6 +86,7 @@
8686
"@jupyterlab/tooltip": "^3.0.0",
8787
"@lumino/algorithm": "*",
8888
"@lumino/widgets": "^1.16.1",
89+
"@retrolab/application": "^0.2.0",
8990
"@types/chai": "^4.1.7",
9091
"@types/codemirror": "^0.0.74",
9192
"@types/events": "^3.0.0",
@@ -102,7 +103,8 @@
102103
"react": "^17.0.1",
103104
"rimraf": "^3.0.2",
104105
"ts-jest": "^26.4.3",
105-
"typescript": "~4.1.3"
106+
"typescript": "~4.1.3",
107+
"vscode-languageserver-protocol": "^3.16.0"
106108
},
107109
"peerDependencies": {
108110
"@jupyterlab/application": "^3.0.0",

packages/jupyterlab-lsp/schema/plugin.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@
6060
"enum": ["debug", "log", "warn", "error"],
6161
"default": "warn",
6262
"description": "The verbosity of the console for debugging problems with this extension. Allowed values are: debug, log, warn, error."
63+
},
64+
"logAllCommunication": {
65+
"title": "Log all LSP communication with the LSP servers",
66+
"type": "boolean",
67+
"default": false,
68+
"description": "Whether all messages sent to and received from LSP servers should be logged into the console. To see these messages, set loggingLevel to debug or log. Note: Only messages handled by the new API will be shown."
69+
},
70+
"setTrace": {
71+
"title": "Ask servers to send trace notifications",
72+
"type": ["string", "null"],
73+
"enum": ["off", "messages", "verbose", null],
74+
"default": null,
75+
"description": "Whether to ask server to send logs with execution trace (for debugging). To see these messages, set loggingLevel to debug or log. Accepted values are: \"off\", \"messages\", \"verbose\". Servers are allowed to ignore this request."
6376
}
6477
},
6578
"jupyter.lab.shortcuts": []

0 commit comments

Comments
 (0)