|
28 | 28 | * - Retries once on failure (configured in the runner) |
29 | 29 | * - Tests are independent - no shared state between tests |
30 | 30 | * |
31 | | - * CRITICAL PATTERN (from vscode-python): |
32 | | - * Settings must be configured PROGRAMMATICALLY before extension activation. |
33 | | - * Relying solely on settings.json files can fail because: |
34 | | - * - The ms-python.python extension may set useEnvironmentsExtension=false by default |
35 | | - * - Settings files may not be loaded before activation |
36 | | - * - Race conditions between file I/O and extension initialization |
| 31 | + * NOTE: We do NOT install ms-python.python in test configuration. |
| 32 | + * This is intentional - that extension defines python.useEnvironmentsExtension=false |
| 33 | + * by default, which would cause our extension to skip activation. |
| 34 | + * Without it installed, our extension uses its own default of true. |
37 | 35 | */ |
38 | 36 |
|
39 | 37 | import * as assert from 'assert'; |
40 | 38 | import * as vscode from 'vscode'; |
41 | 39 | import { ENVS_EXTENSION_ID, MAX_EXTENSION_ACTIVATION_TIME } from '../constants'; |
42 | | -import { initializeTestSettings } from '../initialize'; |
43 | 40 | import { waitForCondition } from '../testUtils'; |
44 | 41 |
|
45 | 42 | suite('Smoke: Extension Activation', function () { |
46 | 43 | // Smoke tests need longer timeouts - VS Code startup can be slow |
47 | 44 | this.timeout(MAX_EXTENSION_ACTIVATION_TIME); |
48 | 45 |
|
49 | | - // CRITICAL: Configure settings BEFORE any test runs |
50 | | - // This follows the vscode-python pattern of programmatic configuration |
51 | | - suiteSetup(async function () { |
52 | | - await initializeTestSettings(); |
53 | | - }); |
54 | | - |
55 | 46 | /** |
56 | 47 | * Test: Extension is installed and VS Code can find it |
57 | 48 | * |
|
0 commit comments