Skip to content

Commit 305b04b

Browse files
committed
initial commit
0 parents  commit 305b04b

File tree

650 files changed

+185849
-0
lines changed

Some content is hidden

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

650 files changed

+185849
-0
lines changed

.c8rc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"reporter": ["html", "text"],
3+
"exclude": [
4+
"**/node_modules/**",
5+
"**/.vscode-test/**",
6+
"**/test/**",
7+
"**/*.d.ts",
8+
"**/vscode-languageserver-protocol/**",
9+
"**/vscode-languageclient/**",
10+
"**/vscode-languageserver/**"
11+
]
12+
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{js,ts}]
12+
max_line_length = 100
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.github/workflows/grammars.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Building tree-sitter grammars
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
HUSKY: 0
17+
18+
jobs:
19+
tests:
20+
name: Test (${{ matrix.os }})
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
os:
26+
- windows-latest
27+
- ubuntu-latest
28+
- macos-latest
29+
steps:
30+
- name: Fetch Sources
31+
uses: actions/checkout@v4
32+
33+
- name: Enable Corepack
34+
if: matrix.os == 'windows-latest'
35+
run: corepack enable --install-directory 'C:\npm\prefix'
36+
37+
- name: Enable Corepack
38+
if: matrix.os != 'windows-latest'
39+
run: corepack enable
40+
41+
- name: Setup Node.js 22.x
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: 22.x
45+
cache: "yarn"
46+
47+
- name: Setup EMSDK
48+
uses: mymindstorm/setup-emsdk@v14
49+
with:
50+
version: 3.1.54
51+
actions-cache-folder: "emsdk-cache"
52+
53+
- name: Install dependencies
54+
env:
55+
YARN_ENABLE_HARDENED_MODE: false
56+
run: yarn install --immutable
57+
58+
- name: Build WASM
59+
run: yarn grammar:wasm

.github/workflows/linter.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Linter checks
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
env:
12+
HUSKY: 0
13+
14+
jobs:
15+
linter:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Fetch Sources
19+
uses: actions/checkout@v4
20+
21+
- name: Enable Corepack
22+
run: corepack enable
23+
24+
- name: Setup Node.js 22.x
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 22.x
28+
cache: "yarn"
29+
30+
- name: Install dependencies
31+
run: yarn install --immutable --check-cache --check-resolutions
32+
33+
- name: Check yarn dedupe
34+
run: yarn dedupe --check
35+
36+
- name: Run prettier
37+
run: yarn run fmt:check
38+
39+
- name: Run eslint
40+
run: yarn run lint

.github/workflows/tests.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: E2E and Unit tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
env:
16+
HUSKY: 0
17+
18+
jobs:
19+
tests:
20+
name: Test (${{ matrix.os }})
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
os:
26+
- windows-latest
27+
- ubuntu-latest
28+
- macos-latest
29+
steps:
30+
- name: Fetch Sources
31+
uses: actions/checkout@v4
32+
33+
- name: Enable Corepack
34+
if: matrix.os == 'windows-latest'
35+
run: corepack enable --install-directory 'C:\npm\prefix'
36+
37+
- name: Enable Corepack
38+
if: matrix.os != 'windows-latest'
39+
run: corepack enable
40+
41+
- name: Setup Node.js 22.x
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: 22.x
45+
cache: "yarn"
46+
47+
- name: Install dependencies
48+
env:
49+
YARN_ENABLE_HARDENED_MODE: false
50+
run: yarn install --immutable
51+
52+
- name: Build Extension
53+
run: yarn build
54+
55+
- name: Run unit tests
56+
run: yarn test
57+
58+
- name: Run e2e tests
59+
if: matrix.os == 'ubuntu-latest'
60+
run: xvfb-run -a yarn run test:e2e
61+
62+
- name: Run e2e tests
63+
if: matrix.os != 'ubuntu-latest'
64+
run: yarn run test:e2e

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
node_modules
2+
*.vsix
3+
.DS_Store
4+
.idea
5+
.vscode
6+
dist/
7+
test-workspace/
8+
.vscode-test/
9+
*.wasm
10+
!tree-sitter-tolk/tree-sitter-tolk.wasm
11+
!tree-sitter-fift/tree-sitter-fift.wasm
12+
!tree-sitter-tlb/tree-sitter-tlb.wasm
13+
14+
# tests
15+
server/src/e2e/out
16+
17+
# yarn
18+
yarn-error.log
19+
.yarn/
20+
21+
# eslint
22+
.eslintcache
23+
24+
# coverage
25+
coverage/

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
echo "Running pre-commit tasks" >&2
2+
yarn run fmt:check || (echo 'Please run `yarn run fmt` to autofix.' >&2 && exit 1)
3+
yarn run lint || (echo 'Please run `yarn run lint` to show the errors.' >&2 && exit 1)

.prettierignore

Whitespace-only changes.

.vscodeignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**/*
2+
3+
!dist/**/*.js
4+
!dist/**/*.json
5+
!dist/**/*.wasm
6+
!dist/**/*.svg
7+
!dist/**/*.tolk
8+
9+
# Include only this files
10+
!LICENSE
11+
!CHANGELOG.md
12+
!package.json
13+
!./README-extension.md
14+
!client/src/languages
15+
!client/src/assets
16+
!syntaxes/
17+
!snippets/

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nodeLinker: node-modules
2+
enableScripts: false

0 commit comments

Comments
 (0)