[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69ANZK45PDMWHSTKZKZTS2V":3,"skill-same:01M69ANZK45PDMWHSTKZKZTS2V":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M69ANZK45PDMWHSTKZKZTS2V","run-integration-tests","扩展组件集成测试运行","Run integration tests to verify that extension components work together correctly. Use this after modifying component interactions or event handling.","运行集成测试以验证扩展的各个组件能否正确协同工作。在修改组件交互或事件处理后使用此技能。","microsoft\u002Fvscode-python-environments","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69ANKH8QP6PYCYYVP4340EX",147,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-integration-tests\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42],"integration tests","run integration tests","run","integration","tests","components","component","verify","work","use","extension","event","2026-11-10 10:12:30",false,"---\nname: run-integration-tests\ndescription: Run integration tests to verify that extension components work together correctly. Use this after modifying component interactions or event handling.\n---\n\nRun integration tests to verify that multiple components (managers, API, settings) work together correctly.\n\n## When to Use This Skill\n\n- After modifying how components communicate (events, state sharing)\n- After changing the API surface\n- After modifying managers or their interactions\n- When components seem out of sync (UI shows stale data, events not firing)\n\n## Quick Reference\n\n| Action                    | Command                                                                |\n| ------------------------- | ---------------------------------------------------------------------- |\n| Run all integration tests | `npm run compile && npm run compile-tests && npm run integration-test` |\n| Run specific test         | `npm run integration-test -- --grep \"manager\"`                         |\n| Debug in VS Code          | Debug panel → \"Integration Tests\" → F5                                 |\n\n## How Integration Tests Work\n\nIntegration tests run in a real VS Code instance but focus on **component interactions**:\n\n- Does the API reflect manager state?\n- Do events fire when state changes?\n- Do different scopes return appropriate data?\n\nThey're faster than E2E (which test full workflows) but more thorough than smoke tests.\n\n## Workflow\n\n### Step 1: Compile and Run\n\n```bash\nnpm run compile && npm run compile-tests && npm run integration-test\n```\n\n### Step 2: Interpret Results\n\n**Pass:**\n\n```\n  Integration: Environment Manager + API\n    ✓ API reflects manager state after refresh\n    ✓ Different scopes return appropriate environments\n    ✓ Environment objects have consistent structure\n\n  3 passing (25s)\n```\n\n**Fail:** Check error message and see Debugging section.\n\n## Debugging Failures\n\n| Error               | Cause                       | Fix                             |\n| ------------------- | --------------------------- | ------------------------------- |\n| `API not available` | Extension activation failed | Check Debug Console             |\n| `Event not fired`   | Event wiring issue          | Check event registration        |\n| `State mismatch`    | Components out of sync      | Add logging, check update paths |\n| `Timeout`           | Async operation stuck       | Check for deadlocks             |\n\nFor detailed debugging: Debug panel → \"Integration Tests\" → F5\n\n## Adding New Integration Tests\n\nCreate files in `src\u002Ftest\u002Fintegration\u002F` with pattern `*.integration.test.ts`:\n\n```typescript\nimport * as assert from 'assert';\nimport * as vscode from 'vscode';\nimport { waitForCondition, TestEventHandler } from '..\u002FtestUtils';\nimport { ENVS_EXTENSION_ID } from '..\u002Fconstants';\n\nsuite('Integration: [Component A] + [Component B]', function () {\n    this.timeout(120_000);\n\n    let api: ExtensionApi;\n\n    suiteSetup(async function () {\n        const extension = vscode.extensions.getExtension(ENVS_EXTENSION_ID);\n        assert.ok(extension, 'Extension not found');\n        if (!extension.isActive) await extension.activate();\n        api = extension.exports;\n    });\n\n    test('[Interaction test]', async function () {\n        \u002F\u002F Test component interaction\n    });\n});\n```\n\n## Test Files\n\n| File                                                     | Purpose                                            |\n| -------------------------------------------------------- | -------------------------------------------------- |\n| `src\u002Ftest\u002Fintegration\u002FenvManagerApi.integration.test.ts` | Manager + API tests                                |\n| `src\u002Ftest\u002Fintegration\u002Findex.ts`                          | Test runner entry point                            |\n| `src\u002Ftest\u002FtestUtils.ts`                                  | Utilities (`waitForCondition`, `TestEventHandler`) |\n\n## Prerequisites\n\n- **CI needs webpack build** - Run `npm run compile` (webpack) before tests, not just `npm run compile-tests` (tsc)\n- **Extension builds** - Run `npm run compile` before tests\n\n## Notes\n\n- Integration tests are faster than E2E (30s-2min vs 1-3min)\n- Focus on testing component boundaries, not full user workflows\n- First run downloads VS Code (~100MB, cached in `.vscode-test\u002F`)\n","Run integration tests to verify that multiple components (managers, API, settings) work together correctly.\n\n## When to Use This Skill\n\n- After modifying how components communicate (events, state sharing)\n- After changing the API surface\n- After modifying managers or their interactions\n- When components seem out of sync (UI shows stale data, events not firing)\n\n## Quick Reference\n\n| Action                    | Command                                                                |\n| ------------------------- | ---------------------------------------------------------------------- |\n| Run all integration tests | `npm run compile && npm run compile-tests && npm run integration-test` |\n| Run specific test         | `npm run integration-test -- --grep \"manager\"`                         |\n| Debug in VS Code          | Debug panel → \"Integration Tests\" → F5                                 |\n\n## How Integration Tests Work\n\nIntegration tests run in a real VS Code instance but focus on **component interactions**:\n\n- Does the API reflect manager state?\n- Do events fire when state changes?\n- Do different scopes return appropriate data?\n\nThey're faster than E2E (which test full workflows) but more thorough than smoke tests.\n\n## Workflow\n\n### Step 1: Compile and Run\n\n```bash\nnpm run compile && npm run compile-tests && npm run integration-test\n```\n\n### Step 2: Interpret Results\n\n**Pass:**\n\n```\n  Integration: Environment Manager + API\n    ✓ API reflects manager state after refresh\n    ✓ Different scopes return appropriate environments\n    ✓ Environment objects have consistent structure\n\n  3 passing (25s)\n```\n\n**Fail:** Check error message and see Debugging section.\n\n## Debugging Failures\n\n| Error               | Cause                       | Fix                             |\n| ------------------- | --------------------------- | ------------------------------- |\n| `API not available` | Extension activation failed | Check Debug Console             |\n| `Event not fired`   | Event wiring issue          | Check event registration        |\n| `State mismatch`    | Components out of sync      | Add logging, check update paths |\n| `Timeout`           | Async operation stuck       | Check for deadlocks             |\n\nFor detailed debugging: Debug panel → \"Integration Tests\" → F5\n\n## Adding New Integration Tests\n\nCreate files in `src\u002Ftest\u002Fintegration\u002F` with pattern `*.integration.test.ts`:\n\n```typescript\nimport * as assert from 'assert';\nimport * as vscode from 'vscode';\nimport { waitForCondition, TestEventHandler } from '..\u002FtestUtils';\nimport { ENVS_EXTENSION_ID } from '..\u002Fconstants';\n\nsuite('Integration: [Component A] + [Component B]', function () {\n    this.timeout(120_000);\n\n    let api: ExtensionApi;\n\n    suiteSetup(async function () {\n        const extension = vscode.extensions.getExtension(ENVS_EXTENSION_ID);\n        assert.ok(extension, 'Extension not found');\n        if (!extension.isActive) await extension.activate();\n        api = extension.exports;\n    });\n\n    test('[Interaction test]', async function () {\n        \u002F\u002F Test component interaction\n    });\n});\n```\n\n## Test Files\n\n| File                                                     | Purpose                                            |\n| -------------------------------------------------------- | -------------------------------------------------- |\n| `src\u002Ftest\u002Fintegration\u002FenvManagerApi.integration.test.ts` | Manager + API tests                                |\n| `src\u002Ftest\u002Fintegration\u002Findex.ts`                          | Test runner entry point                            |\n| `src\u002Ftest\u002FtestUtils.ts`                                  | Utilities (`waitForCondition`, `TestEventHandler`) |\n\n## Prerequisites\n\n- **CI needs webpack build** - Run `npm run compile` (webpack) before tests, not just `npm run compile-tests` (tsc)\n- **Extension builds** - Run `npm run compile` before tests\n\n## Notes\n\n- Integration tests are faster than E2E (30s-2min vs 1-3min)\n- Focus on testing component boundaries, not full user workflows\n- First run downloads VS Code (~100MB, cached in `.vscode-test\u002F`)\n",{"name":5,"description":7},"main","92c13e7942499b7608a22bf1cb86b881a90afc98",".github\u002Fskills\u002Frun-integration-tests",83,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=ms-python.vscode-python-envs","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 07:15:14",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add microsoft\u002Fvscode-python-environments --skill run-integration-tests",{"tool":64,"command":65},"bunx","bunx skills add microsoft\u002Fvscode-python-environments --skill run-integration-tests",{"tool":67,"command":68},"pnpm","pnpm dlx skills add microsoft\u002Fvscode-python-environments --skill run-integration-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-integration-tests\u002FSKILL.md",true,[],[73,105,124,150,173,194],{"skillNo":74,"name":75,"nameZh":76,"description":77,"descriptionZh":78,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":79,"categories":80,"keywords":87,"publishedAt":43},"01M69AP5C8W366N8TDNBZA2YQ4","settings-precedence","VS Code 设置优先级规则","VS Code settings precedence rules and common pitfalls. Essential for any code that reads or writes settings. Covers getConfiguration scope, inspect() vs get(), and multi-workspace handling.","VS Code 设置优先级规则及常见陷阱。适用于任何读取或写入设置的代码。涵盖 getConfiguration 作用域、inspect() 与 get() 的区别，以及多工作区处理。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsettings-precedence\u002FSKILL.md",[81,84],{"categoryNo":82,"categoryName":83,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":85,"categoryName":86,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[88,89,90,37,91,92,93,94,95,96,97,98,99,100,101,102,103,104],"settings precedence","settings","review","code","file","workspace","common","Rules","get","essential","false","scope","multi","common pitfalls","pitfalls","inspect","for",{"skillNo":106,"name":107,"nameZh":108,"description":109,"descriptionZh":110,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":111,"categories":112,"keywords":115,"publishedAt":43},"01M69AP3CMT4CYDAZ6GQXCJN1D","run-smoke-tests","VS Code 扩展冒烟测试","Run smoke tests to verify extension functionality in a real VS Code environment. Use this when checking if basic features work after changes.","运行冒烟测试，在真实 VS Code 环境中验证扩展功能。在更改后检查基本功能是否正常工作时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-smoke-tests\u002FSKILL.md",[113,114],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[116,117,33,118,35,91,38,39,119,40,120,41,121,122,123],"smoke tests","run smoke tests","smoke","environment","basic","changes","features","when",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":136,"publishedAt":43},"01M69AP1H7465VYNYGZA7RSAMW","run-pre-commit-checks","代码提交前(pre-commit)检查","Run the mandatory pre-commit checks before committing code. Includes lint, type checking, and unit tests. MUST be run before every commit.","在提交代码前运行强制性的 pre-commit 检查，包括 lint（代码规范检查）、类型检查和单元测试。每次提交前都必须运行。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-pre-commit-checks\u002FSKILL.md",[132,133],{"categoryNo":82,"categoryName":83,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[137,138,33,139,140,141,142,91,143,144,145,146,35,147,148,149],"commit","run pre commit checks","pre commit checks","pre commit","unit tests","lint","issues","pre-commit","fix","auto","type","unit","auto-fix",{"skillNo":151,"name":152,"nameZh":153,"description":154,"descriptionZh":155,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":160,"publishedAt":43},"01M69ANXP7SBRDK7TK3C54V695","run-e2e-tests","E2E 端到端测试运行","Run E2E tests to verify complete user workflows like environment discovery, creation, and selection. Use this before releases or after major changes.","运行 E2E 测试以验证完整的用户工作流（如环境的发现、创建和选择）。在发布前或进行重大变更后使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-e2e-tests\u002FSKILL.md",[158,159],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[161,162,33,163,164,35,165,166,38,167,119,40,168,169,170,171,121,172],"run e2e tests","e2e tests","run e2e","e2e","workflows","discovery","user","releases","selection","creation","complete","environment discovery",{"skillNo":174,"name":175,"nameZh":176,"description":177,"descriptionZh":178,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":179,"categories":180,"keywords":183,"publishedAt":43},"01M69ANVY2ABDQCXJBQNBV587M","python-manager-discovery","Python 环境管理器探测","Environment manager-specific discovery patterns and known issues. Use when working on or reviewing environment discovery code for conda, poetry, pipenv, pyenv, or venv.","针对特定环境管理器的探测模式及已知问题。在编写或审查 conda、poetry、pipenv、pyenv 或 venv 的环境探测代码时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpython-manager-discovery\u002FSKILL.md",[181,182],{"categoryNo":82,"categoryName":83,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":85,"categoryName":86,"taxonomyType":28,"taxonomyTypeDesc":29},[184,185,166,186,91,143,119,40,187,188,189,98,190,191,192,193,104,123,172],"python","python manager discovery","manager","Poetry","patterns","conda","name","pipenv","pyenv","venv",{"skillNo":195,"name":196,"nameZh":197,"description":198,"descriptionZh":199,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":200,"categories":201,"keywords":204,"publishedAt":43},"01M69ANT39TYG676Q12DAWM182","generate-snapshot","代码库健康快照生成","Generate a codebase health snapshot for technical debt tracking and planning. Analyzes git history, code complexity, debt markers, and dependencies to identify hotspots and refactoring priorities.","生成代码库健康快照，用于技术债务追踪与规划。分析 git 历史、代码复杂度、债务标记和依赖项，以识别热点区域和重构优先级。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgenerate-snapshot\u002FSKILL.md",[202,203],{"categoryNo":82,"categoryName":83,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},[205,206,207,91,208,209,210,211,212,213,214,215,216,217,218,219,220,221,104,222],"generate snapshot","generate","snapshot","planning","git","health","refactoring","history","technical","codebase health","complexity","code complexity","priorities","dependencies","technical debt","markers","output","codebase"]