[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69AP3CMT4CYDAZ6GQXCJN1D":3,"skill-same:01M69AP3CMT4CYDAZ6GQXCJN1D":75},{"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":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":56,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"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 环境中验证扩展功能。在更改后检查基本功能是否正常工作时使用。","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-smoke-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,43,44,45],"smoke tests","run smoke tests","run","smoke","tests","code","verify","work","environment","use","basic","extension","changes","features","when","2026-11-10 10:12:30",false,"---\nname: run-smoke-tests\ndescription: Run smoke tests to verify extension functionality in a real VS Code environment. Use this when checking if basic features work after changes.\n---\n\nRun smoke tests to verify the extension loads and basic functionality works in a real VS Code environment.\n\n## When to Use This Skill\n\n- After making changes to extension activation code\n- After modifying commands or API exports\n- Before submitting a PR to verify nothing is broken\n- When the user asks to \"run smoke tests\" or \"verify the extension works\"\n\n## Quick Reference\n\n| Action              | Command                                                          |\n| ------------------- | ---------------------------------------------------------------- |\n| Run all smoke tests | `npm run compile && npm run compile-tests && npm run smoke-test` |\n| Run specific test   | `npm run smoke-test -- --grep \"Extension activates\"`             |\n| Debug in VS Code    | Debug panel → \"Smoke Tests\" → F5                                 |\n\n## How Smoke Tests Work\n\nUnlike unit tests (which mock VS Code), smoke tests run inside a **real VS Code instance**:\n\n1. `npm run smoke-test` uses `@vscode\u002Ftest-cli`\n2. The CLI downloads a standalone VS Code binary (cached in `.vscode-test\u002F`)\n3. It launches that VS Code with your extension installed\n4. Mocha runs test files inside that VS Code process\n5. Results are reported back to your terminal\n\nThis is why smoke tests are slower (~10-60s) but catch real integration issues.\n\n## Workflow\n\n### Step 1: Compile and Run\n\n```bash\nnpm run compile && npm run compile-tests && npm run smoke-test\n```\n\n### Step 2: Interpret Results\n\n**Pass:** `4 passing (2s)` → Extension works, proceed.\n\n**Fail:** See error message and check Debugging section.\n\n### Running Individual Tests\n\nTo run a specific test instead of the whole suite:\n\n```bash\n# By test name (grep pattern)\nnpm run smoke-test -- --grep \"Extension activates\"\n\n# Or temporarily add .only in code:\ntest.only('Extension activates without errors', ...)\n```\n\n## Debugging Failures\n\n| Error                             | Cause                         | Fix                                         |\n| --------------------------------- | ----------------------------- | ------------------------------------------- |\n| `Extension not installed`         | Build failed or ID mismatch   | Run `npm run compile`, check extension ID   |\n| `Extension did not become active` | Error in activate()           | Debug with F5, check Debug Console          |\n| `Command not registered`          | Missing from package.json     | Add to contributes.commands                 |\n| `Timeout exceeded`                | Slow startup or infinite loop | Increase timeout or check for blocking code |\n\nFor detailed debugging, use VS Code: Debug panel → \"Smoke Tests\" → F5\n\n## Adding New Smoke Tests\n\nCreate a new file in `src\u002Ftest\u002Fsmoke\u002F` with the naming convention `*.smoke.test.ts`:\n\n```typescript\nimport * as assert from 'assert';\nimport * as vscode from 'vscode';\nimport { waitForCondition } from '..\u002FtestUtils';\nimport { ENVS_EXTENSION_ID } from '..\u002Fconstants';\n\nsuite('Smoke: [Feature Name]', function () {\n    this.timeout(60_000);\n\n    test('[Test description]', async function () {\n        \u002F\u002F Arrange\n        const extension = vscode.extensions.getExtension(ENVS_EXTENSION_ID);\n        assert.ok(extension, 'Extension not found');\n\n        \u002F\u002F Ensure extension is active\n        if (!extension.isActive) {\n            await extension.activate();\n        }\n\n        \u002F\u002F Act\n        const result = await someOperation();\n\n        \u002F\u002F Assert\n        assert.strictEqual(result, expected, 'Description of what went wrong');\n    });\n});\n```\n\n**Key patterns:**\n\n- Use `waitForCondition()` instead of `sleep()` for async assertions\n- Set generous timeouts (`this.timeout(60_000)`)\n- Include clear error messages in assertions\n\n## Test Files\n\n| File                                      | Purpose                            |\n| ----------------------------------------- | ---------------------------------- |\n| `src\u002Ftest\u002Fsmoke\u002Factivation.smoke.test.ts` | Extension activation tests         |\n| `src\u002Ftest\u002Fsmoke\u002Findex.ts`                 | Test runner entry point            |\n| `src\u002Ftest\u002FtestUtils.ts`                   | Utilities (waitForCondition, etc.) |\n\n## Prerequisites\n\n- **CI needs webpack build**: The extension must be built with `npm run compile` (webpack) before tests run. The test runner uses `dist\u002Fextension.js` which is only created by webpack, not by `npm run compile-tests` (tsc)\n- **Extension builds**: Run `npm run compile` before tests\n\n## Notes\n\n- First run downloads VS Code (~100MB, cached in `.vscode-test\u002F`)\n- Tests auto-retry once on failure\n","Run smoke tests to verify the extension loads and basic functionality works in a real VS Code environment.\n\n## When to Use This Skill\n\n- After making changes to extension activation code\n- After modifying commands or API exports\n- Before submitting a PR to verify nothing is broken\n- When the user asks to \"run smoke tests\" or \"verify the extension works\"\n\n## Quick Reference\n\n| Action              | Command                                                          |\n| ------------------- | ---------------------------------------------------------------- |\n| Run all smoke tests | `npm run compile && npm run compile-tests && npm run smoke-test` |\n| Run specific test   | `npm run smoke-test -- --grep \"Extension activates\"`             |\n| Debug in VS Code    | Debug panel → \"Smoke Tests\" → F5                                 |\n\n## How Smoke Tests Work\n\nUnlike unit tests (which mock VS Code), smoke tests run inside a **real VS Code instance**:\n\n1. `npm run smoke-test` uses `@vscode\u002Ftest-cli`\n2. The CLI downloads a standalone VS Code binary (cached in `.vscode-test\u002F`)\n3. It launches that VS Code with your extension installed\n4. Mocha runs test files inside that VS Code process\n5. Results are reported back to your terminal\n\nThis is why smoke tests are slower (~10-60s) but catch real integration issues.\n\n## Workflow\n\n### Step 1: Compile and Run\n\n```bash\nnpm run compile && npm run compile-tests && npm run smoke-test\n```\n\n### Step 2: Interpret Results\n\n**Pass:** `4 passing (2s)` → Extension works, proceed.\n\n**Fail:** See error message and check Debugging section.\n\n### Running Individual Tests\n\nTo run a specific test instead of the whole suite:\n\n```bash\n# By test name (grep pattern)\nnpm run smoke-test -- --grep \"Extension activates\"\n\n# Or temporarily add .only in code:\ntest.only('Extension activates without errors', ...)\n```\n\n## Debugging Failures\n\n| Error                             | Cause                         | Fix                                         |\n| --------------------------------- | ----------------------------- | ------------------------------------------- |\n| `Extension not installed`         | Build failed or ID mismatch   | Run `npm run compile`, check extension ID   |\n| `Extension did not become active` | Error in activate()           | Debug with F5, check Debug Console          |\n| `Command not registered`          | Missing from package.json     | Add to contributes.commands                 |\n| `Timeout exceeded`                | Slow startup or infinite loop | Increase timeout or check for blocking code |\n\nFor detailed debugging, use VS Code: Debug panel → \"Smoke Tests\" → F5\n\n## Adding New Smoke Tests\n\nCreate a new file in `src\u002Ftest\u002Fsmoke\u002F` with the naming convention `*.smoke.test.ts`:\n\n```typescript\nimport * as assert from 'assert';\nimport * as vscode from 'vscode';\nimport { waitForCondition } from '..\u002FtestUtils';\nimport { ENVS_EXTENSION_ID } from '..\u002Fconstants';\n\nsuite('Smoke: [Feature Name]', function () {\n    this.timeout(60_000);\n\n    test('[Test description]', async function () {\n        \u002F\u002F Arrange\n        const extension = vscode.extensions.getExtension(ENVS_EXTENSION_ID);\n        assert.ok(extension, 'Extension not found');\n\n        \u002F\u002F Ensure extension is active\n        if (!extension.isActive) {\n            await extension.activate();\n        }\n\n        \u002F\u002F Act\n        const result = await someOperation();\n\n        \u002F\u002F Assert\n        assert.strictEqual(result, expected, 'Description of what went wrong');\n    });\n});\n```\n\n**Key patterns:**\n\n- Use `waitForCondition()` instead of `sleep()` for async assertions\n- Set generous timeouts (`this.timeout(60_000)`)\n- Include clear error messages in assertions\n\n## Test Files\n\n| File                                      | Purpose                            |\n| ----------------------------------------- | ---------------------------------- |\n| `src\u002Ftest\u002Fsmoke\u002Factivation.smoke.test.ts` | Extension activation tests         |\n| `src\u002Ftest\u002Fsmoke\u002Findex.ts`                 | Test runner entry point            |\n| `src\u002Ftest\u002FtestUtils.ts`                   | Utilities (waitForCondition, etc.) |\n\n## Prerequisites\n\n- **CI needs webpack build**: The extension must be built with `npm run compile` (webpack) before tests run. The test runner uses `dist\u002Fextension.js` which is only created by webpack, not by `npm run compile-tests` (tsc)\n- **Extension builds**: Run `npm run compile` before tests\n\n## Notes\n\n- First run downloads VS Code (~100MB, cached in `.vscode-test\u002F`)\n- Tests auto-retry once on failure\n",{"name":5,"description":7},"main","92c13e7942499b7608a22bf1cb86b881a90afc98",".github\u002Fskills\u002Frun-smoke-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":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add microsoft\u002Fvscode-python-environments --skill run-smoke-tests",{"tool":67,"command":68},"bunx","bunx skills add microsoft\u002Fvscode-python-environments --skill run-smoke-tests",{"tool":70,"command":71},"pnpm","pnpm dlx skills add microsoft\u002Fvscode-python-environments --skill run-smoke-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-smoke-tests\u002FSKILL.md",true,[],[76,108,134,150,173,194],{"skillNo":77,"name":78,"nameZh":79,"description":80,"descriptionZh":81,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":82,"categories":83,"keywords":90,"publishedAt":46},"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",[84,87],{"categoryNo":85,"categoryName":86,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[91,92,93,94,36,95,96,97,98,99,100,101,102,103,104,105,106,107],"settings precedence","settings","review","component","file","workspace","common","Rules","get","essential","false","scope","multi","common pitfalls","pitfalls","inspect","for",{"skillNo":109,"name":110,"nameZh":111,"description":112,"descriptionZh":113,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":114,"categories":115,"keywords":120,"publishedAt":46},"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",[116,117],{"categoryNo":85,"categoryName":86,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":118,"categoryName":119,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[121,122,33,123,124,125,126,36,127,128,129,130,35,131,132,133],"commit","run pre commit checks","pre commit checks","pre commit","unit tests","lint","issues","pre-commit","fix","auto","type","unit","auto-fix",{"skillNo":135,"name":136,"nameZh":137,"description":138,"descriptionZh":139,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":144,"publishedAt":46},"01M69ANZK45PDMWHSTKZKZTS2V","run-integration-tests","扩展组件集成测试运行","Run integration tests to verify that extension components work together correctly. Use this after modifying component interactions or event handling.","运行集成测试以验证扩展的各个组件能否正确协同工作。在修改组件交互或事件处理后使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode-python-environments\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Frun-integration-tests\u002FSKILL.md",[142,143],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[145,146,33,147,35,148,94,37,38,40,42,149],"integration tests","run integration tests","integration","components","event",{"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":46},"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,37,167,39,40,168,169,170,171,43,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":46},"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":85,"categoryName":86,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},[184,185,166,186,36,127,39,40,187,188,189,101,190,191,192,193,107,45,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":46},"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":85,"categoryName":86,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":118,"categoryName":119,"taxonomyType":28,"taxonomyTypeDesc":29},[205,206,207,36,208,209,210,211,212,213,214,215,216,217,218,219,220,221,107,222],"generate snapshot","generate","snapshot","planning","git","health","refactoring","history","technical","codebase health","complexity","code complexity","priorities","dependencies","technical debt","markers","output","codebase"]