Skip to content

Commit bbff5d5

Browse files
committed
Merge remote-tracking branch 'upstream/master' into rm_empty_file
2 parents 978e2c3 + 5259d32 commit bbff5d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1993
-3230
lines changed

.github/.condarc

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
steps:
3030
- name: Checkout repository
31-
uses: actions/checkout@v2
31+
uses: actions/checkout@v3
3232

3333
# Initializes the CodeQL tools for scanning.
3434
- name: Initialize CodeQL

.github/workflows/job.test.yml

Lines changed: 22 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,6 @@ jobs:
5858
lab: '${{ matrix.lab }}'
5959
nodejs: '${{ matrix.nodejs }}'
6060

61-
- name: Cache conda
62-
uses: actions/cache@v2
63-
with:
64-
path: ~/conda_pkgs_dir
65-
key: |
66-
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-${{ hashFiles('requirements/github-actions.yml', 'requirements/lint.yml') }}
67-
restore-keys: |
68-
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-
69-
7061
- name: Set up Python and mamba
7162
uses: conda-incubator/setup-miniconda@v2
7263
with:
@@ -82,7 +73,7 @@ jobs:
8273

8374
- name: Cache node_modules
8475
id: cache-node-modules
85-
uses: actions/cache@v2
76+
uses: actions/cache@v3
8677
with:
8778
path: '**/node_modules'
8879
key: |
@@ -91,7 +82,7 @@ jobs:
9182
- name: Cache yarn packages
9283
id: cache-yarn-packages
9384
if: steps.cache-node-modules.outputs.cache-hit != 'true'
94-
uses: actions/cache@v2
85+
uses: actions/cache@v3
9586
with:
9687
path: .yarn-packages
9788
key: |
@@ -122,6 +113,10 @@ jobs:
122113
- name: Check distributions
123114
run: python scripts/distcheck.py
124115

116+
- name: Rename uncached conda packages
117+
shell: bash
118+
run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
119+
125120
build:
126121
name: build
127122
runs-on: ${{ matrix.os }}-latest
@@ -132,7 +127,7 @@ jobs:
132127
lab: ['>=3.1.0,<4.0.0a0']
133128
r: ['>=4']
134129
steps:
135-
- uses: actions/checkout@v2
130+
- uses: actions/checkout@v3
136131

137132
- uses: cschleiden/replace-tokens@v1
138133
with:
@@ -143,26 +138,18 @@ jobs:
143138
lab: '${{ matrix.lab }}'
144139
nodejs: '${{ matrix.nodejs }}'
145140

146-
- name: Cache conda
147-
uses: actions/cache@v2
148-
with:
149-
path: ~/conda_pkgs_dir
150-
key: |
151-
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-${{ hashFiles('requirements/github-actions.yml') }}
152-
restore-keys: |
153-
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-
154-
155141
- name: Set up Python and mamba
156142
uses: conda-incubator/setup-miniconda@v2
157143
with:
158144
miniforge-variant: Mambaforge
145+
use-mamba: true
159146

160147
- name: Install minimal build deps
161148
run: mamba install -n test -c conda-forge setuptools wheel 'jupyterlab${{ matrix.lab }}' 'nodejs${{ matrix.nodejs }}'
162149

163150
- name: Cache node_modules
164151
id: cache-node-modules
165-
uses: actions/cache@v2
152+
uses: actions/cache@v3
166153
with:
167154
path: '**/node_modules'
168155
key: |
@@ -171,7 +158,7 @@ jobs:
171158
- name: Cache yarn packages
172159
id: cache-yarn-packages
173160
if: steps.cache-node-modules.outputs.cache-hit != 'true'
174-
uses: actions/cache@v2
161+
uses: actions/cache@v3
175162
with:
176163
path: .yarn-packages
177164
key: |
@@ -214,6 +201,10 @@ jobs:
214201
name: jupyterlab-lsp dist ${{ github.run_number }}
215202
path: ./dist
216203

204+
- name: Rename uncached conda packages
205+
shell: bash
206+
run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
207+
217208
acceptance:
218209
runs-on: ${{ matrix.os }}-latest
219210
name: atest ${{ matrix.os }} py${{ matrix.python }} r${{ matrix.r }}
@@ -250,15 +241,6 @@ jobs:
250241
lab: '${{ matrix.lab }}'
251242
nodejs: '${{ matrix.nodejs }}'
252243

