Skip to content

Commit d3aae44

Browse files
authored
Merge pull request #917 from swyddfa/develop
New Release
2 parents 44daa57 + 7d98957 commit d3aae44

Some content is hidden

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

52 files changed

+1978
-1082
lines changed

.github/workflows/lsp-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
test:
4343
name: "Python v${{ matrix.python-version }} -- ${{ matrix.os }}"
4444
runs-on: ${{ matrix.os }}
45+
timeout-minutes: 20
4546
strategy:
4647
fail-fast: false
4748
matrix:

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ ci:
44
repos:
55

66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.6.0
7+
rev: v5.0.0
88
hooks:
99
- id: check-yaml
1010
- id: end-of-file-fixer
1111
- id: trailing-whitespace
1212

1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.6.5
14+
rev: v0.6.9
1515
hooks:
1616
- id: ruff
1717
name: ruff (esbonio)

.vscode/launch.json

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
{
22
"version": "0.2.0",
3-
"inputs": [
4-
{
5-
"id": "workspace",
6-
"type": "pickString",
7-
"description": "Pick the workspace root for this session",
8-
"default": "code/",
9-
"options": [
10-
{
11-
"label": "code",
12-
"value": "code"
13-
},
14-
{
15-
"label": "docs",
16-
"value": "docs"
17-
},
18-
{
19-
"label": "demo",
20-
"value": "lib/esbonio/tests/workspaces/demo"
21-
},
22-
]
23-
}
24-
],
3+
"inputs": [],
254
"configurations": [
265
{
276
"name": "VSCode Extension",
@@ -38,39 +17,9 @@
3817
],
3918
"preLaunchTask": "${defaultBuildTask}",
4019
},
41-
{
42-
"name": "VSCode Web Extension",
43-
"type": "extensionHost",
44-
"debugWebWorkerHost": true,
45-
"request": "launch",
46-
"args": [
47-
"--extensionDevelopmentPath=${workspaceRoot}/code",
48-
"--extensionDevelopmentKind=web",
49-
"--folder-uri=${workspaceRoot}/${input:workspace}"
50-
],
51-
"outFiles": [
52-
"${workspaceRoot}/code/dist/browser/**/*.js"
53-
],
54-
"preLaunchTask": "${defaultBuildTask}",
55-
},
56-
{
57-
"name": "Docs",
58-
"type": "python",
59-
"request": "launch",
60-
"module": "sphinx.cmd.build",
61-
"args": [
62-
"-M",
63-
"html",
64-
".",
65-
"_build",
66-
"-Ea"
67-
],
68-
"python": "${command:python.interpreterPath}",
69-
"cwd": "${workspaceFolder}/docs"
70-
},
7120
{
7221
"name": "pytest: esbonio",
73-
"type": "python",
22+
"type": "debugpy",
7423
"request": "launch",
7524
"module": "pytest",
7625
"justMyCode": false,
@@ -84,19 +33,20 @@
8433
},
8534
{
8635
"name": "Python: Attach",
87-
"type": "python",
36+
"type": "debugpy",
8837
"request": "attach",
8938
"connect": {
9039
"host": "localhost",
9140
"port": 5678
9241
},
9342
"pathMappings": [
9443
{
95-
"localRoot": "${workspaceFolder}/lib/esbonio",
44+
"localRoot": "${workspaceFolder}",
9645
"remoteRoot": "."
9746
}
9847
],
99-
"justMyCode": false
48+
"justMyCode": false,
49+
"subProcess": true,
10050
},
10151
],
10252
}

code/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
bundled/libs
1+
bundled
22
node_modules
3+
*.vsix

code/.vscodeignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
.bumpversion.cfg
2+
.gitignore
23
.tox
34
.pytest_cache
45
**/__pycache__/**
56
**/.pyc
6-
**/requirements.in
7-
**/requirements.txt
7+
**/requirements-*.in
8+
**/requirements-*.txt
89
changes
910
CHANGES.rst
1011
dist/**/*.map
1112
dist/test
13+
esbuild.mjs
14+
hatch.toml
15+
Makefile
1216
node_modules
1317
pyproject.toml
1418
src/**

code/Makefile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ release: $(TOWNCRIER) $(HATCH) $(PY)
2525
$(PY) ../scripts/make_release.py vscode
2626

2727
# Ensures the version of esbonio in ../lib/esbonio is used.
28-
dev-deps: node_modules/.installed bundled/libs/.installed
28+
dev-deps: node_modules/.installed bundled/libs/.installed bundled/env/.installed
2929
-test -d bundled/libs/esbonio-*.dist-info && rm -r bundled/libs/esbonio-*.dist-info
3030
-test -L bundled/libs/esbonio || rm -r bundled/libs/esbonio
3131
if [ ! -f bundled/libs/esbonio/__main__.py ]; then \
@@ -34,17 +34,28 @@ dev-deps: node_modules/.installed bundled/libs/.installed
3434
fi
3535

3636
# Ensures the latest version of esbonio from PyPi is used.
37-
release-deps: node_modules/.installed bundled/libs/.installed
37+
release-deps: node_modules/.installed bundled/libs/.installed bundled/env/.installed
3838
-test -L bundled/libs/esbonio && rm bundled/libs/esbonio
3939
test -d bundled/libs/esbonio-*.dist-info || $(PY39) -m pip install -t ./bundled/libs --no-cache-dir --implementation py --no-deps --upgrade $(ESBONIO)
4040

41-
requirements.txt: $(HATCH) requirements.in
42-
$(HATCH) run deps:update
41+
# Hatch is only required to exist, don't rebuild this target if it happens to be newer!
42+
# https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html
43+
requirements-libs.txt: requirements-libs.in | $(HATCH)
44+
$(HATCH) run deps:update-libs
4345

44-
bundled/libs/.installed: $(PY39) requirements.txt
46+
requirements-env.txt: requirements-env.in | $(HATCH)
47+
$(HATCH) run deps:update-env
48+
49+
bundled/libs/.installed: $(PY39) requirements-libs.txt
4550
-test -d bundled/libs && rm -r bundled/libs
4651
$(PY39) --version
47-
$(PY39) -m pip install -t ./bundled/libs --no-cache-dir --implementation py --no-deps --upgrade -r ./requirements.txt
52+
$(PY39) -m pip install -t ./bundled/libs --no-cache-dir --implementation py --no-deps --upgrade -r ./requirements-libs.txt
53+
touch $@
54+
55+
bundled/env/.installed: $(PY39) requirements-env.txt
56+
-test -d bundled/env && rm -r bundled/env
57+
$(PY39) --version
58+
$(PY39) -m pip install -t ./bundled/env --no-cache-dir --implementation py --no-deps --upgrade -r ./requirements-env.txt
4859
touch $@
4960

5061
node_modules/.installed: package.json package-lock.json $(NPM)

code/changes/875.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ensure scrolling is still synchronised, even after scrolling the preview window

code/changes/896.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The preview window should now work when using Codespaces

code/changes/915.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The VSCode extension now provides a fallback environment in the event the user has not configured `esbonio.sphinx.pythonCommand`. The environment only includes Sphinx itself and the MyST parser but it should be enough to provide basic support

code/changes/917.misc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update bundled version of the language server to `1.0.0b8`

0 commit comments

Comments
 (0)