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
19 changes: 19 additions & 0 deletions chat-sample/.vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { existsSync } from 'node:fs';
import { defineConfig } from '@vscode/test-cli';

const cursorPath = 'C:/Users/DELL/AppData/Local/Programs/cursor/Cursor.exe';
const vscodePath = 'C:/Users/DELL/AppData/Local/Programs/Microsoft VS Code/Code.exe';

const fromPath = existsSync(cursorPath)
? cursorPath
: existsSync(vscodePath)
? vscodePath
: undefined;

export default defineConfig({
files: 'out/test/**/*.test.js',
mocha: {
timeout: 60_000,
},
...(fromPath ? { useInstallation: { fromPath } } : {}),
});
9 changes: 4 additions & 5 deletions chat-sample/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"testConfiguration": "${workspaceFolder}/.vscode-test.mjs",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js",
"${workspaceFolder}/dist/**/*.js"
"${workspaceFolder}/out/**/*.js"
],
"preLaunchTask": "tasks: watch-tests"
"preLaunchTask": "${defaultBuildTask}"
}
]
}
1 change: 1 addition & 0 deletions chat-sample/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default tseslint.config(
ignores: [
'.vscode-test',
'out',
'scripts',
]
},
{
Expand Down
Loading