253-
- name: Cache conda
254-
uses: actions/cache@v2
255-
with:
256-
path: ~/conda_pkgs_dir
257-
key: |
258-
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-${{ hashFiles('requirements/github-actions.yml') }}
259-
restore-keys: |
260-
${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-
261-
262244
- name: Set up Python and mamba
263245
uses: conda-incubator/setup-miniconda@v2
264246
with:
@@ -272,7 +254,7 @@ jobs:
272254

273255
- name: Cache node_modules
274256
id: cache-node-modules
275-
uses: actions/cache@v2
257+
uses: actions/cache@v3
276258
with:
277259
path: '**/node_modules'
278260
key: |
@@ -281,7 +263,7 @@ jobs:
281263
- name: Cache yarn packages
282264
id: cache-yarn-packages
283265
if: steps.cache-node-modules.outputs.cache-hit != 'true'
284-
uses: actions/cache@v2
266+
uses: actions/cache@v3
285267
with:
286268
path: .yarn-packages
287269
key: |
@@ -290,7 +272,7 @@ jobs:
290272
${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-
291273
${{ env.CACHE_EPOCH }}-yarn-
292274
293-
- uses: actions/cache@v2
275+
- uses: actions/cache@v3
294276
with:
295277
path: ~/.julia/artifacts
296278
key: |
@@ -351,12 +333,16 @@ jobs:
351333
shell: bash
352334

353335
- name: Publish browser test output
354-
uses: actions/upload-artifact@v2
336+
uses: actions/upload-artifact@v3
355337
with:
356338
name: ${{ job.status }} Robot ${{ matrix.os }} Python ${{ matrix.python }} ${{ github.run_number }}
357339
path: ./atest/output
358340
if: always()
359341

342+
- name: Rename uncached conda packages
343+
shell: bash
344+
run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
345+
360346
smoke:
361347
name: smoke ${{ matrix.os }} py${{ matrix.python }}
362348
runs-on: ${{ matrix.os }}-latest

CHANGELOG.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,45 @@
66
- implement jump target selector and jump to references ([#739])
77
- implement settings UI using native JupyterLab 3.3 UI ([#778])
88
- add option to show hover tooltip automatically ([#864], thanks @yamaton)
9-
- bug fixes
9+
- bug fixes:
1010
- use correct websocket URL if configured as different from base URL ([#820], thanks @MikeSem)
1111
- clean up all completer styles when completer feature is disabled ([#829]).
1212
- fix `undefined` being inserted for path-like completion items with no `insertText` ([#833])
1313
- reduce signature flickering when typing and hover flicker when moving mouse ([#836])
1414
- fix sporadic misplacement of hover tooltips ([#860], thanks @yamaton)
15+
- handle potential race condition in feature settings loading ([#882])
1516
- refactoring:
1617
- changed NPM packages namespace from `@krassowski` to `@jupyter-lsp` ([#862])
1718
- move client capabilities to features ([#738])
19+
- downstreams:
20+
- use the host application's HTTP settings for requests to the REST and WebSocket routes ([#881])
21+
- source maps are provided for improved debugging ([#882])
22+
- the derived JSON Schema types are avilable as `SCHEMA` ([#882])
1823
- documentation:
1924
- add missing `--channel` to conda instruction for texlab ([#789], thanks @justin-f-perez)
2025
- remove references to pylsp fork ([#800] and [#814], thanks @joelostblom and @nickfong)
2126
- add Robot Framework language server ([#724], thanks @bollwyvl)
2227
- add a list of third-party and community language servers ([#826], thanks @cccs-jc)
23-
- fix documentation of .lsp_symlink workaround ([#828])
28+
- fix documentation of `.lsp_symlink` workaround ([#828])
2429
- maintenance:
2530
- bump minimum required JupyterLab version to 3.3 (`>=3.3.0,<4.0.0a0`)
2631
- bump minimum required Node.js version to 14.0 (12.0 reached EOL in April)
32+
- use newer `@jupyterlab/builder` which provides third-party license information ([#882])
33+
34+
### `lsp-ws-connection 0.7.1` (not-yet-released)
35+
36+
- downstreams:
37+
- includes sourcemaps for easier debugging ([#882])
38+
- maintenance:
39+
- handle notifcation promises more explicitly ([#882])
40+
41+
### `jupyter-lsp 1.6.0` (not-yet-released)
42+
43+
- dependencies:
44+
- uses `importlib_metadata` (or `importlib.metadata` on 3.10+) for `entry_points` ([#882])
45+
- performance:
46+
- `entry_point` discovery is deferred until server has started, improving
47+
`jupyter_server` startup time ([#852])
2748

2849
[#724]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/724
2950
[#738]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/738
@@ -36,8 +57,10 @@
3657
[#829]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/829
3758
[#833]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/833
3859
[#836]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/836
60+
[#852]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/852
3961
[#860]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/860
4062
[#864]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/864
63+
[#882]: https://github.com/jupyter-lsp/jupyterlab-lsp/pull/882
4164

4265
### `@krassowski/jupyterlab-lsp 3.10.1` (2022-03-21)
4366

@@ -626,7 +649,7 @@
626649

627650
- bug fixes
628651

629-
- bump version of lsp-ws-connection dependency to fix the LaTeX server issues (see [#337])
652+
- bump version of `lsp-ws-connection` dependency to fix the LaTeX server issues (see [#337])
630653

631654
[#337]: https://github.com/jupyter-lsp/jupyterlab-lsp/issues/337
632655

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2019, jupyter-lsp contributors
3+
Copyright (c) 2022, jupyter-lsp contributors
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

atest/05_Features/Completion.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ Activate Completer Suggestion
400400
Capture Page Screenshot ${i}-completions.png
401401
${matching_active_elements} = Get Element Count ${active_suggestion}
402402
LOG ${matching_active_elements}
403-
IF ${matching_active_elements} == 1 BREAK
403+
IF ${matching_active_elements} == 1 BREAK
404404
Press Keys None DOWN
405405
Sleep 0.1s
406406
END

binder/overrides.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@krassowski/jupyterlab-lsp:plugin": {
2+
"@jupyter-lsp/jupyterlab-lsp:plugin": {
33
"language_servers": {
44
"robotframework_ls": {
55
"serverSettings": {

binder/postBuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pushd python_packages/jupyter_lsp
99
python setup.py sdist bdist_wheel
1010
python -m pip install -e . --ignore-installed --no-deps -vv
1111
jupyter serverextension enable --sys-prefix --py jupyter_lsp
12+
jupyter server extension enable --sys-prefix --py jupyter_lsp
1213
popd
1314

1415
# Install the labextension

docs/Language Servers.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
"| Scala | [scalameta/metals] | (2) |\n",
361361
"\n",
362362
"[jupyrdf/graph-lsp]: https://github.com/jupyrdf/graph-lsp\n",
363-
"[CybercentreCanada/jupyterlab-sql-editor]:\n",
363+
"[cybercentrecanada/jupyterlab-sql-editor]:\n",
364364
" https://github.com/CybercentreCanada/jupyterlab-sql-editor\n",
365365
"[jupyter-lsp/json-lsp]: https://github.com/jupyter-lsp/json-lsp\n",
366366
"[jupyter-lsp/yaml-lsp]: https://github.com/jupyter-lsp/yaml-lsp\n",

package.json

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
{
22
"dependencies": {},
33
"devDependencies": {
4-
"@typescript-eslint/eslint-plugin": "^4.8.1",
5-
"@typescript-eslint/parser": "^4.8.1",
4+
"@typescript-eslint/eslint-plugin": "^5.46.0",
5+
"@typescript-eslint/parser": "^5.46.0",
66
"bash-language-server": "^3.0.0",
77
"dictionary-en": "^3.0.0",
88
"dockerfile-language-server-nodejs": "^0.7.1",
9-
"eslint": "^7.14.0",
10-
"eslint-config-prettier": "^6.15.0",
11-
"eslint-plugin-import": "^2.22.1",
12-
"eslint-plugin-jest": "^24.1.3",
13-
"eslint-plugin-prettier": "^3.1.4",
14-
"eslint-plugin-react": "^7.21.5",
9+
"eslint": "^8.29.0",
10+
"eslint-config-prettier": "^8.5.0",
11+
"eslint-plugin-import": "^2.26.0",
12+
"eslint-plugin-jest": "^27.1.6",
13+
"eslint-plugin-prettier": "^4.2.1",
14+
"eslint-plugin-react": "^7.31.11",
1515
"husky": "^3.0.9",
16-
"jest-github-actions-reporter": "^1.0.2",
17-
"lerna": "^5.1.0",
16+
"jest-github-actions-reporter": "^1.0.3",
17+
"lerna": "^6.0.0",
1818
"npm-run-all": "^4.1.5",
1919
"precise-commits": "^1.0.2",
20-
"prettier": "^2.1.2",
20+
"prettier": "^2.8.1",
2121
"pyright": "^1.1",
22-
"sql-language-server": "^1.1.0",
23-
"typescript": "~4.1.3",
22+
"source-map-loader": "^4.0.1",
23+
"sql-language-server": "^1.2.1",
24+
"typescript": "~4.9.4",
2425
"typescript-language-server": "^0.6.4",
2526
"unified-language-server": "^0.3.0",
2627
"vscode-css-languageserver-bin": "^1.4.0",
2728
"vscode-html-languageserver-bin": "^1.4.0",
2829
"vscode-json-languageserver-bin": "^1.0.1",
2930
"vscode-json-languageservice": "^4.1.8",
30-
"yaml-language-server": "^1.0.0"
31+
"yaml-language-server": "^1.0.0",
32+
"yarn-deduplicate": "^6.0.0"
3133
},
3234
"husky": {
3335
"hooks": {}
@@ -39,10 +41,15 @@
3941
},
4042
"private": true,
4143
"resolutions": {
42-
"**/node-gyp": "8.4.1"
44+
"**/node-gyp": "8.4.1",
45+
"prettier": "^2.8.1",
46+
"typescript": "~4.9.4",
47+
"verdaccio": "file:scripts/_not-a-package",
48+
"decode-uri-component": "^0.2.1"
4349
},
4450
"scripts": {
45-
"bootstrap": "jlpm --no-optional --prefer-offline && lerna bootstrap && jlpm clean && jlpm build && jlpm lint",
51+
"bootstrap": "jlpm --no-optional --prefer-offline && jlpm deduplicate && lerna bootstrap && jlpm clean && jlpm build && jlpm lint",
52+
"deduplicate": "yarn-deduplicate -s fewer --fail",
4653
"build": "jlpm build:schema && jlpm build:meta && jlpm build:ws && jlpm build:labextension",
4754
"build:schema": "lerna run build:schema --stream",
4855
"build:meta": "lerna run build --stream --scope @jupyter-lsp/jupyterlab-lsp-metapackage",

0 commit comments

Comments
 (0)