Skip to content

Commit 3509883

Browse files
committed
Merge branch 'topic/vscode-devenv' into 'master'
Improve VS Code dev env See merge request eng/ide/ada_language_server!2148
2 parents a4fe79f + 3e40c5e commit 3509883

File tree

8 files changed

+21
-14
lines changed

8 files changed

+21
-14
lines changed

.vscode/launch.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"!**/node_modules/**"
1414
],
1515
"args": [
16-
"--extensionDevelopmentPath=${workspaceFolder}/integration/vscode/ada"
16+
"--extensionDevelopmentPath=${workspaceFolder}/integration/vscode/ada",
17+
18+
// Disable other extensions for speed
19+
"--disable-extensions"
1720

1821
// It is useful to have workspace available for local debugging. The
1922
// following one is provided within the repository with test folders

.vscode/settings.json.tmpl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
"env": {
121121
"MOCHA_TIMEOUT": "0"
122122
},
123+
"args": [
124+
// Disable other extensions for speed
125+
"--disable-extensions"
126+
],
123127
"preLaunchTask": "npm: watch - integration/vscode/ada"
124128
}
125129
}

integration/vscode/ada/.vscode-test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export default defineConfig(
100100
// --user-data-dir <path> form sometimes gets <path> considered
101101
// as another workspace root directory.
102102
`--user-data-dir=${tmpdir}`,
103+
// Disable other extensions for speed
104+
'--disable-extensions',
103105
],
104106
// Use external installation if provided in the VSCODE env variable
105107
useInstallation: process.env.VSCODE ? { fromPath: process.env.VSCODE } : undefined,

integration/vscode/ada/test/aggregate_projects/aggregate_projects.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import { createAdaTaskProvider } from '../../src/taskProviders';
66
import { activate, getCommandLines, isCoreTask } from '../utils';
77

88
suite('Aggregate Projects Support', function () {
9-
// Set timeout to 15 seconds unless already configured to more
10-
this.timeout(Math.max(this.timeout(), 15000));
11-
129
let projectPath: string;
1310

1411
this.beforeAll(async () => {
@@ -22,6 +19,9 @@ suite('Aggregate Projects Support', function () {
2219
* build and run the mains of all aggregated projects.
2320
*/
2421
test('Ada tasks for aggregate projects', async () => {
22+
// Set timeout to 15 seconds unless already configured to more
23+
this.timeout(Math.max(this.timeout(), 15000));
24+
2525
const expectedCmdLines = `
2626
ada: Clean current project - gprclean -P ${projectPath}
2727
ada: Build current project - gprbuild -P ${projectPath} '-cargs:ada' -gnatef

integration/vscode/ada/test/general/extension.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { activate, assertEqualToFileContent, showTextDocument } from '../utils';
55

66
import { readFileSync, writeFileSync } from 'fs';
77
import * as vscode from 'vscode';
8-
import { CMD_RESTART_LANG_SERVERS } from '@/src/constants';
8+
import { CMD_RESTART_LANG_SERVERS } from '../../src/constants';
99

1010
suite('Extensions Test Suite', function () {
1111
// Make sure the extension is activated

integration/vscode/ada/test/general/tasks.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,18 @@ import {
2727
import { runTaskAndGetResult } from '../../src/taskProviders';
2828

2929
suite('Task Providers', function () {
30-
// Set timeout to 15 seconds unless already configured to more
31-
this.timeout(Math.max(this.timeout(), 15000));
32-
3330
let projectPath: string;
3431

3532
this.beforeAll(async () => {
3633
await activate();
3734
projectPath = await getProjectFile();
3835
});
3936

37+
this.beforeEach(function () {
38+
// Set timeout to 15 seconds unless already configured to more
39+
this.timeout(Math.max(this.timeout(), 15000));
40+
});
41+
4042
/**
4143
* Check that the list of offered Ada tasks is expected.
4244
*/

integration/vscode/ada/test/status_bar/status_bar.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { activate } from '../utils';
33

44
import * as vscode from 'vscode';
55
import { adaExtState } from '../../src/extension';
6-
import { CMD_RELOAD_PROJECT } from '@/src/constants';
6+
import { CMD_RELOAD_PROJECT } from '../../src/constants';
77
import { readFileSync, writeFileSync } from 'fs';
88
import { integer } from 'vscode-languageclient';
99

integration/vscode/ada/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
"noImplicitReturns": true,
1818
"noFallthroughCasesInSwitch": true,
1919
"noUnusedParameters": true,
20-
"resolveJsonModule": true,
21-
"baseUrl": ".",
22-
"paths": {
23-
"@/*": ["./*"]
24-
}
20+
"resolveJsonModule": true
2521
},
2622
"exclude": ["node_modules", "out", "test/visualizer_test"],
2723
"include": ["test", "src", ".vscode-test.mjs", "webpack.config.js"]

0 commit comments

Comments
 (0)