Skip to content

The specified ITextSnapshot doesn't belong to the correct TextBuffer #1153

@NoelAbrahams

Description

@NoelAbrahams

Hi,

VS: 2013 Update 4 RC
TS: 1.3

I got an exception message box when hitting F12 on a require path. Following on from the exception the F12 continues to work correctly (i.e. navigates to the target path).

I am currently not able to reproduce this.

The entry from the activity log is below:

  <entry>
    <record>888</record>
    <time>2014/11/13 15:54:31.369</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.ArgumentException: The specified ITextSnapshot doesn&apos;t 
belong to the correct TextBuffer.&#x000D;&#x000A;   
at Microsoft.VisualStudio.Text.SnapshotSpan.TranslateTo(ITextSnapshot targetSnapshot,
SpanTrackingMode spanTrackingMode)&#x000D;&#x000A;   
at TypeScriptLanguageService.Features.HighlightReferences.HighlightReferencesController.&lt;GetTags
&gt;d__7.MoveNext()&#x000D;&#x000A;   
at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;
d__5.MoveNext()
</description>
  </entry>

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions