gpt4 book ai didi

visual-studio-code - 如何获取 VsCode 扩展的统计信息?喜欢下载和卸载

转载 作者:行者123 更新时间:2023-12-04 10:45:23 25 4
gpt4 key购买 nike

我想使用报告来分析扩展的使用情况。我可以在扩展代码中报告一些信息,但无法获取下载、卸载、星级等信息。有什么办法可以得到这些信息吗?喜欢 OpenAPI?

最佳答案

您可以通过 vsce show 获得一些统计数据。这不会太难解析。

> vsce help
Commands:
[...]
show [options] <extensionid> Show extension metadata

下面是 C# 扩展的输出示例:
> vsce show ms-vscode.csharp
C#
Microsoft | ↓ 6,218,092 installs | ♥ ♥ ♥ ♥ • (188)

C# for Visual Studio Code (powered by OmniSharp).

Recent versions:
1.21.9 December 16, 2019
1.21.8 November 22, 2019
1.21.7 November 11, 2019
1.21.6 November 5, 2019
1.21.5 October 15, 2019
1.21.4 October 3, 2019

Categories:
Programming Languages, Snippets, Linters, Debuggers

Tags:
.NET, .NET Core, ASP.NET, aspnetcorerazor, C#, csharp, debuggers, dotnet, json, keybindings, multi-root ready, snippet

More info:
Unique identifier: ms-vscode.csharp
Version: 1.21.9
Last updated: December 16, 2019, 6:56:01 PM
Publisher: Microsoft
Published at: February 26, 2016

Statistics:
install 6218092.00
averagerating 3.81
ratingcount 188.00
trendingdaily 0.01
trendingmonthly 20.25
trendingweekly 2.19
updateCount 19399015.00
weightedRating 3.84

您也可以使用 REST API that vsce seems to use under the hood for this直接地。还有一个有点相关的 reddit 讨论 here .

关于visual-studio-code - 如何获取 VsCode 扩展的统计信息?喜欢下载和卸载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59730150/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com