【发布时间】:2019-03-28 23:25:19
【问题描述】:
我正在使用 VS2017 的社区版。 版本 15.2(26430.14) 是截至 2017 年 7 月 7 日的最新更新。 Intellisense 偶尔会很慢,并且会阻止我的编码工作的正常进展。它似乎在大约 10 到 20 秒的等待后“醒来”。但是今天,它崩溃了,活动日志显示了这个信息。
<entry>
<record>1709</record>
<time>2017/07/06 00:17:33.497</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.InvalidOperationException: Cannot Match. The session is dismissed.

at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.Match()

at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.OnViewBuffer_Changed(Object sender, TextContentChangedEventArgs e)

at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
当时我正在编辑 XAML 并向 ContextMenu 的 IsOpen 属性添加绑定。关闭编辑器并重新打开后,它工作正常......
我已经删除了除 Code Maid 之外的所有插件,接下来我会尝试。不过,我正在寻找解决此问题的建议。
【问题讨论】: