Skip to content

Commit 08d54c3

Browse files
committed
Get the test explorer working
1 parent 46dd6a8 commit 08d54c3

File tree

4 files changed

+425
-105
lines changed

4 files changed

+425
-105
lines changed

.vscode-test.mjs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
import { defineConfig } from "@vscode/test-cli";
3+
4+
/**
5+
* @param {string} label
6+
*/
7+
function generateConfig(label) {
8+
/** @type {import('@vscode/test-cli').TestConfiguration} */
9+
let config = {
10+
label,
11+
files: ["out/**/*.test.js"],
12+
version: "insiders",
13+
srcDir: "src",
14+
launchArgs: [
15+
"--enable-proposed-api",
16+
"--disable-extension=GitHub.vscode-pull-request-github-insiders",
17+
],
18+
// env,
19+
mocha: {
20+
ui: "bdd",
21+
color: true,
22+
timeout: 25000
23+
},
24+
};
25+
26+
return config;
27+
}
28+
29+
export default defineConfig(generateConfig("Local Tests"));

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4213,6 +4213,7 @@
42134213
"@types/webpack-env": "^1.16.0",
42144214
"@typescript-eslint/eslint-plugin": "6.10.0",
42154215
"@typescript-eslint/parser": "6.10.0",
4216+
"@vscode/test-cli": "^0.0.11",
42164217
"@vscode/test-electron": "^2.5.2",
42174218
"@vscode/test-web": "^0.0.71",
42184219
"assert": "^2.0.0",

src/@types/vscode.proposed.chatParticipantPrivate.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ declare module 'vscode' {
5555
*/
5656
readonly attempt: number;
5757

58+
/**
59+
* The session identifier for this chat request
60+
*/
61+
readonly sessionId: string;
62+
5863
/**
5964
* If automatic command detection is enabled.
6065
*/

0 commit comments

Comments
 (0)