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

Expose Solution and Project APIs for third-party tools #73542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kugushev
Copy link
Contributor

Issue: #42449

Make the following APIs public to be used by third-party tools:

  • Microsoft.CodeAnalysis.Host.IMetadataService
  • Microsoft.CodeAnalysis.Host.IMetadataService.GetReference(string resolvedPath, Microsoft.CodeAnalysis.MetadataReferenceProperties properties) -> Microsoft.CodeAnalysis.PortableExecutableReference
  • Microsoft.CodeAnalysis.Project.GetDocumentAsync(Microsoft.CodeAnalysis.DocumentId documentId, bool includeSourceGenerated = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.Document>
  • Microsoft.CodeAnalysis.Project.GetTextDocumentAsync(Microsoft.CodeAnalysis.DocumentId documentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.TextDocument>
  • Microsoft.CodeAnalysis.Solution.GetDocumentAsync(Microsoft.CodeAnalysis.DocumentId documentId, bool includeSourceGenerated = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.Document>
  • Microsoft.CodeAnalysis.Solution.GetTextDocumentAsync(Microsoft.CodeAnalysis.DocumentId documentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.ValueTask<Microsoft.CodeAnalysis.TextDocument>
  • Microsoft.CodeAnalysis.Solution.WithHasAllInformation(Microsoft.CodeAnalysis.ProjectId projectId, bool hasAllInformation) -> Microsoft.CodeAnalysis.Solution
  • Microsoft.CodeAnalysis.Solution.WithRunAnalyzers(Microsoft.CodeAnalysis.ProjectId projectId, bool runAnalyzers) -> Microsoft.CodeAnalysis.Solution
  • Microsoft.CodeAnalysis.SourceGeneratorTelemetry.ISourceGeneratorTelemetryCollectorWorkspaceService
  • Microsoft.CodeAnalysis.SourceGeneratorTelemetry.ISourceGeneratorTelemetryCollectorWorkspaceService.CollectRunResult(Microsoft.CodeAnalysis.GeneratorDriverRunResult driverRunResult, Microsoft.CodeAnalysis.GeneratorDriverTimingInfo driverTimingInfo, System.Func<Microsoft.CodeAnalysis.ISourceGenerator, Microsoft.CodeAnalysis.Diagnostics.AnalyzerReference> getAnalyzerReference) -> void
  • Microsoft.CodeAnalysis.AssemblyIdentityUtils
  • static Microsoft.CodeAnalysis.AssemblyIdentityUtils.TryGetAssemblyIdentity(string filePath) -> Microsoft.CodeAnalysis.AssemblyIdentity

@kugushev kugushev requested review from a team as code owners May 17, 2024 13:56
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 17, 2024
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label May 17, 2024
@CyrusNajmabadi
Copy link
Member

All of this needs to go through API review. Please open an issue for that, explaining why each of these is needed. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. 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.

None yet

2 participants