Skip to content

Commit a7cee84

Browse files
authored
Merge branch 'quarto-dev:main' into feat/protect-options-formatting
2 parents d11c117 + 4a2e154 commit a7cee84

File tree

221 files changed

+29793
-7466
lines changed

Some content is hidden

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

221 files changed

+29793
-7466
lines changed

.git-blame-ignore-revs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file lists revisions of large-scale formatting/style changes so that
2+
# they can be excluded from git blame results.
3+
#
4+
# To set this file as the default ignore file for git blame, run:
5+
# $ git config blame.ignoreRevsFile .git-blame-ignore-revs
6+
7+
# Format vscode extention and LSP files consistently (#748)
8+
a1513effc913e6e59651256d79295da37134dbbf

.github/workflows/ci.yaml renamed to .github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
branches:
77
- main
88
paths:
9+
- 'apps/lsp/**'
910
- 'apps/vscode/**'
1011
pull_request:
1112
branches:
1213
- main
1314
paths:
15+
- 'apps/lsp/**'
1416
- 'apps/vscode/**'
1517
workflow_dispatch:
1618

.github/workflows/test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
name: Test VS Code Extension
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
workflow_dispatch:
12+
13+
jobs:
14+
test-extension:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: latest
22+
23+
- name: Update build environment and install XVFB
24+
run: |
25+
sudo apt-get -y update
26+
sudo apt-get -y install --fix-missing xvfb
27+
28+
- uses: quarto-dev/quarto-actions/setup@v2
29+
30+
- name: Build vscode extension
31+
run: |
32+
yarn install
33+
yarn run build-vscode
34+
35+
- name: Compile and run tests
36+
run: |
37+
yarn install --immutable --immutable-cache --check-cache
38+
xvfb-run yarn test-vscode

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ public/dist
1515
.luarc.json
1616
.ipynb_checkpoints
1717
/.luarc.json
18+
.vscode-test
19+
*.vsix

.vscode/launch.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
{
66
"version": "0.2.0",
77
"configurations": [
8-
98
{
109
"name": "Run VS Code Extension",
1110
"type": "extensionHost",
@@ -23,7 +22,9 @@
2322
"name": "Attach to VS Code LSP Server",
2423
"port": 6009,
2524
"restart": true,
26-
"outFiles": ["${workspaceRoot}/out/**/*.js"]
27-
},
28-
]
25+
"outFiles": [
26+
"${workspaceFolder}/apps/vscode/out/lsp/**/*.js"
27+
]
28+
}
29+
]
2930
}

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"editor.formatOnSave": true
55
},
66
"typescript.tsdk": "node_modules/typescript/lib",
7+
"editor.detectIndentation": false,
78
"editor.tabSize": 2,
9+
"editor.insertSpaces": true,
810
"files.insertFinalNewline": true,
911
"files.trimFinalNewlines": true,
10-
"files.trimTrailingWhitespace": true
12+
"files.trimTrailingWhitespace": true,
13+
"javascript.format.semicolons": "insert",
14+
"typescript.format.semicolons": "insert"
1115
}

.zed/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"languages": {
3+
"TypeScript": {
4+
"tab_size": 2,
5+
"hard_tabs": false,
6+
"ensure_final_newline_on_save": true,
7+
"remove_trailing_whitespace_on_save": true,
8+
"format_on_save": "on",
9+
"formatter": "language_server"
10+
}
11+
}
12+
}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Here is where you can find the source code for various parts of the Quarto syste
1313

1414
## Development
1515

16+
### VS Code Extension
17+
1618
To develop the Quarto VS Code extension, clone this repo, run `yarn`, then run the `yarn dev-vscode` command:
1719

1820
```bash
@@ -22,5 +24,4 @@ yarn dev-vscode # run development/debug version of extension
2224

2325
Use the VS Code **Run and Debug** pane in the activity bar to run a version of VS Code with the development build of the extension.
2426

25-
26-
27+
See our [`CONTRIBUTING`](https://github.com/quarto-dev/quarto/blob/main/apps/vscode/CONTRIBUTING.md) file for more information

apps/lsp/.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
22
root: true,
33
extends: ["custom-server"],
4+
rules: {
5+
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
6+
},
47
};

apps/lsp/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ const nodeSqlLiteWasm = '../../node_modules/node-sqlite3-wasm/dist/*.wasm';
2323

2424
runBuild({
2525
entryPoints: ['./src/index.ts'],
26-
outfile: './dist/lsp.js',
26+
outfile: '../vscode/out/lsp/lsp.js',
2727
assets: [
28-
{ from: [nodeSqlLiteWasm], to: './dist/' },
29-
{ from: ['./src/run.js'], to: './dist' },
30-
{ from: ['../../packages/editor-server/src/resources/**'], to: './dist/resources/' },
31-
{ from: ['../../packages/quarto-core/src/resources/**'], to: './dist/resources/' },
32-
{ from: ['./dist/**'], to: ['../vscode/out/lsp/'] }],
28+
{ from: [nodeSqlLiteWasm], to: '../vscode/out/lsp/' },
29+
{ from: ['./src/run.js'], to: '../vscode/out/lsp' },
30+
{ from: ['../../packages/editor-server/src/resources/**'], to: '../vscode/out/lsp/resources/' },
31+
{ from: ['../../packages/quarto-core/src/resources/**'], to: '../vscode/out/lsp/resources/' }
32+
],
3333
minify: !dev,
3434
dev
3535
})

0 commit comments

Comments
 (0)