Visual Studio SDK 是否提供确定打开文档的 pin 状态的方法?

Does the Visual Studio SDK provide a way to determine the pin status of an open document?

我知道 运行 文档 Table 的存在以及如何使用 Visual Studio SDK 访问它,但我似乎找不到确定 UX 的方法- 关于文件的特定属性,比如它是否固定在编辑器中。

也许您可以尝试使用 GetPropertyVsFramePropIdenum 来获取 IsPinned 状态。

https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.shell.vsframepropid?view=visualstudiosdk-2019