Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Add GetRealProject() proxy method #1197

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

Conversation

hach-que
Copy link
Contributor

Follow up from #1160.

In Protobuild, we want auto-completion and text highlighting to work in C# documents when they're opened. But the types of projects in the solution are ProtobuildStandardDefinition, not CSharpProject or DotNetProject.

To support this, we need to have a GetRealProject method, which the type systems and text highlighters can use to get the actual underlying project. The value of this method will change whenever the active configuration changes.

This doesn't cover everywhere I need to intercept this value; when I open a Protobuild project in MonoDevelop it still raises errors in text files about System.Object not being loaded. If someone could point me any other locations I might missing to make this work, that'd be appreciated.

@slluis slluis self-assigned this Jan 22, 2016
@slluis
Copy link
Member

slluis commented Mar 7, 2016

Can ProtobuildStandardDefinition be a subclass of DotNetProject?

@hach-que
Copy link
Contributor Author

hach-que commented Mar 7, 2016

No, because we need to swap out the DotNetProject instance when the current platform changes.

Base automatically changed from master to main March 9, 2021 14:17
@directhex directhex requested a review from slluis as a code owner March 9, 2021 14:17
@akoeplinger akoeplinger changed the base branch from main to master March 15, 2021 17:02
Base automatically changed from master to main March 15, 2021 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants