Skip to content

Commit 2c86562

Browse files
Merge branch 'main' into stableVscodeCi
2 parents 18768a1 + 66001b4 commit 2c86562

File tree

559 files changed

+13488
-7638
lines changed

Some content is hidden

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

559 files changed

+13488
-7638
lines changed

.github/actions/test-neovim-lua/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ runs:
77
with:
88
luaVersion: "luajit-openresty"
99
- uses: leafo/gh-actions-luarocks@v5
10+
with:
11+
luarocksVersion: "3.12.0"
1012
- shell: bash
1113
run: |
1214
luarocks install busted

.github/workflows/test.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,13 @@ jobs:
100100
env:
101101
NEOVIM_PATH: ${{ steps.vim.outputs.executable }}
102102

103-
# FIXME: Re-enable neovim lua tests
104-
# https://github.com/cursorless-dev/cursorless/issues/2946
105-
# - name: Run neovim lua tests (Linux)
106-
# uses: ./.github/actions/test-neovim-lua/
107-
# if: runner.os == 'Linux' && matrix.app_version == 'stable'
108-
109-
# - name: Run neovim lua lint (Linux)
110-
# uses: ./.github/actions/lint-lua-ls/
111-
# if: runner.os == 'Linux' && matrix.app_version == 'stable'
103+
- name: Run neovim lua tests (Linux)
104+
uses: ./.github/actions/test-neovim-lua/
105+
if: runner.os == 'Linux' && matrix.app_version == 'stable'
106+
107+
- name: Run neovim lua lint (Linux)
108+
uses: ./.github/actions/lint-lua-ls/
109+
if: runner.os == 'Linux' && matrix.app_version == 'stable'
112110

113111
- name: Create vscode dist that can be installed locally
114112
run: pnpm -F @cursorless/cursorless-vscode populate-dist --local-install
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tags: [enhancement]
3+
pullRequest: 2951
4+
---
5+
6+
- Migrated Clojure implementations from legacy to Tree sitter queries.

changelog/2025-06-migrateLatex.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tags: [enhancement]
3+
pullRequest: 2952
4+
---
5+
6+
- Migrated Latex implementations from legacy to Tree sitter queries.

changelog/2025-06-migrateRuby.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tags: [enhancement]
3+
pullRequest: 2949
4+
---
5+
6+
- Migrated Ruby implementations from legacy to Tree sitter queries.

changelog/2025-06-migrateScala.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tags: [enhancement]
3+
pullRequest: 2948
4+
---
5+
6+
- Migrated Scala implementations from legacy to Tree sitter queries.

cursorless-talon-dev/src/cursorless_test.talon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ test api extract decorated marks <user.cursorless_target>:
3232
test api alternate highlight nothing:
3333
user.private_cursorless_test_alternate_highlight_nothing()
3434

35-
test api parsed: user.cursorless_x_custom_command("chuck block")
35+
test api parsed chuck block: user.cursorless_x_custom_command("chuck block")
36+
test api parsed take next token: user.cursorless_x_custom_command("take next token")
37+
test api parsed change next instance: user.cursorless_x_custom_command("change next instance")
3638
test api parsed <user.cursorless_target>:
3739
user.cursorless_x_custom_command("chuck block <target>", cursorless_target)
3840
test api parsed <user.cursorless_target> plus <user.cursorless_target>:

cursorless-talon/src/check_community_repo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
]
99

1010
required_actions = [
11+
"code.language",
1112
"user.homophones_get",
1213
"user.insert_snippet_by_name",
1314
"user.reformat_text",

cursorless-talon/src/snippets/snippet_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def create(
6262
@dataclass
6363
class ListInsertionSnippet:
6464
type = "list"
65+
fallbackLanguage: str | None
6566
substitutions: dict[str, str] | None
6667
snippets: list[CustomInsertionSnippet]
6768

@@ -98,6 +99,7 @@ def create(snippet: CommunityWrapperSnippet):
9899
@dataclass
99100
class ListWrapperSnippet:
100101
type = "list"
102+
fallbackLanguage: str | None
101103
snippets: list[CustomWrapperSnippet]
102104

103105

cursorless-talon/src/snippets/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class UserActions:
100100
def insert_snippet_by_name(
101101
name: str, # pyright: ignore [reportGeneralTypeIssues]
102102
# Don't add optional: we need to match the type in community
103-
substitutions: dict[str, str] = None,
103+
substitutions: dict[str, str] = None, # type: ignore
104104
):
105105
action = InsertSnippetAction(
106106
get_list_insertion_snippet(name, substitutions),

0 commit comments

Comments
 (0)