Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,44 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Make envfile
run: |
echo APP_INSIGHT_INSTRUMENT_KEY=example_key >> .env

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
shell: bash
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- uses: actions/cache@v4
id: vscode-test-cache
with:
path: .vscode-test
key: ${{ runner.os }}-vscode-test-${{ matrix.vscode_version }}

- name: Install dependencies
run: yarn install

- name: Compile project
run: yarn run compile

- name: Compile tests
run: yarn run compile-tests

- name: Run headless test
uses: GabrielBB/xvfb-action@v1.7
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,44 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Make envfile
run: |
echo APP_INSIGHT_INSTRUMENT_KEY=example_key >> .env

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
shell: bash
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- uses: actions/cache@v4
id: vscode-test-cache
with:
path: .vscode-test
key: ${{ runner.os }}-vscode-test-${{ matrix.vscode_version }}

- name: Install dependencies
run: yarn install

- name: Compile project
run: yarn run compile

- name: Compile tests
run: yarn run compile-tests

- name: Run headless test
uses: GabrielBB/xvfb-action@v1.7
with:
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ test-resources/**
dist/
out/
.env
1cbyc/*.md

# Test files
# src/test/suite/module-resolution.test.ts
# *.test.ts
# *.test.js
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.26.2"
".": "0.26.2"
}
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"recommendations": ["biomejs.biome"]
"recommendations": ["biomejs.biome"]
}

44 changes: 22 additions & 22 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/test/fixtures/test.code-workspace",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
]
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"]
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"${workspaceFolder}/test/fixtures/test.code-workspace",
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/test/suite/index"
]
}
]
}
52 changes: 25 additions & 27 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"group": "build",
"label": "npm: watch",
"detail": "yarn run watch",
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": [
"$tsc-watch"
]
},
{
"type": "npm",
"script": "test",
"group": "test",
"problemMatcher": ["$tsc"],
"label": "npm: test",
"detail": "yarn run build && node --experimental-vm-modules node_modules/.bin/jest",
"presentation": {
"panel": "dedicated",
"reveal": "always"
}
}
]
{
"type": "npm",
"script": "watch",
"group": "build",
"label": "npm: watch",
"detail": "yarn run watch",
"presentation": {
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": ["$tsc-watch"]
},
{
"type": "npm",
"script": "test",
"group": "test",
"problemMatcher": ["$tsc"],
"label": "npm: test",
"detail": "yarn run build && node --experimental-vm-modules node_modules/.bin/jest",
"presentation": {
"panel": "dedicated",
"reveal": "always"
}
}
]
}
38 changes: 19 additions & 19 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"organizeImports": {
"enabled": true
},
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true
},
"ignore": [
"./.vscode-test",
"./out",
"./src/test/**/*SyntaxError*/*",
"./src/test/**/*Error*/*",
"./.vscode",
"./dist"
"includes": [
"**",
"!.vscode-test",
"!out",
"!src/test/**/*SyntaxError*/*",
"!src/test/**/*Error*/*",
"!.vscode",
"!dist"
]
},
"formatter": {
"enabled": true,
"ignore": [
"./.vscode-test",
"./out",
"./src/test/**/*SyntaxError*/*",
"./src/test/**/*Error*/*",
"./package.json",
"./.vscode",
"./dist"
"includes": [
"**",
"!.vscode-test",
"!out",
"!src/test/**/*SyntaxError*/*",
"!src/test/**/*Error*/*",
"!package.json",
"!.vscode",
"!dist"
]
}
}
14 changes: 7 additions & 7 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": true /* Typecheck .js files. */,
"lib": ["es6"]
},
"exclude": ["node_modules", ".vscode-test", "test-resources"]
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": true /* Typecheck .js files. */,
"lib": ["es6"]
},
"exclude": ["node_modules", ".vscode-test", "test-resources"]
}
Loading
Loading