反汇编视图中没有快速信息

问题描述 投票:0回答:0

我正在尝试基于 https://github.com/microsoft/VSSDK-Extensibility-Samples/tree/master/AsyncQuickInfo 为 Visual Studio 编写扩展。 如果调试时鼠标悬停在助记符上(反汇编视图),我想显示快速信息。

但是没有达到预期的效果,只在鼠标悬停在空格处显示,悬停助记词时不显示。 例如,鼠标悬停在呼叫中什么都不显示,但如果悬停在助记符和操作数(空格)之间,它就会起作用。

我已将 PredefinedTextViewRoles.Debuggable 添加到提供者,但无济于事。

[Export(typeof(IAsyncQuickInfoSourceProvider))]
[Name("Line Async Quick Info Provider")]
[ContentType("any")]
[TextViewRole(PredefinedTextViewRoles.Debuggable)]
internal sealed class LineAsyncQuickInfoSourceProvider : IAsyncQuickInfoSourceProvider

尝试在 vs2019 或 vs2022 中构建,保持不变。

也尝试将 Order 属性更改为

Order(After="default")
Order(Before="default")
但仍然没有工作。

有人知道如何修复它吗?

调试时,我可以确认

GetQuickInfoItemAsync
按预期返回,但没有显示快速信息窗口。

disassembly vsix quickinfo
© www.soinside.com 2019 - 2024. All rights reserved.