Skip to content

Conversation

@genlu
Copy link
Member

@genlu genlu commented Feb 5, 2025

So both Copilot in VS and VSCode can use it

@genlu genlu requested review from a team as code owners February 5, 2025 22:32
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 5, 2025
@dotnet-policy-service dotnet-policy-service bot added VSCode Needs API Review Needs to be reviewed by the API review council labels Feb 5, 2025
@genlu genlu removed the Needs API Review Needs to be reviewed by the API review council label Feb 5, 2025
@genlu
Copy link
Member Author

genlu commented Feb 5, 2025

This PR modifies public API files. Please follow the instructions at https://github.com/dotnet/roslyn/blob/main/docs/contributing/API%20Review%20Process.md for ensuring all public APIs are reviewed before merging.

This PR doesn't change public API, it just modifies an existing EA project w/o any internal API change

@genlu genlu removed the request for review from a team February 5, 2025 22:39
@dotnet-policy-service dotnet-policy-service bot added the Needs API Review Needs to be reviewed by the API review council label Feb 5, 2025
@CyrusNajmabadi
Copy link
Member

This PR doesn't change public API, it just modifies an existing EA project w/o any internal API change

won't this still break our CP consumer? They will have bound to apis in another dll, which are now no longer there.

@genlu
Copy link
Member Author

genlu commented Feb 5, 2025

This PR doesn't change public API, it just modifies an existing EA project w/o any internal API change

won't this still break our CP consumer? They will have bound to apis in another dll, which are now no longer there.

I don't think so? I simply changed the dependency of the EA from EditorFeatures to Features (and the consumer have no reference to anything in EF), and move the files to a different location in the roslyn repo. I believe there's no consumer observable changes, pls correct me if I was wrong

/// Intended usage including cahching responses w/o retaining potentially long strings.
/// Intended usage including caching responses w/o retaining potentially long strings.
/// </summary>
internal sealed class CopilotChecksumWrapper
Copy link
Member

Choose a reason for hiding this comment

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

@genlu Her'es an example. This type moved from EditorFeatures to Features. So anywhere this type might be references in the Copilot codebase, it will now fail to resolve this type as static compilation means that the type referenced has a strong-name that includes teh full assembly it came from.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not following. The source and project file contains this type is moved from src/EditorFeatures/ExternalAccess/Copilot/ folder to src/Features/ExternalAccess/Copilot/ folder, but there's no change to source file's content nor the Microsoft.CodeAnalysis.ExternalAccess.Copilot project contains it (other than a change of dependency)

@davidwengier
Copy link
Member

@genlu this is interesting timing, I was just porting the Razor mapcode endpoint to cohosting, which could be helped by this. Does this mean the conversations DLL itself is dropping some editor dependencies, and could potentially load in the Roslyn OOP process?

@genlu
Copy link
Member Author

genlu commented Feb 5, 2025

this is interesting timing, I was just porting the Razor mapcode endpoint to cohosting, which could be helped by this. Does this mean the conversations DLL itself is dropping some editor dependencies, and could potentially load in the Roslyn OOP process?

Good timing indeed. Yes, I believe the EA assembly can be loaded in roslyn OOP after this change

@genlu genlu merged commit 7ec9f70 into dotnet:main Feb 6, 2025
25 checks passed
@genlu genlu deleted the MoveCopilotEA branch February 6, 2025 23:19
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Feb 6, 2025
@akhera99 akhera99 modified the milestones: Next, 17.14 P2 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Needs API Review Needs to be reviewed by the API review council untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants