Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for GoToDefinition on source-generated files #2170

Merged
merged 3 commits into from Jun 2, 2021

Commits on Jun 1, 2021

  1. Add support for GoToDefinition on source-generated files

    This adds a new response element to gotodefinition responses: SourceGeneratedFileInfo. This is similar to MetadataSource, except that unlike MetadataSource it's not tracked on a type/project basis, but rather as a document/project basis. Retrieving info about a source generated file can be done through the SourceGeneratedFileService endpoints:
    
    * SourceGeneratedFileInfo - Gets the file content of a source generated file.
    * UpdateSourceGeneratedFileInfo - Gets the updated content of a source generated file, if it has changed since the last time information was returned.
    * SourceGeneratedFileClosed - Sent to the server to inform it that the editor has closed the generated file and it can stop tracking Document version info for that file.
    
    Currently, the only way to get the info needed to open a source-generated file is via the gotodefinition endpoint. We'll want to add info to find-usages as well, but that's a job for another day. Contributes to OmniSharp#1934.
    333fred committed Jun 1, 2021
    Copy the full SHA
    7b44551 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2021

  1. Copy the full SHA
    965d5cb View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    791bd5f View commit details
    Browse the repository at this point in the history