Skip to content

Neovim CI tests #2333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 534 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
534 commits
Select commit Hold shift + click to select a range
27add7e
refactor: delete event emitter old code
May 3, 2024
18b8144
refactor: move updateTextEditor() to NeovimIDE class
May 3, 2024
f694bf2
refactor: delete old testing code
May 3, 2024
1ab8f4a
refactor: cleanup
May 3, 2024
8301641
refactor: cleanup
May 3, 2024
d70140a
docs: todo
May 3, 2024
ee34402
feat: add lua and vim files required to cursorless-neovim that will b…
May 3, 2024
c607594
build: initial deployment scripts
May 3, 2024
5107f72
docs: cleanup todo
May 3, 2024
5a731c9
remove old file
May 3, 2024
bde4709
remove old file
May 3, 2024
b633f0c
docs: comment
May 3, 2024
0c2a7c5
docs: comment
May 3, 2024
e8ca1f9
docs: comments
May 3, 2024
c36b2b7
refactor: make it similar to vscode to ease review
May 3, 2024
85872ee
refactor: make similar to vscode
May 3, 2024
4f46c0c
refactor: delete old comments
May 3, 2024
2b28a0e
Merge remote-tracking branch 'upstream/main' into nvim-talon
May 4, 2024
11e123e
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 4, 2024
02924cc
typo
May 4, 2024
8f4e6a7
refactor: remove few TODOs
May 4, 2024
d9d3813
after running pnpm -w fix:meta
May 4, 2024
61e19d0
Merge remote-tracking branch 'upstream/main' into nvim-talon
May 13, 2024
4cf6e25
Attempt to fix the tests in CI
May 13, 2024
b07d816
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 13, 2024
189fb32
update neovim deploy script to mimic what we do for cursorless-talon …
May 13, 2024
230fda7
Merge branch 'nvim-talon' of https://github.com/saidelike/cursorless …
May 13, 2024
4753374
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 13, 2024
c883dd4
add the test functions because even if they are not used in a non deb…
May 13, 2024
97a344b
gitignore
May 13, 2024
a59c272
add pre compiled command-server
May 13, 2024
f09a364
build: fix deploy script to include command server
May 13, 2024
d385f4a
docs: add contributing docs for neovim
May 13, 2024
9bcb655
Merge branch 'nvim-talon' of https://github.com/saidelike/cursorless …
May 13, 2024
6f3442e
refactor: change the command-server shortcut to make it less likely t…
May 13, 2024
d442e6e
fix: remove the clipboard since it want to be testing after the action
May 13, 2024
9ca24a3
build: ignore copy to clipboard test for now
May 13, 2024
c164016
build: attempt to fix the packages versions to match vscode
May 13, 2024
2c31af9
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 13, 2024
c905ea0
build: remove unused tests from different projects
May 13, 2024
32a9d03
Merge branch 'nvim-talon' of https://github.com/saidelike/cursorless …
May 13, 2024
30b6290
changes from cursorless.nvim
May 13, 2024
250f0bf
refactor: delete unused code
May 14, 2024
22b5564
refactor: delete unused code
May 14, 2024
56246ad
refactor: renamed task label
May 14, 2024
5755d55
refactor: renamed task label
May 14, 2024
5f20a30
build: depend on TSBuild here like we do for vscode tests, as it's pr…
May 14, 2024
901c93a
build: remove unnecessary dependencies
May 14, 2024
68dd690
build: remove dead code that has been moved to git issue
May 14, 2024
b7f84aa
docs: remove none required neovim plugins
May 14, 2024
7d0d154
refactor: remove dead code
May 14, 2024
e551bf2
refactor: remove dead code
May 14, 2024
a9ad487
fix: only sleeping one second seems enough before running the tests s…
May 14, 2024
0104a22
feat: initial CI test code (untested)
May 14, 2024
c9ab064
refactor: disable more stuff so it's faster to run
May 14, 2024
86e0b9a
build: attempt to use themis.vim
May 14, 2024
9c9fd5f
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 14, 2024
755e1c9
feat: attempt to call TestHarnessRun() from themis.vim
May 15, 2024
5c85a89
test: attempt to run the test framework synchronously
May 15, 2024
c1896d1
revert to run tests asynchronously as otherwise it hangs so is not us…
May 15, 2024
5710738
build: populate a dist/ folder for neovim
May 15, 2024
25d5afa
refactor: enable debug for now to understand when it hangs
May 15, 2024
6410e28
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 15, 2024
09feff5
fix: other themis attempt
May 15, 2024
2daa0f0
Merge branch 'neovim-test-ci' of https://github.com/saidelike/cursorl…
May 15, 2024
3ca3968
fix: disable as "# Vim(let):E117: Unknown function: TestHarnessRun"
May 15, 2024
66e4890
build: pre commit config for lua
May 16, 2024
3f2a56d
build: stylua and luacheck config files
May 16, 2024
e6bffee
build: recommendations from lua extensions in vscode and fix the talo…
May 16, 2024
da2b00b
build: add vscode settings for lua
May 16, 2024
414882f
Merge remote-tracking branch 'upstream/main' into neovim-test-ci
May 16, 2024
e73ed80
refactor: disable Themis tests
May 16, 2024
ba8910f
feat: start neovim
May 16, 2024
bd34a1e
build: more CI stuff
May 16, 2024
bdf5ee1
more ci
May 16, 2024
88c4a82
feat: ci stuff
May 16, 2024
f0e4128
build: pre-commit ignore js for now
May 16, 2024
e28d2f2
add already packaged cursorless.nvim to speed up things in CI for now
May 16, 2024
9762dd8
more ci stuff
May 16, 2024
f033338
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 16, 2024
4db143b
temp stuff
May 16, 2024
2f53f1c
more ci
May 16, 2024
308bb70
Merge branch 'neovim-test-ci' of https://github.com/saidelike/cursorl…
May 16, 2024
b88465a
more CI
May 16, 2024
51bd551
ci
May 16, 2024
a37bdfa
ci
May 16, 2024
73c64de
ci 1
May 16, 2024
7013b7f
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 16, 2024
773d5be
ci 2
May 16, 2024
f538415
Merge branch 'neovim-test-ci' of https://github.com/saidelike/cursorl…
May 16, 2024
aa0b524
ci 4
May 16, 2024
cc2d734
ci: tail file
May 16, 2024
2b4c1e8
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 16, 2024
16d260c
ci: tail nvim-data/log
May 16, 2024
65bd946
more ci
May 16, 2024
7ba3a78
Merge branch 'neovim-test-ci' of https://github.com/saidelike/cursorl…
May 16, 2024
c8c0d4e
minor
May 16, 2024
2b567de
ci worked locally
May 16, 2024
44cbca5
testing ${{ github.workspace }}
May 16, 2024
2efcbf8
working locally
May 16, 2024
5b01883
nvim-qt.exe does not exist on CI but exists locally?
May 16, 2024
3c90337
no qt version in stable 0.10 actually
May 16, 2024
1cecf83
testing nvim 0.9.5
May 16, 2024
630847f
fix version to 0.9.5
May 16, 2024
5654aaa
attempt to save snapshot
May 16, 2024
200b271
disable logs hoping to get a screenshot
May 16, 2024
c03fe84
working test-harness simulating what is on CI, that works locally
May 16, 2024
5886445
force compile to get out\ folder created
May 17, 2024
e4fdc16
Update test.yml
saidelike May 17, 2024
d2b672c
try log at startup
May 17, 2024
6ae4af1
try logging harder
May 17, 2024
be90ff0
checking if vim.log is created
May 17, 2024
8965ffb
attempt to inherit stdout to debug nvim.exe startup
May 17, 2024
4f57965
spawn sync
May 17, 2024
999f606
test
May 17, 2024
3d9ced5
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
c7924f8
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
eef5390
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
07ef815
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 17, 2024
14a5dd4
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
59a6307
Update test.yml
saidelike May 17, 2024
46799ed
Update test.yml - cleanup for testing on Linux
saidelike May 17, 2024
5b3b5e3
Update test.yml
saidelike May 17, 2024
bf059e2
Update launchNeovimAndRunTests.ts for Linux
saidelike May 17, 2024
2ec2e1e
Update launchNeovimAndRunTests.ts typo
saidelike May 17, 2024
aac70f4
Update launchNeovimAndRunTests.ts fix
saidelike May 17, 2024
6cc9ef7
Update launchNeovimAndRunTests.ts fix
saidelike May 17, 2024
737b24f
Update test.yml Linux config path test
saidelike May 17, 2024
66d2b57
Update launchNeovimAndRunTests.ts config file linux
saidelike May 17, 2024
e8c9570
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
de4eba6
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
d887cb0
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
f66051c
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
01b4c19
Create init.vim
saidelike May 17, 2024
cd670ef
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
c89b99b
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
5640cf1
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
fd69e29
Update test.yml
saidelike May 17, 2024
a4d4ae1
Update init.lua
saidelike May 17, 2024
7346fbf
Update init.lua
saidelike May 17, 2024
b303f93
Update launchNeovimAndRunTests.ts
saidelike May 17, 2024
b419b04
Update test.yml
saidelike May 17, 2024
dbfcd58
Update runAllTests.ts
saidelike May 17, 2024
ff62737
Update index.ts
saidelike May 18, 2024
b420ce6
Update runAllTests.ts
saidelike May 18, 2024
344f3c5
Update index.ts
saidelike May 18, 2024
9a3469b
Delete dist/cursorless.nvim directory
saidelike May 18, 2024
bb36f71
Update populate-cursorless-nvim.sh
saidelike May 18, 2024
b2f6d5f
Update test.yml
saidelike May 18, 2024
8984977
Update test.yml
saidelike May 18, 2024
8c05e0d
Update populate-cursorless-nvim.sh
saidelike May 18, 2024
c27fa5c
Update package.json
saidelike May 18, 2024
68c7868
Update test.yml
saidelike May 18, 2024
5adce19
Update launchNeovimAndRunTests.ts
saidelike May 18, 2024
6463155
Update runAllTests.ts
saidelike May 18, 2024
33b2e3a
Update init.lua
saidelike May 18, 2024
0254762
Update index.ts
saidelike May 18, 2024
8baa6d7
Update launchNeovimAndRunTests.ts
saidelike May 18, 2024
12631a1
Update index.ts
saidelike May 18, 2024
f35c157
Update launchNeovimAndRunTests.ts
saidelike May 18, 2024
ce89371
Update test.yml
saidelike May 18, 2024
5c2b76e
Update launchNeovimAndRunTests.ts
saidelike May 18, 2024
a9f0620
Update init.lua
saidelike May 18, 2024
0de88ec
Update launchNeovimAndRunTests.ts
saidelike May 18, 2024
d40ee68
Update launchNeovimAndRunTests.ts
saidelike May 18, 2024
122e48a
Update launchNeovimAndRunTests.ts
saidelike May 18, 2024
d6925e4
try other node version
May 18, 2024
711a2a0
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 18, 2024
b0e7d6c
temp: disable 10 min timeout for now for CI
May 20, 2024
d1ac2a3
test
May 20, 2024
f7247ae
test
May 20, 2024
08c6ed5
test
May 20, 2024
4c70fda
test
May 20, 2024
4348348
test
May 20, 2024
bc1b34f
test
May 20, 2024
fbec7f6
test
May 20, 2024
27a5b19
test
May 20, 2024
75603ef
test
May 20, 2024
97969ce
test
May 20, 2024
b5217f3
test
May 20, 2024
52b4dd1
delete workflows to speed up testing for now
May 20, 2024
66cdcd7
test
May 20, 2024
064be24
test
May 20, 2024
814b5e5
test
May 20, 2024
782ac83
comment prints
May 20, 2024
68952ed
test
May 20, 2024
2dd6e21
test
May 20, 2024
1184130
test
May 20, 2024
d696544
test
May 20, 2024
3af15e6
test to skip ":enew" command
May 21, 2024
f7d3660
commenting to test if this avoids hanging problem in CI?
May 21, 2024
fccfab5
test
May 21, 2024
e3a861f
restore killing neovim at the end
May 21, 2024
343d8a1
test
May 21, 2024
d2749db
t
May 21, 2024
fbeb382
t
May 21, 2024
e617bd4
test
May 21, 2024
41168b0
disable cmd-server
May 21, 2024
fdff6f0
attempt from command line
May 21, 2024
30bfb2d
headless test
May 21, 2024
81b0440
t
May 21, 2024
33a5f1d
silent
May 21, 2024
ae3a545
revert
May 21, 2024
77be066
attempt to inherit stdio
May 21, 2024
09011f0
test
May 21, 2024
9d13631
t
May 21, 2024
a270185
t
May 21, 2024
0d1d8d5
test
May 21, 2024
8389826
enable all tests
May 21, 2024
6e7b2ac
increase wait
May 21, 2024
e83f342
test
May 21, 2024
601ade9
test
May 21, 2024
75984dc
go back to one test to solve other problems
May 21, 2024
59677c1
end detection?
May 21, 2024
9217756
test
May 21, 2024
ae12718
test
May 21, 2024
50e159c
test
May 21, 2024
e061127
cleanup
May 21, 2024
5c9fa26
test
May 21, 2024
c2030c3
test
May 21, 2024
99079e1
Merge remote-tracking branch 'upstream/main' into neovim-test-ci
May 21, 2024
083cf6d
test
May 21, 2024
8228a56
disable noice.nvim
May 21, 2024
aa0b83a
pnpm install
May 21, 2024
39b0bd9
test
May 21, 2024
6e20543
test
May 21, 2024
148f0a4
test
May 21, 2024
72b2382
test
May 21, 2024
40524e0
fix?
May 21, 2024
8026f8f
revert
May 21, 2024
eb05dcf
t
May 21, 2024
696dd8c
t
May 21, 2024
5dd27c7
test
May 21, 2024
f90864c
test
May 22, 2024
2c1c888
t
May 22, 2024
21aeb65
test
May 22, 2024
488ed51
t
May 22, 2024
4e56933
t
May 22, 2024
7a9128f
t
May 22, 2024
734f7c3
t
May 22, 2024
9ecc33f
t
May 22, 2024
afe293b
t
May 22, 2024
88084fd
t
May 22, 2024
622b7eb
t
May 22, 2024
eeb7f3f
t
May 22, 2024
1198850
t
May 22, 2024
d7c5d00
restore files
May 22, 2024
538f1e8
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] May 22, 2024
f4b601b
t
May 22, 2024
280cef1
Merge branch 'neovim-test-ci' of https://github.com/saidelike/cursorl…
May 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,41 @@ jobs:
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}

publish-neovim-extension:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment: production
env:
CURSORLESS_REPO_ROOT: ${{ github.workspace }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CURSORLESS_BOT_TOKEN }}
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- run: pnpm --color install
- run: pnpm --color compile
- run: pnpm --color --filter '!cursorless-org' --filter '!cursorless-org-*' build
env:
CURSORLESS_DEPLOY: true
- name: Configure GPG Key
run: |
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
env:
GPG_SIGNING_KEY: ${{ secrets.CURSORLESS_BOT_GPG_SIGNING_KEY }}
- name: git config
run: |
git config user.name cursorless-bot
git config user.email [email protected]
git config user.signingkey A9387720AFC62221
git config commit.gpgsign true
- name: Push compiled files to cursorless.nvim plugin repo
run: bash -x scripts/deploy-cursorless-nvim.sh

push-cursorless-talon:
name: Push cursorless-talon subrepo
runs-on: ubuntu-latest
Expand Down
61 changes: 37 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
vscode_version: [stable]
app_version: [stable]
include:
- os: ubuntu-latest
vscode_version: legacy
app_version: legacy
runs-on: ${{ matrix.os }}
env:
VSCODE_VERSION: ${{ matrix.vscode_version }}
APP_VERSION: ${{ matrix.app_version }}
VSCODE_CRASH_DIR: ${{ github.workspace }}/artifacts/dumps
VSCODE_LOGS_DIR: ${{ github.workspace }}/artifacts/logs
CURSORLESS_REPO_ROOT: ${{ github.workspace }}
HOME_ROOT: ${{ github.workspace }}/../../../
steps:
- uses: actions/checkout@v4
- run: corepack enable
Expand All @@ -38,28 +39,40 @@ jobs:
- run: pnpm --color install
- run: pnpm --color compile
- run: pnpm --color --filter '!cursorless-org' --filter '!cursorless-org-*' build
- run: xvfb-run -a pnpm --color test
if: runner.os == 'Linux'
- run: pnpm --color test
if: runner.os != 'Linux'
- name: Create vscode dist that can be installed locally
run: pnpm -F @cursorless/cursorless-vscode populate-dist --local-install
if: runner.os == 'Linux' && matrix.vscode_version == 'stable'
- name: Test create vsix
id: createVsix
uses: HaaLeo/publish-vscode-extension@v1
# - run: xvfb-run -a pnpm --color test
# if: runner.os == 'Linux'
# - run: pnpm --color test
# if: runner.os != 'Linux'
- run: bash -x scripts/install-neovim-dependencies.sh
- uses: rhysd/action-setup-vim@v1
if: matrix.app_version != 'legacy'
id: vim
with:
pat: none
packagePath: packages/cursorless-vscode/dist
dryRun: true
- run: mv ${{ steps.createVsix.outputs.vsixPath }} cursorless-development.vsix
if: runner.os == 'Linux' && matrix.vscode_version == 'stable'
- name: Upload vsix
uses: actions/upload-artifact@v4
if: runner.os == 'Linux' && matrix.vscode_version == 'stable'
with:
name: vsix
path: cursorless-development.vsix
version: ${{ matrix.app_version }}
neovim: true
- name: Run neovim unit tests using test-harness
run: xvfb-run -a pnpm -F @cursorless/test-harness testNeovim
if: runner.os == 'Linux' && matrix.app_version == 'stable'
env:
APP_PATH: ${{ steps.vim.outputs.executable }}
# - name: Create vscode dist that can be installed locally
# run: pnpm -F @cursorless/cursorless-vscode populate-dist --local-install
# if: runner.os == 'Linux' && matrix.app_version == 'stable'
# - name: Test create vsix
# id: createVsix
# uses: HaaLeo/publish-vscode-extension@v1
# with:
# pat: none
# packagePath: packages/cursorless-vscode/dist
# dryRun: true
# - run: mv ${{ steps.createVsix.outputs.vsixPath }} cursorless-development.vsix
# if: runner.os == 'Linux' && matrix.app_version == 'stable'
# - name: Upload vsix
# uses: actions/upload-artifact@v4
# if: runner.os == 'Linux' && matrix.app_version == 'stable'
# with:
# name: vsix
# path: cursorless-development.vsix
- name: Archive logs
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_modules
*.vsix
/package-lock.json
*.DS_Store
.luacheckcache

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

Expand Down Expand Up @@ -42,3 +43,7 @@ next-env.d.ts

# test subset config
packages/test-harness/testSubsetGrep.properties

# neovim symlinks
cursorless.nvim/node/cursorless-neovim
cursorless.nvim/node/test-harness
8 changes: 8 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
std = luajit
cache = true
codes = true
ignore = { "432" }

globals = {
"vim",
}
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ repos:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/rwxcorp/pre-commit-lua.git
rev: v1.0.0
hooks:
- id: stylua
- id: luacheck
5 changes: 5 additions & 0 deletions .stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
column_width = 100
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferSingle"
6 changes: 4 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"jrieken.vscode-tree-sitter-query",
"wenkokke.tree-sitter-talon",
"usernamehw.commands"
"wenkokke.talonfmt-vscode",
"usernamehw.commands",
"sumneko.lua",
"JohnnyMorganz.stylua"
]
}
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run neovim extension",
"request": "attach",
"processName": "node.exe",
"skipFiles": ["<node_internals>/**"],
"preLaunchTask": "Build neovim extension",
"type": "node"
},
{
"name": "Neovim extension tests",
"request": "attach",
"processName": "node.exe",
"skipFiles": ["<node_internals>/**"],
"preLaunchTask": "Build neovim extension tests",
"type": "node"
},
{
"name": "Run extension",
"type": "extensionHost",
Expand Down
9 changes: 7 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"editor.defaultFormatter": "AndreasArvidsson.andreas-talon"
},
"[talon]": {
"editor.defaultFormatter": "wenkokke.tree-sitter-talon"
"editor.defaultFormatter": "wenkokke.talonfmt-vscode"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
Expand All @@ -25,5 +25,10 @@
"files.eol": "\n",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.workingDirectories": [{ "pattern": "packages/*/" }]
"eslint.workingDirectories": [{ "pattern": "packages/*/" }],
"Lua.runtime.version": "Lua 5.1",
"Lua.diagnostics.globals": ["vim", "talon"],
"[lua]": {
"editor.defaultFormatter": "JohnnyMorganz.stylua"
}
}
112 changes: 112 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,118 @@
"isDefault": true
}
},
{
"label": "Build neovim extension",
"dependsOn": [
"neovim start",
"ESBuild-neovim-registry",
"ESBuild-cursorless-neovim"
],
"group": "build"
},
{
"label": "Build neovim extension tests",
"dependsOn": [
"neovim test start",
"ESBuild-neovim-registry",
"ESBuild-cursorless-neovim",
"TSBuild",
"Build test harness"
],
"group": "build"
},
{
"label": "ESBuild-neovim-registry",
"type": "npm",
"script": "compile",
"path": "packages/neovim-registry",
"dependsOn": [],
"presentation": {
"reveal": "silent"
},
"group": "build"
},
{
"label": "ESBuild-cursorless-neovim",
"type": "npm",
"script": "compile",
"path": "packages/cursorless-neovim",
"dependsOn": ["ESBuild-neovim-common"],
"presentation": {
"reveal": "silent"
},
"group": "build"
},
{
"label": "ESBuild-common",
"type": "npm",
"script": "compile",
"path": "packages/common",
"presentation": {
"reveal": "silent"
},
"group": "build"
},
{
"label": "ESBuild-cursorless-engine",
"type": "npm",
"script": "compile",
"path": "packages/cursorless-engine",
"presentation": {
"reveal": "silent"
},
"group": "build"
},
{
"label": "ESBuild-neovim-common",
"type": "npm",
"script": "compile",
"path": "packages/neovim-common",
"presentation": {
"reveal": "silent"
},
"group": "build"
},
{
"label": "neovim start",
"type": "process",
"windows": {
"command": "powershell",
"args": [
"(New-Object -ComObject WScript.Shell).Run(\"\"\"nvim\"\"\", 1, $false)"
]
},
"group": "build",
"options": {
"env": {
"CURSORLESS_REPO_ROOT": "${workspaceFolder}",
"NVIM_NODE_HOST_DEBUG": "1",
"NVIM_NODE_LOG_FILE": "${workspaceFolder}/packages/cursorless-neovim/out/nvim_node.log",
"NVIM_NODE_LOG_LEVEL": "info",
"CURSORLESS_MODE": "development"
}
}
},
{
"label": "neovim test start",
"type": "process",
"windows": {
"command": "powershell",
"args": [
"(New-Object -ComObject WScript.Shell).Run(\"\"\"nvim\"\"\", 1, $false)"
]
},
"group": "build",
"options": {
"env": {
"CURSORLESS_REPO_ROOT": "${workspaceFolder}",
"NVIM_NODE_HOST_DEBUG": "1",
"NVIM_NODE_LOG_FILE": "${workspaceFolder}/packages/cursorless-neovim/out/nvim_node.log",
"NVIM_NODE_LOG_LEVEL": "info",
"CURSORLESS_MODE": "test"
}
}
},
{
"label": "Build extension only",
"dependsOn": ["Populate dist", "ESBuild"],
Expand Down
Loading