Skip to content

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Jun 13, 2024

One of a few navigation improvements i'm making for interceptors. Currently that list is:

  1. Navigate from interceptor to teh call it intercepts (this pr)
  2. Navigate from a callsite to the method intecepting it (and the original method the user was calling)
  3. Having find-references on an interceptor method (or call to method that is intercepted) show the relevant locations.

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 13, 2024
@CyrusNajmabadi CyrusNajmabadi changed the title WIP. Support goto-def taking you from an interceptor method to the location being intercepted. Jun 13, 2024
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review June 13, 2024 21:25
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 13, 2024 21:25
Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:


private async Task<Dictionary<ImmutableArray<byte>, DocumentId>> ComputeContentHashToDocumentIdAsync(CancellationToken cancellationToken)
{
var result = new Dictionary<ImmutableArray<byte>, DocumentId>(ImmutableArrayComparer<byte>.Instance);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dictionary

Isn't it possible for two files to contain the same content?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc'ed in followup.

#nullable disable

using System;
using System.Collections.Immutable;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: intentional?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: How has a nullable disabled lasted this long in this file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in followup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants