Skip to content

Commit

Permalink
Revert "merge upstream"
Browse files Browse the repository at this point in the history
This reverts commit 5443020.
  • Loading branch information
fidgetingbits committed Mar 6, 2024
1 parent ce0ebd6 commit 072d038
Show file tree
Hide file tree
Showing 1,081 changed files with 11,528 additions and 33,912 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ trim_trailing_whitespace = false
[Makefile]
indent_style = tab

[**/{vendor,generated}/**]
[**/vendor/**]
charset = unset
end_of_line = unset
indent_size = unset
Expand Down
20 changes: 3 additions & 17 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"unused-imports",
"import",
"unicorn",
"mocha"
],
"plugins": ["@typescript-eslint", "unused-imports", "import"],
"rules": {
"import/no-relative-packages": "error",
"@typescript-eslint/consistent-type-assertions": [
Expand Down Expand Up @@ -58,10 +52,7 @@
"MemberExpression[object.property.name='constructor'][property.name='name']"
],
"no-throw-literal": "warn",
"semi": "off",
"unicorn/prefer-module": "error",
"mocha/no-skipped-tests": "error",
"mocha/no-exclusive-tests": "error"
"semi": "off"
},
"overrides": [
{
Expand All @@ -86,10 +77,5 @@
}
}
},
"ignorePatterns": [
"**/vendor/**/*.ts",
"**/vendor/**/*.js",
"**/out/**",
"**/generated/**"
]
"ignorePatterns": ["**/vendor/**/*.ts", "**/vendor/**/*.js", "**/out/**"]
}
5 changes: 1 addition & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
* @pokey @AndreasArvidsson

*keyboard* @pokey @josharian
*Keyboard* @pokey @josharian
* @pokey
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: package.json
node-version: 16
cache: pnpm
- run: pnpm --color install
- run: pnpm --color compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: package.json
node-version: 16
cache: pnpm
- run: pnpm --color install
- uses: pre-commit/action@v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: package.json
node-version: 16
cache: pnpm
- run: bash -x scripts/build-and-assemble-website.sh
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version-file: package.json
node-version: 16
cache: pnpm
- run: mkdir -p "${{ env.VSCODE_CRASH_DIR }}" "${{ env.VSCODE_LOGS_DIR }}"
shell: bash
Expand Down Expand Up @@ -72,5 +72,3 @@ jobs:
name: dumps
path: ${{ env.VSCODE_CRASH_DIR }}
if: failure()
- name: Forbid TODOs
run: ./scripts/forbid-todo.sh
21 changes: 10 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
exclude_types: [svg]
exclude: ^patches/.*\.patch$|\.scope$
exclude: patches/.*\.patch
- id: fix-byte-order-marker
- id: forbid-submodules
- id: mixed-line-ending
- id: trailing-whitespace
# Trailing whitespace breaks yaml files if you use a multiline string
# with a line that has trailing white space. Many of our recorded
# tests use strings with trailing white space to represent the final
# document contents. For example
# packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/ruby/changeCondition.yml
exclude: ^packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/.*/[^/]*\.yml$|\.scope$|/generated/|^patches/
exclude: ^packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/.*/[^/]*\.yml$
- repo: local
hooks:
- id: eslint
Expand All @@ -63,24 +62,24 @@ repos:
name: format-recorded-tests
files: ^packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/.*/[^/]*\.yml$
language: system
entry: pnpm exec ./packages/common/scripts/my-ts-node.js packages/cursorless-engine/src/scripts/transformRecordedTests/index.ts
entry: pnpm exec tsx --conditions=cursorless:bundler packages/cursorless-engine/src/scripts/transformRecordedTests/index.ts
- repo: local
hooks:
- id: check-recorded-test-marks
name: check-recorded-test-marks
files: ^packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/.*/[^/]*\.yml$
language: system
entry: pnpm exec ./packages/common/scripts/my-ts-node.js packages/cursorless-engine/src/scripts/transformRecordedTests/index.ts --check-marks
- repo: https://github.com/ikamensh/flynt
rev: "1.0.1"
entry: pnpm exec tsx --conditions=cursorless:bundler packages/cursorless-engine/src/scripts/transformRecordedTests/index.ts --check-marks
- repo: https://github.com/ikamensh/flynt/
rev: "0.78"
hooks:
- id: flynt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.260"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
**/vendor
**/generated

# We use our own format for our recorded yaml tests to keep them compact
/packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/**/*.yml
Expand Down
31 changes: 7 additions & 24 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"args": [
"--profile=cursorlessDevelopment",
"--extensionDevelopmentPath=${workspaceFolder}/packages/cursorless-vscode/dist",
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/dist/extensionTests.cjs"
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/out/runners/extensionTests"
],
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
Expand All @@ -55,7 +55,7 @@
"args": [
"--profile=cursorlessDevelopment",
"--extensionDevelopmentPath=${workspaceFolder}/packages/cursorless-vscode/dist",
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/dist/extensionTests.cjs"
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/out/runners/extensionTests"
],
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
"preLaunchTask": "Prepare test subset",
Expand All @@ -68,7 +68,7 @@
"name": "Talon tests",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/packages/test-harness/dist/runTalonTests.cjs",
"program": "${workspaceFolder}/packages/test-harness/out/scripts/runTalonTests",
"env": {
"CURSORLESS_TEST": "true",
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
Expand All @@ -84,7 +84,7 @@
"name": "Talon tests subset",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/packages/test-harness/dist/runTalonTests.cjs",
"program": "${workspaceFolder}/packages/test-harness/out/scripts/runTalonTests",
"env": {
"CURSORLESS_TEST": "true",
"CURSORLESS_RUN_TEST_SUBSET": "true",
Expand All @@ -101,7 +101,7 @@
"name": "Unit tests only",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/packages/test-harness/dist/runUnitTestsOnly.cjs",
"program": "${workspaceFolder}/packages/test-harness/out/scripts/runUnitTestsOnly",
"env": {
"CURSORLESS_TEST": "true",
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
Expand All @@ -125,7 +125,7 @@
"args": [
"--profile=cursorlessDevelopment",
"--extensionDevelopmentPath=${workspaceFolder}/packages/cursorless-vscode/dist",
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/dist/extensionTests.cjs"
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/out/runners/extensionTests"
],
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
Expand All @@ -147,7 +147,7 @@
"args": [
"--profile=cursorlessDevelopment",
"--extensionDevelopmentPath=${workspaceFolder}/packages/cursorless-vscode/dist",
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/dist/extensionTests.cjs"
"--extensionTestsPath=${workspaceFolder}/packages/test-harness/out/runners/extensionTests"
],
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
Expand All @@ -156,23 +156,6 @@
"!**/node_modules/**"
]
},
{
"name": "Update fixtures, unit tests only",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/packages/test-harness/dist/runUnitTestsOnly.cjs",
"env": {
"CURSORLESS_TEST": "true",
"CURSORLESS_TEST_UPDATE_FIXTURES": "true",
"CURSORLESS_REPO_ROOT": "${workspaceFolder}"
},
"outFiles": ["${workspaceFolder}/**/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
]
},
{
"name": "Docusaurus start",
"type": "node",
Expand Down
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@
],
"files.eol": "\n",
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.workingDirectories": [{ "pattern": "packages/*/" }]
"typescript.tsdk": "node_modules/typescript/lib"
}
52 changes: 5 additions & 47 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
"tasks": [
{
"label": "Build",
"dependsOn": [
"Populate dist",
"ESBuild",
"TSBuild",
"Build test harness"
],
"dependsOn": ["Populate dist", "ESBuild", "TSBuild"],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -26,19 +21,8 @@
"type": "npm",
"script": "esbuild",
"path": "packages/cursorless-vscode",
"dependsOn": ["Generate grammar"],
"presentation": {
"reveal": "silent"
},
"group": "build"
},
{
"label": "Build test harness",
"type": "npm",
"script": "build",
"path": "packages/test-harness",
"presentation": {
"reveal": "silent"
"reveal": "never"
},
"group": "build"
},
Expand All @@ -48,7 +32,7 @@
"script": "compile",
"problemMatcher": "$tsc",
"presentation": {
"reveal": "silent"
"reveal": "never"
},
"group": "build"
},
Expand All @@ -58,17 +42,7 @@
"script": "populate-dist",
"path": "packages/cursorless-vscode",
"presentation": {
"reveal": "silent"
},
"group": "build"
},
{
"label": "Generate grammar",
"type": "npm",
"script": "generate-grammar",
"path": "packages/cursorless-vscode",
"presentation": {
"reveal": "silent"
"reveal": "never"
},
"group": "build"
},
Expand Down Expand Up @@ -99,25 +73,9 @@
"dependsOrder": "sequence",
"group": "test"
},
{
"label": "watch",
"dependsOn": ["Watch esbuild", "Watch typescript"],
"group": "build"
},
{
"type": "npm",
"script": "watch:esbuild",
"label": "Watch esbuild",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": "build"
},
{
"type": "npm",
"script": "watch:tsc",
"label": "Watch typescript",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ There's too much new stuff in this release to fit in a highlights reel, so we'll
- Improve and unify selection updating behaviour to handle overlapping ranges [\#138](https://github.com/cursorless-dev/cursorless/issues/138)
- Duplicate symbols after VS Code update [\#111](https://github.com/cursorless-dev/cursorless/issues/111)
- Fold action not working properly with multiple list elements [\#39](https://github.com/cursorless-dev/cursorless/issues/39)
- The `clear` command clashes with community commands [\#68](https://github.com/pokey/cursorless-talon/issues/68)
- The `clear` command clashes with Knausj commands [\#68](https://github.com/pokey/cursorless-talon/issues/68)

**Closed issues:**

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<img alt="Tests" src="https://img.shields.io/github/actions/workflow/status/cursorless-dev/cursorless-vscode/test.yml?branch=main&logo=github&label=tests" />
</a>
<a href="https://github.com/cursorless-dev/cursorless/graphs/contributors" target="_blank">
<img alt="Maintenance" src="https://img.shields.io/maintenance/yes/2024.svg?logo=data:image/svg%2bxml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJ3cmVuY2giIGNsYXNzPSJzdmctaW5saW5lLS1mYSBmYS13cmVuY2ggZmEtdy0xNiIgcm9sZT0iaW1nIgogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+CiAgICA8cGF0aCBmaWxsPSJ3aGl0ZSIgZD0iTTUwNy43MyAxMDkuMWMtMi4yNC05LjAzLTEzLjU0LTEyLjA5LTIwLjEyLTUuNTFsLTc0LjM2IDc0LjM2LTY3Ljg4LTExLjMxLTExLjMxLTY3Ljg4IDc0LjM2LTc0LjM2YzYuNjItNi42MiAzLjQzLTE3LjktNS42Ni0yMC4xNi00Ny4zOC0xMS43NC05OS41NS45MS0xMzYuNTggMzcuOTMtMzkuNjQgMzkuNjQtNTAuNTUgOTcuMS0zNC4wNSAxNDcuMkwxOC43NCA0MDIuNzZjLTI0Ljk5IDI0Ljk5LTI0Ljk5IDY1LjUxIDAgOTAuNSAyNC45OSAyNC45OSA2NS41MSAyNC45OSA5MC41IDBsMjEzLjIxLTIxMy4yMWM1MC4xMiAxNi43MSAxMDcuNDcgNS42OCAxNDcuMzctMzQuMjIgMzcuMDctMzcuMDcgNDkuNy04OS4zMiAzNy45MS0xMzYuNzN6TTY0IDQ3MmMtMTMuMjUgMC0yNC0xMC43NS0yNC0yNCAwLTEzLjI2IDEwLjc1LTI0IDI0LTI0czI0IDEwLjc0IDI0IDI0YzAgMTMuMjUtMTAuNzUgMjQtMjQgMjR6Ij48L3BhdGg+Cjwvc3ZnPg==" />
<img alt="Maintenance" src="https://img.shields.io/maintenance/yes/2023.svg?logo=data:image/svg%2bxml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJ3cmVuY2giIGNsYXNzPSJzdmctaW5saW5lLS1mYSBmYS13cmVuY2ggZmEtdy0xNiIgcm9sZT0iaW1nIgogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+CiAgICA8cGF0aCBmaWxsPSJ3aGl0ZSIgZD0iTTUwNy43MyAxMDkuMWMtMi4yNC05LjAzLTEzLjU0LTEyLjA5LTIwLjEyLTUuNTFsLTc0LjM2IDc0LjM2LTY3Ljg4LTExLjMxLTExLjMxLTY3Ljg4IDc0LjM2LTc0LjM2YzYuNjItNi42MiAzLjQzLTE3LjktNS42Ni0yMC4xNi00Ny4zOC0xMS43NC05OS41NS45MS0xMzYuNTggMzcuOTMtMzkuNjQgMzkuNjQtNTAuNTUgOTcuMS0zNC4wNSAxNDcuMkwxOC43NCA0MDIuNzZjLTI0Ljk5IDI0Ljk5LTI0Ljk5IDY1LjUxIDAgOTAuNSAyNC45OSAyNC45OSA2NS41MSAyNC45OSA5MC41IDBsMjEzLjIxLTIxMy4yMWM1MC4xMiAxNi43MSAxMDcuNDcgNS42OCAxNDcuMzctMzQuMjIgMzcuMDctMzcuMDcgNDkuNy04OS4zMiAzNy45MS0xMzYuNzN6TTY0IDQ3MmMtMTMuMjUgMC0yNC0xMC43NS0yNC0yNCAwLTEzLjI2IDEwLjc1LTI0IDI0LTI0czI0IDEwLjc0IDI0IDI0YzAgMTMuMjUtMTAuNzUgMjQtMjQgMjR6Ij48L3BhdGg+Cjwvc3ZnPg==" />
</a>
<a href="https://github.com/cursorless-dev/cursorless/blob/main/LICENSE" target="_blank">
<img alt="License: MIT" src="https://img.shields.io/github/license/cursorless-dev/cursorless-vscode?color=success&logo=data:image/svg%2bxml;base64,PHN2ZyBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSIgZGF0YS1wcmVmaXg9ImZhcyIgZGF0YS1pY29uPSJiYWxhbmNlLXNjYWxlIiBjbGFzcz0ic3ZnLWlubGluZS0tZmEgZmEtYmFsYW5jZS1zY2FsZSBmYS13LTIwIiByb2xlPSJpbWciCiAgICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNTEyIj4KICAgIDxwYXRoIGZpbGw9IndoaXRlIiBkPSJNMjU2IDMzNmgtLjAyYzAtMTYuMTggMS4zNC04LjczLTg1LjA1LTE4MS41MS0xNy42NS0zNS4yOS02OC4xOS0zNS4zNi04NS44NyAwQy0yLjA2IDMyOC43NS4wMiAzMjAuMzMuMDIgMzM2SDBjMCA0NC4xOCA1Ny4zMSA4MCAxMjggODBzMTI4LTM1LjgyIDEyOC04MHpNMTI4IDE3Nmw3MiAxNDRINTZsNzItMTQ0em01MTEuOTggMTYwYzAtMTYuMTggMS4zNC04LjczLTg1LjA1LTE4MS41MS0xNy42NS0zNS4yOS02OC4xOS0zNS4zNi04NS44NyAwLTg3LjEyIDE3NC4yNi04NS4wNCAxNjUuODQtODUuMDQgMTgxLjUxSDM4NGMwIDQ0LjE4IDU3LjMxIDgwIDEyOCA4MHMxMjgtMzUuODIgMTI4LTgwaC0uMDJ6TTQ0MCAzMjBsNzItMTQ0IDcyIDE0NEg0NDB6bTg4IDEyOEgzNTJWMTUzLjI1YzIzLjUxLTEwLjI5IDQxLjE2LTMxLjQ4IDQ2LjM5LTU3LjI1SDUyOGM4Ljg0IDAgMTYtNy4xNiAxNi0xNlY0OGMwLTguODQtNy4xNi0xNi0xNi0xNkgzODMuNjRDMzY5LjA0IDEyLjY4IDM0Ni4wOSAwIDMyMCAwcy00OS4wNCAxMi42OC02My42NCAzMkgxMTJjLTguODQgMC0xNiA3LjE2LTE2IDE2djMyYzAgOC44NCA3LjE2IDE2IDE2IDE2aDEyOS42MWM1LjIzIDI1Ljc2IDIyLjg3IDQ2Ljk2IDQ2LjM5IDU3LjI1VjQ0OEgxMTJjLTguODQgMC0xNiA3LjE2LTE2IDE2djMyYzAgOC44NCA3LjE2IDE2IDE2IDE2aDQxNmM4Ljg0IDAgMTYtNy4xNiAxNi0xNnYtMzJjMC04Ljg0LTcuMTYtMTYtMTYtMTZ6Ij48L3BhdGg+Cjwvc3ZnPg==" />
Expand Down
6 changes: 0 additions & 6 deletions changelog/2023-09-addedArgumentTargetToCallAction.md

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions changelog/2023-09-addedJoinLinesAction.md

This file was deleted.

6 changes: 0 additions & 6 deletions changelog/2023-09-updatedHatShapes.md

This file was deleted.

6 changes: 0 additions & 6 deletions changelog/2023-11-modalKeyboardVscodeCommands.md

This file was deleted.

6 changes: 0 additions & 6 deletions changelog/2023-12-addedBreakLineAction.md

This file was deleted.

Loading

0 comments on commit 072d038

Please sign in to comment.