{"id":425810,"date":"2024-07-09T15:05:56","date_gmt":"2024-07-09T15:05:56","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=425810"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=425810","title":{"rendered":"<span>\u041a\u0430\u043a GitHub-copilot \u043f\u043b\u0430\u0433\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 VSCode Proposed API<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>VSCode \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0441 \u043f\u0440\u0438\u0446\u0435\u043b\u043e\u043c \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432. \u041e\u0442 UI \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043e <a href=\"https:\/\/habr.com\/ru\/news\/816065\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0432\u043e\u0438\u0445 AI \u0430\u0433\u0435\u043d\u0442\u043e\u0432<\/a> \u2014 \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u0447\u0430\u0441\u0442\u044c VS Code \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e VSCode API. \u041c\u043d\u043e\u0433\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u0441\u0430\u043c\u043e\u0433\u043e VSCode \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c\u0438.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f <a href=\"https:\/\/code.visualstudio.com\/api\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u043c\u0438\u043d\u0438-\u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432&#187; \u0441 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 <a href=\"https:\/\/github.com\/microsoft\/vscode-extension-samples\/\" rel=\"noopener noreferrer nofollow\">vscode-extension-samples<\/a>. \u0421\u0430\u043c\u0430 dts-\u043a\u0430 \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c API \u0435\u0441\u0442\u044c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u0435 <a href=\"https:\/\/github.com\/microsoft\/vscode\" rel=\"noopener noreferrer nofollow\">microsoft\/vscode<\/a> \u0432\u043e\u0442 <a href=\"https:\/\/github.com\/microsoft\/vscode\/blob\/main\/src\/vscode-dts\/vscode.d.ts\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>. \u041a\u0440\u043e\u043c\u0435 <code>src\/vscode-dts\/vscode.d.ts<\/code> \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <code>vscode.proposed.*.d.ts<\/code>. \u042d\u0442\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 API. \u041e \u043d\u0435\u043c \u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<h3>\u0427\u0442\u043e \u0438 \u043a\u0430\u043a?<\/h3>\n<p>\u041f\u043b\u0430\u0433\u0438\u043d <strong>github-copilot<\/strong> (\u0434\u043b\u044f inline-\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 proposed API<\/p>\n<pre><code class=\"json\">\/\/ package.json \u043f\u043b\u0430\u0433\u0438\u043d\u0430 github-copilot {     ...     \"enabledApiProposals\": [ \"inlineCompletionsAdditions\" ],     ... }<\/code><\/pre>\n<p>\u042d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448 \u043f\u043b\u0430\u0433\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043a\u0430\u043a\u043e\u0435-\u043d\u0438\u0431\u0443\u0434\u044c proposed API. \u0415\u0449\u0435 \u043a \u0441\u043e\u0440\u0446\u0430\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c dts-\u043a\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e API. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 <a href=\"https:\/\/github.com\/microsoft\/vscode-dts\" rel=\"noopener noreferrer nofollow\">@vscode-dts<\/a>.<\/p>\n<p>Microsoft \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 VSCode Insiders &#8212; \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 dev \u0432\u0435\u0440\u0441\u0438\u0438 VSCode. \u042d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e proposed API \u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0438 \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0435\u043b\u0438\u0437\u0435 VSCode (\u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440).<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c VSCode \u0442\u043e\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 &#8212; \u0432\u0430\u0448 VSCode, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c, \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 proposed API (\u0442\u0430\u043a \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435). \u041f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a: \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0430\u043c\u043e\u0433\u043e VSCode, \u0442.\u0435. \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>Preferences: Configure Runtime Arguments<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430<\/p>\n<pre><code class=\"json\">\/\/ file .vscode\/argv.json {     ...     \"enable-proposed-api\": [\"&lt;YOUR-EXTENSION-ID>\"] }<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 &#8212; \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 proposed API, \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 Extensions Marketplace. \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>Install from VSIX<\/strong>.<\/p>\n<h3>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f commit message<\/h3>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 <strong>github-copilot-chat<\/strong> \u0433\u0435\u043d\u0435\u0440\u0438\u0442 commit message. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 proposed API \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>contribSourceControlInputBoxMenu<\/strong>. \u042d\u0442\u043e API \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043a input \u0431\u043b\u043e\u043a\u0443 \u0432 Source Control \u043c\u0435\u043d\u044e \u0438 \u0447\u0442\u043e-\u0442\u043e \u0442\u0443\u0434\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/14a\/578\/6d0\/14a5786d0ce3226896304a1ecf5114f0.png\" width=\"1411\" height=\"267\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/14a\/578\/6d0\/14a5786d0ce3226896304a1ecf5114f0.png\"\/><\/figure>\n<p>\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e API \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <strong>scm\/inputBox<\/strong> (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043a\u043e\u0440\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043c\u0435\u043d\u0435\u043d \u043d\u0430 <strong>SourceControl<\/strong> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441). \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e<\/p>\n<pre><code class=\"typescript\">const repo: git.Repository = ...;  repo.inputBox.value = 'My awesome commit message';<\/code><\/pre>\n<p>\u0412 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/p>\n<pre><code class=\"json\">\/\/ package.json \u043f\u043b\u0430\u0433\u0438\u043d\u0430 github-copilot-chat {   \"enabledApiProposals\": [     \"contribSourceControlInputBoxMenu\"   ],   \"contributes\": {     \"commands\": [       { \"command\": \"github.copilot.git.generateCommitMessage\", \"title\": \"%github.copilot.git.generateCommitMessage%\", \"icon\": \"$(sparkle)\", \"enablement\": \"!github.copilot.interactiveSession.disabled\", \"category\": \"GitHub Copilot\"       },       ...     ],     ...   },   ... }<\/code><\/pre>\n<p>\u0421\u0430\u043c\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441 \u0438\u043a\u043e\u043d\u043a\u043e\u0439 <strong>$(sparkle)<\/strong> , \u0430 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <strong>github.copilot.git.generateCommitMessage<\/strong>.<\/p>\n<h3>\u0421\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>Proposed API &#8212; \u0448\u0442\u0443\u043a\u0430 \u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f. \u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 &#8212; \u044d\u0442\u043e proposed API \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>interactive<\/strong>. Proposal \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u044b\u0439 \u0438 \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.89.0 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 \u043f\u043b\u0430\u0433\u0438\u043d inline \u0447\u0430\u0442. \u0412\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0442\u0430\u043a<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/73c\/9ba\/35d\/73c9ba35dabb1e57de04a5ab182de04f.png\" width=\"1325\" height=\"574\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/73c\/9ba\/35d\/73c9ba35dabb1e57de04a5ab182de04f.png\"\/><\/figure>\n<p>\u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u043e\u0442 proposal (\u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u0447\u0430\u0442\u043e\u0432\u044b\u0435 proposals) \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c github copilot \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0432 <strong>github-copilot-chat<\/strong>.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440<\/h3>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0438\u0433\u0440\u0443\u0448\u0435\u0447\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 cwd shell-integration \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c proposed API \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>terminalShellIntegration<\/strong>.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0432\u043e\u0439 awesome sample \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/www.npmjs.com\/package\/generator-code\" rel=\"noopener noreferrer nofollow\">yo<\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/46c\/d32\/772\/46cd32772f925175f31728f2a468dec0.png\" alt=\"\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043b\u0430\u0433\u0438\u043d\u0430\" title=\"\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043b\u0430\u0433\u0438\u043d\u0430\" width=\"1844\" height=\"1048\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/46c\/d32\/772\/46cd32772f925175f31728f2a468dec0.png\"\/><\/p>\n<div><figcaption>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e <strong>package.json<\/strong> \u0438 <strong>src\/extension.ts<\/strong><\/p>\n<pre><code class=\"json\">\/\/ package.json {   \"name\": \"awesomesample\",   \"displayName\": \"awesomeSample\",   \"publisher\": \"awesomePublisher\",   ...   \"activationEvents\": [     \"onStartupFinished\"   ],   \"enabledApiProposals\": [     \"terminalShellIntegration\"   ],   ... }<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c proposed API \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <strong>@vscode\/dts<\/strong><\/p>\n<pre><code class=\"bash\">> npm i @vscode\/dts<\/code><\/pre>\n<p>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c<\/p>\n<pre><code class=\"bash\">> npx vscode-dts dev Downloading vscode.proposed.terminalShellIntegration.d.ts To:   \/Users\/d.artyushin\/Documents\/habr\/github-copilot-proposed-api\/awesomesample\/vscode.proposed.terminalShellIntegration.d.ts From: https:\/\/raw.githubusercontent.com\/microsoft\/vscode\/main\/src\/vscode-dts\/vscode.proposed.terminalShellIntegration.d.ts Read more about proposed API at: https:\/\/code.visualstudio.com\/api\/advanced-topics\/using-proposed-api<\/code><\/pre>\n<p>\u0412 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b <strong>vscode.proposed.terminalShellIntegration.d.ts<\/strong> \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e API. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0433\u043e<\/p>\n<pre><code class=\"typescript\">\/\/ src\/extension.ts import * as vscode from 'vscode';  export function activate(context: vscode.ExtensionContext) { \/\/ \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435     const terminalCwd = vscode.window.onDidStartTerminalShellExecution((event) => { \/\/ event \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f vscode.TerminalShellExecutionStartEvent         \/\/ \u0435\u0441\u043b\u0438 shellIntegration \u0435\u0441\u0442\u044c, \u0442\u043e \u0443 \u043d\u0435\u0433\u043e \u0431\u0435\u0440\u0435\u043c \u043f\u043e\u043b\u0435 cwd const currentCwd = event.terminal.shellIntegration?.cwd;  if (currentCwd === undefined) { vscode.window.showInformationMessage('No found cwd :('); } else { vscode.window.showInformationMessage(`Cwd is ${currentCwd}`);     } });  context.subscriptions.push(terminalCwd); }  export function deactivate() {} <\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 <strong>argv.json<\/strong> \u0441\u0442\u0440\u043e\u043a\u0443 (\u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e)<\/p>\n<pre><code class=\"json\">\/\/ .vscode\/argv.json {   ...   \/\/ Enable proposed API features.   \"enable-proposed-api\": [\"awesomePublisher.awesomesample\"], }<\/code><\/pre>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0438 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>ls<\/strong> \u0432 <strong>zsh<\/strong> \u0438 <strong>bash<\/strong>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/071\/917\/974\/071917974e988772a84746490cfb3b4f.png\" alt=\"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 zsh\" title=\"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 zsh\" width=\"1850\" height=\"1050\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/071\/917\/974\/071917974e988772a84746490cfb3b4f.png\"\/><\/p>\n<div><figcaption>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 zsh<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/218\/94d\/9bc\/21894d9bc8b550fd3756ea9f4b6a7446.png\" alt=\"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 bash\" title=\"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 bash\" width=\"1850\" height=\"1050\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/218\/94d\/9bc\/21894d9bc8b550fd3756ea9f4b6a7446.png\"\/><\/p>\n<div><figcaption>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 bash<\/figcaption><\/div>\n<\/figure>\n<h3>Proposed API \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u0445 Copilot<\/h3>\n<p>\u041e\u0431\u044b\u0447\u043d\u043e github \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u0432\u043e\u0438 \u043d\u043e\u0432\u044b\u0435 API \u043d\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 github-copilot-chat. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 <\/p>\n<pre><code class=\"json\">\/\/ package.json \u043f\u043b\u0430\u0433\u0438\u043d\u0430 github-copilot-chat {   ...   \"enabledApiProposals\": [     \"interactive\",     \"terminalDataWriteEvent\", \"terminalExecuteCommandEvent\", \"terminalSelection\", \"terminalQuickFixProvider\", \"chatParticipantAdditions\", \"defaultChatParticipant\", \"embeddings\", \"chatVariableResolver\", \"chatProvider\", \"mappedEditsProvider\", \"aiRelatedInformation\", \"codeActionAI\", \"findTextInFiles\", \"textSearchProvider\", \"commentReveal\", \"contribSourceControlInputBoxMenu\", \"contribCommentEditorActionsMenu\", \"contribCommentThreadAdditionalMenu\", \"contribCommentsViewThreadMenus\", \"newSymbolNamesProvider\", \"findFiles2\", \"extensionsAny\", \"authLearnMore\", \"testObserver\", \"aiTextSearchProvider\", \"documentFiltersExclusive\", \"chatParticipantPrivate\", \"lmTools\"   ],   ... }<\/code><\/pre>\n<p>\u0421\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: &#171;\u041a\u0430\u043a \u0442\u043e\u0433\u0434\u0430 github \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0441\u0432\u043e\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0432 Extension Marketplace?&#187;. \u0412 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 VSCode \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434<\/p>\n<pre><code class=\"typescript\">...         \/\/ NEW world - product.json spells out what proposals each extension can use if (productService.extensionEnabledApiProposals) { for (const [k, value] of Object.entries(productService.extensionEnabledApiProposals)) { const key = ExtensionIdentifier.toKey(k); const proposalNames = value.filter(name => { if (!allApiProposals[&lt;ApiProposalName>name]) { _logService.warn(`Via 'product.json#extensionEnabledApiProposals' extension '${key}' wants API proposal '${name}' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.`); return false; } return true; }); this._productEnabledExtensions.set(key, proposalNames); } } }  updateEnabledApiProposals(extensions: IExtensionDescription[]): void { for (const extension of extensions) { this.doUpdateEnabledApiProposals(extension); } }  ...   <\/code><\/pre>\n<p>\u041a\u043e\u043c\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u0434\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0430\u043c \u0437\u0430 \u0441\u0435\u0431\u044f. \u0424\u0430\u0439\u043b\u00a0<strong>product.json<\/strong>\u00a0\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 VSCode \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438 (\u0434\u043b\u044f MacOS)\u00a0<strong>\/Applications\/Visual Studio Code.app\/Contents\/Resources\/app\/product.json<\/strong>\u00a0. \u0422\u0430\u043c \u0434\u043b\u044f &#171;\u0432\u0430\u0436\u043d\u044b\u0445&#187; \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u043a\u0430\u043a \u0440\u0430\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 proposal API<\/p>\n<pre><code class=\"json\">{     ...     \"extensionEnabledApiProposals\": {         ...         \"GitHub.copilot\": [ \"inlineCompletionsAdditions\" ], \"GitHub.copilot-nightly\": [ \"inlineCompletionsAdditions\" ], \"GitHub.copilot-chat\": [ \"interactive\", \"terminalDataWriteEvent\", \"terminalExecuteCommandEvent\", \"terminalSelection\", \"terminalQuickFixProvider\", \"chatParticipantAdditions\", \"defaultChatParticipant\", \"embeddings\", \"chatVariableResolver\", \"chatProvider\", \"mappedEditsProvider\", \"aiRelatedInformation\", \"codeActionAI\", \"findTextInFiles\", \"textSearchProvider\", \"commentReveal\", \"contribSourceControlInputBoxMenu\", \"contribCommentEditorActionsMenu\", \"contribCommentThreadAdditionalMenu\", \"contribCommentsViewThreadMenus\", \"newSymbolNamesProvider\", \"findFiles2\", \"extensionsAny\", \"authLearnMore\", \"testObserver\", \"aiTextSearchProvider\", \"documentFiltersExclusive\", \"chatParticipantPrivate\", \"lmTools\" ],         ... }<\/code><\/pre>\n<p>\u0421\u0435\u0431\u0435 (\u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c) \u0432\u044b \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u0441 <strong>argv<\/strong>.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 &#8212; \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 VSCode proposed API, \u0442\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u043a\u043b\u0435\u0432\u043e\u0433\u043e \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \ud83d\ude42 \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u044e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 Release Notes \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 VSCode &#8212; \u0442\u0430\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"https:\/\/code.visualstudio.com\/updates\/v1_91#_proposed-apis\" rel=\"noopener noreferrer nofollow\">Proposed APIs<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/827152\/\"> https:\/\/habr.com\/ru\/articles\/827152\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>VSCode \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0441 \u043f\u0440\u0438\u0446\u0435\u043b\u043e\u043c \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432. \u041e\u0442 UI \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0434\u043e <a href=\"https:\/\/habr.com\/ru\/news\/816065\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0432\u043e\u0438\u0445 AI \u0430\u0433\u0435\u043d\u0442\u043e\u0432<\/a> \u2014 \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u0443\u044e \u0447\u0430\u0441\u0442\u044c VS Code \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e VSCode API. \u041c\u043d\u043e\u0433\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u0441\u0430\u043c\u043e\u0433\u043e VSCode \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c\u0438.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f <a href=\"https:\/\/code.visualstudio.com\/api\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a> \u043f\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e &#171;\u043c\u0438\u043d\u0438-\u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432&#187; \u0441 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 <a href=\"https:\/\/github.com\/microsoft\/vscode-extension-samples\/\" rel=\"noopener noreferrer nofollow\">vscode-extension-samples<\/a>. \u0421\u0430\u043c\u0430 dts-\u043a\u0430 \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c API \u0435\u0441\u0442\u044c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u0435 <a href=\"https:\/\/github.com\/microsoft\/vscode\" rel=\"noopener noreferrer nofollow\">microsoft\/vscode<\/a> \u0432\u043e\u0442 <a href=\"https:\/\/github.com\/microsoft\/vscode\/blob\/main\/src\/vscode-dts\/vscode.d.ts\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>. \u041a\u0440\u043e\u043c\u0435 <code>src\/vscode-dts\/vscode.d.ts<\/code> \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 <code>vscode.proposed.*.d.ts<\/code>. \u042d\u0442\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 API. \u041e \u043d\u0435\u043c \u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<h3>\u0427\u0442\u043e \u0438 \u043a\u0430\u043a?<\/h3>\n<p>\u041f\u043b\u0430\u0433\u0438\u043d <strong>github-copilot<\/strong> (\u0434\u043b\u044f inline-\u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 proposed API<\/p>\n<pre><code class=\"json\">\/\/ package.json \u043f\u043b\u0430\u0433\u0438\u043d\u0430 github-copilot {     ...     \"enabledApiProposals\": [ \"inlineCompletionsAdditions\" ],     ... }<\/code><\/pre>\n<p>\u042d\u0442\u043e \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448 \u043f\u043b\u0430\u0433\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043a\u0430\u043a\u043e\u0435-\u043d\u0438\u0431\u0443\u0434\u044c proposed API. \u0415\u0449\u0435 \u043a \u0441\u043e\u0440\u0446\u0430\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c dts-\u043a\u0443 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e API. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 <a href=\"https:\/\/github.com\/microsoft\/vscode-dts\" rel=\"noopener noreferrer nofollow\">@vscode-dts<\/a>.<\/p>\n<p>Microsoft \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 VSCode Insiders &#8212; \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 dev \u0432\u0435\u0440\u0441\u0438\u0438 VSCode. \u042d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e proposed API \u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0438 \u043c\u043e\u0436\u0435\u0442 \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0435\u043b\u0438\u0437\u0435 VSCode (\u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440).<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u043c VSCode \u0442\u043e\u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 &#8212; \u0432\u0430\u0448 VSCode, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c, \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 proposed API (\u0442\u0430\u043a \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435). \u041f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a: \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0430\u043c\u043e\u0433\u043e VSCode, \u0442.\u0435. \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>Preferences: Configure Runtime Arguments<\/strong> \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430<\/p>\n<pre><code class=\"json\">\/\/ file .vscode\/argv.json {     ...     \"enable-proposed-api\": [\"&lt;YOUR-EXTENSION-ID>\"] }<\/code><\/pre>\n<p>\u041d\u0443 \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 &#8212; \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 proposed API, \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 Extensions Marketplace. \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>Install from VSIX<\/strong>.<\/p>\n<h3>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f commit message<\/h3>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 <strong>github-copilot-chat<\/strong> \u0433\u0435\u043d\u0435\u0440\u0438\u0442 commit message. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 proposed API \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>contribSourceControlInputBoxMenu<\/strong>. \u042d\u0442\u043e API \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043a input \u0431\u043b\u043e\u043a\u0443 \u0432 Source Control \u043c\u0435\u043d\u044e \u0438 \u0447\u0442\u043e-\u0442\u043e \u0442\u0443\u0434\u0430 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u044d\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e API \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <strong>scm\/inputBox<\/strong> (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043a\u043e\u0440\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u043c\u0435\u043d\u0435\u043d \u043d\u0430 <strong>SourceControl<\/strong> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441). \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e<\/p>\n<pre><code class=\"typescript\">const repo: git.Repository = ...;  repo.inputBox.value = 'My awesome commit message';<\/code><\/pre>\n<p>\u0412 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/p>\n<pre><code class=\"json\">\/\/ package.json \u043f\u043b\u0430\u0433\u0438\u043d\u0430 github-copilot-chat {   \"enabledApiProposals\": [     \"contribSourceControlInputBoxMenu\"   ],   \"contributes\": {     \"commands\": [       { \"command\": \"github.copilot.git.generateCommitMessage\", \"title\": \"%github.copilot.git.generateCommitMessage%\", \"icon\": \"$(sparkle)\", \"enablement\": \"!github.copilot.interactiveSession.disabled\", \"category\": \"GitHub Copilot\"       },       ...     ],     ...   },   ... }<\/code><\/pre>\n<p>\u0421\u0430\u043c\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u0441 \u0438\u043a\u043e\u043d\u043a\u043e\u0439 <strong>$(sparkle)<\/strong> , \u0430 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <strong>github.copilot.git.generateCommitMessage<\/strong>.<\/p>\n<h3>\u0421\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>Proposed API &#8212; \u0448\u0442\u0443\u043a\u0430 \u043d\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f. \u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 &#8212; \u044d\u0442\u043e proposed API \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>interactive<\/strong>. Proposal \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0430\u0440\u044b\u0439 \u0438 \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.89.0 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0441\u0432\u043e\u0439 \u043f\u043b\u0430\u0433\u0438\u043d inline \u0447\u0430\u0442. \u0412\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u043e \u0442\u0430\u043a<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u043e\u0442 proposal (\u043a\u0430\u043a \u0438 \u0432\u0441\u0435 \u0447\u0430\u0442\u043e\u0432\u044b\u0435 proposals) \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c github copilot \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0432 <strong>github-copilot-chat<\/strong>.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440<\/h3>\n<p>\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0438\u0433\u0440\u0443\u0448\u0435\u0447\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 cwd shell-integration \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c proposed API \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>terminalShellIntegration<\/strong>.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0432\u043e\u0439 awesome sample \u043f\u0440\u043e\u0435\u043a\u0442 \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/www.npmjs.com\/package\/generator-code\" rel=\"noopener noreferrer nofollow\">yo<\/a><\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e <strong>package.json<\/strong> \u0438 <strong>src\/extension.ts<\/strong><\/p>\n<pre><code class=\"json\">\/\/ package.json {   \"name\": \"awesomesample\",   \"displayName\": \"awesomeSample\",   \"publisher\": \"awesomePublisher\",   ...   \"activationEvents\": [     \"onStartupFinished\"   ],   \"enabledApiProposals\": [     \"terminalShellIntegration\"   ],   ... }<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c proposed API \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <strong>@vscode\/dts<\/strong><\/p>\n<pre><code class=\"bash\">> npm i @vscode\/dts<\/code><\/pre>\n<p>, \u0430 \u0437\u0430\u0442\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c<\/p>\n<pre><code class=\"bash\">> npx vscode-dts dev Downloading vscode.proposed.terminalShellIntegration.d.ts To:   \/Users\/d.artyushin\/Documents\/habr\/github-copilot-proposed-api\/awesomesample\/vscode.proposed.terminalShellIntegration.d.ts From: https:\/\/raw.githubusercontent.com\/microsoft\/vscode\/main\/src\/vscode-dts\/vscode.proposed.terminalShellIntegration.d.ts Read more about proposed API at: https:\/\/code.visualstudio.com\/api\/advanced-topics\/using-proposed-api<\/code><\/pre>\n<p>\u0412 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0444\u0430\u0439\u043b <strong>vscode.proposed.terminalShellIntegration.d.ts<\/strong> \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e API. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0435\u0433\u043e<\/p>\n<pre><code class=\"typescript\">\/\/ src\/extension.ts import * as vscode from 'vscode';  export function activate(context: vscode.ExtensionContext) { \/\/ \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435     const terminalCwd = vscode.window.onDidStartTerminalShellExecution((event) => { \/\/ event \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f vscode.TerminalShellExecutionStartEvent         \/\/ \u0435\u0441\u043b\u0438 shellIntegration \u0435\u0441\u0442\u044c, \u0442\u043e \u0443 \u043d\u0435\u0433\u043e \u0431\u0435\u0440\u0435\u043c \u043f\u043e\u043b\u0435 cwd const currentCwd = event.terminal.shellIntegration?.cwd;  if (currentCwd === undefined) { vscode.window.showInformationMessage('No found cwd :('); } else { vscode.window.showInformationMessage(`Cwd is ${currentCwd}`);     } });  context.subscriptions.push(terminalCwd); }  export function deactivate() {} <\/code><\/pre>\n<p>\u041d\u0443\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 <strong>argv.json<\/strong> \u0441\u0442\u0440\u043e\u043a\u0443 (\u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e)<\/p>\n<pre><code class=\"json\">\/\/ .vscode\/argv.json {   ...   \/\/ Enable proposed API features.   \"enable-proposed-api\": [\"awesomePublisher.awesomesample\"], }<\/code><\/pre>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0438 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <strong>ls<\/strong> \u0432 <strong>zsh<\/strong> \u0438 <strong>bash<\/strong>:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 zsh<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 ls \u0432 bash<\/figcaption><\/div>\n<\/figure>\n<h3>Proposed API \u0432 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u0445 Copilot<\/h3>\n<p>\u041e\u0431\u044b\u0447\u043d\u043e github \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u0432\u043e\u0438 \u043d\u043e\u0432\u044b\u0435 API \u043d\u0430 \u043f\u043b\u0430\u0433\u0438\u043d\u0435 github-copilot-chat. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 <\/p>\n<pre><code class=\"json\">\/\/ package.json \u043f\u043b\u0430\u0433\u0438\u043d\u0430 github-copilot-chat {   ...   \"enabledApiProposals\": [     \"interactive\",     \"terminalDataWriteEvent\", \"terminalExecuteCommandEvent\", \"terminalSelection\", \"terminalQuickFixProvider\", \"chatParticipantAdditions\", \"defaultChatParticipant\", \"embeddings\", \"chatVariableResolver\", \"chatProvider\", \"mappedEditsProvider\", \"aiRelatedInformation\", \"codeActionAI\", \"findTextInFiles\", \"textSearchProvider\", \"commentReveal\", \"contribSourceControlInputBoxMenu\", \"contribCommentEditorActionsMenu\", \"contribCommentThreadAdditionalMenu\", \"contribCommentsViewThreadMenus\", \"newSymbolNamesProvider\", \"findFiles2\", \"extensionsAny\", \"authLearnMore\", \"testObserver\", \"aiTextSearchProvider\", \"documentFiltersExclusive\", \"chatParticipantPrivate\", \"lmTools\"   ],   ... }<\/code><\/pre>\n<p>\u0421\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: &#171;\u041a\u0430\u043a \u0442\u043e\u0433\u0434\u0430 github \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u0442 \u0441\u0432\u043e\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0432 Extension Marketplace?&#187;. \u0412 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 VSCode \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434<\/p>\n<pre><code class=\"typescript\">...         \/\/ NEW world - product.json spells out what proposals each extension can use if (productService.extensionEnabledApiProposals) { for (const [k, value] of Object.entries(productService.extensionEnabledApiProposals)) { const key = ExtensionIdentifier.toKey(k); const proposalNames = value.filter(name => { if (!allApiProposals[&lt;ApiProposalName>name]) { _logService.warn(`Via 'product.json#extensionEnabledApiProposals' extension '${key}' wants API proposal '${name}' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned.`); return false; } return true; }); this._productEnabledExtensions.set(key, proposalNames); } } }  updateEnabledApiProposals(extensions: IExtensionDescription[]): void { for (const extension of extensions) { this.doUpdateEnabledApiProposals(extension); } }  ...   <\/code><\/pre>\n<p>\u041a\u043e\u043c\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u0434\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u0430\u043c \u0437\u0430 \u0441\u0435\u0431\u044f. \u0424\u0430\u0439\u043b\u00a0<strong>product.json<\/strong>\u00a0\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 VSCode \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438 (\u0434\u043b\u044f MacOS)\u00a0<strong>\/Applications\/Visual Studio Code.app\/Contents\/Resources\/app\/product.json<\/strong>\u00a0. \u0422\u0430\u043c \u0434\u043b\u044f &#171;\u0432\u0430\u0436\u043d\u044b\u0445&#187; \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u043a\u0430\u043a \u0440\u0430\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 proposal API<\/p>\n<pre><code class=\"json\">{     ...     \"extensionEnabledApiProposals\": {         ...         \"GitHub.copilot\": [ \"inlineCompletionsAdditions\" ], \"GitHub.copilot-nightly\": [ \"inlineCompletionsAdditions\" ], \"GitHub.copilot-chat\": [ \"interactive\", \"terminalDataWriteEvent\", \"terminalExecuteCommandEvent\", \"terminalSelection\", \"terminalQuickFixProvider\", \"chatParticipantAdditions\", \"defaultChatParticipant\", \"embeddings\", \"chatVariableResolver\", \"chatProvider\", \"mappedEditsProvider\", \"aiRelatedInformation\", \"codeActionAI\", \"findTextInFiles\", \"textSearchProvider\", \"commentReveal\", \"contribSourceControlInputBoxMenu\", \"contribCommentEditorActionsMenu\", \"contribCommentThreadAdditionalMenu\", \"contribCommentsViewThreadMenus\", \"newSymbolNamesProvider\", \"findFiles2\", \"extensionsAny\", \"authLearnMore\", \"testObserver\", \"aiTextSearchProvider\", \"documentFiltersExclusive\", \"chatParticipantPrivate\", \"lmTools\" ],         ... }<\/code><\/pre>\n<p>\u0421\u0435\u0431\u0435 (\u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c) \u0432\u044b \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u0441 <strong>argv<\/strong>.<\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 &#8212; \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0439\u0442\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 VSCode proposed API, \u0442\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u043a\u043b\u0435\u0432\u043e\u0433\u043e \u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \ud83d\ude42 \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u0438\u0437\u044b\u0432\u0430\u044e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 Release Notes \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 VSCode &#8212; \u0442\u0430\u043c \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b <a href=\"https:\/\/code.visualstudio.com\/updates\/v1_91#_proposed-apis\" rel=\"noopener noreferrer nofollow\">Proposed APIs<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/827152\/\"> https:\/\/habr.com\/ru\/articles\/827152\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-425810","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/425810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=425810"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/425810\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=425810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=425810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=425810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}