Skip to content
Draft
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
80 changes: 29 additions & 51 deletions sample/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@
},
"devDependencies": {
"@types/mocha": "^10.0.0",
"@types/node": "^20",
"@types/vscode": "^1.52.0",
"@types/node": "22.x",
"@types/vscode": "^1.110.0",
"glob": "^12.0.0",
"mocha": "^10.0.0",
"typescript": "^5.4.5"
},
"dependencies": {}
}
"dependencies": {},
"overrides": {
"serialize-javascript": "^7.0.5"
}
}
2 changes: 1 addition & 1 deletion sample/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function activate(context: vscode.ExtensionContext) {
// The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json
let disposable = vscode.commands.registerCommand('extension.helloWorld', () => {
const disposable = vscode.commands.registerCommand('extension.helloWorld', () => {
// The code you place here will be executed every time your command is executed

// Display a message box to the user
Expand Down
18 changes: 9 additions & 9 deletions sample/src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ async function go() {
});

/**
* Use 1.61.0 release for testing
* Use 1.111.0 release for testing
*/
await runTests({
version: '1.61.0',
version: '1.111.0',
extensionDevelopmentPath,
extensionTestsPath,
launchArgs: [testWorkspace],
Expand All @@ -62,24 +62,24 @@ async function go() {
});

/**
* Use a specific Insiders (1.85.0) for testing
* Use a specific Insiders (1.119.0-insider) for testing
*/
await runTests({
version: 'af28b32d7e553898b2a91af498b1fb666fdebe0c',
version: '717aa443fdb80afacf21f6050ba976f890b8ea55',
extensionDevelopmentPath,
extensionTestsPath,
launchArgs: [testWorkspace],
});

/**
* Noop, since 1.61.0 already downloaded to .vscode-test/vscode-1.61.0
* Noop, since 1.111.0 already downloaded to .vscode-test/vscode-1.111.0
*/
await downloadAndUnzipVSCode('1.61.0');
await downloadAndUnzipVSCode('1.111.0');

/**
* Manually download VS Code 1.60.0 release for testing.
* Manually download VS Code 1.110.1 release for testing.
*/
const vscodeExecutablePath = await downloadAndUnzipVSCode('1.60.0');
const vscodeExecutablePath = await downloadAndUnzipVSCode('1.110.1');
await runTests({
vscodeExecutablePath,
extensionDevelopmentPath,
Expand All @@ -90,7 +90,7 @@ async function go() {
/**
* Install Python extension
*/
await runVSCodeCommand(['--install-extension', 'ms-python.python'], { version: '1.60.0' });
await runVSCodeCommand(['--install-extension', 'ms-python.python'], { version: '1.110.1' });

/**
* - Add additional launch flags for VS Code
Expand Down
1 change: 0 additions & 1 deletion sample/src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as assert from 'assert';
import { before } from 'mocha';

// You can import and use all API from the 'vscode' module
// as well as import your extension to test it
Expand Down
35 changes: 23 additions & 12 deletions sample/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"outDir": "out",
"lib": ["ES2022"],
"sourceMap": true,
"skipLibCheck": true,
"esModuleInterop": true
},
"include": ["src"],
"exclude": ["node_modules", ".vscode-test"]
}
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"rootDir": "src",
"outDir": "out",
"lib": [
"ES2022"
],
"types": [
"node"
],
"sourceMap": true,
"skipLibCheck": true,
"esModuleInterop": true
},
"include": [
"src"
],
"exclude": [
"node_modules",
".vscode-test"
]
}
Loading