-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Move Copilot EA project to reference Features layer instead of EditorFeatures #77070
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
Conversation
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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)
|
@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? |
Good timing indeed. Yes, I believe the EA assembly can be loaded in roslyn OOP after this change |
So both Copilot in VS and VSCode can use it