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

Get a not-implemented popup when you attempt to rename a resource in RESX #1163

Merged
merged 1 commit into from Jan 14, 2017
Merged

Get a not-implemented popup when you attempt to rename a resource in RESX #1163

merged 1 commit into from Jan 14, 2017

Conversation

davkean
Copy link
Member

@davkean davkean commented Jan 13, 2017

Customer scenario

Customers get the following dialog when attempting to add a new resource or rename a resource within the Resource Designer:

---------------------------
Microsoft Visual Studio
---------------------------
The method or operation is not implemented.
---------------------------
OK   
---------------------------

Bugs this fixes:

#752

Workarounds, if any

Click OK on the dialog.

Risk

Low

Performance impact

None

Is this a regression from a previous update?

No

Root cause analysis:

There were lots of blockers that prevented the Resource Designer from working, now that we started peeling the onion - we're finding more issues.

How was the bug found?

Ad hoc.

Dev Notes

Old legacy project system returns null when you ask for the FileCodeModel for a project item that the language service doesn't know about. We're mimic'ing this behavior.

Underneath if Roslyn returns E_NOTIMPL, it returns null. Ironically, if Roslyn just return S_OK and null, it would still work and we could the avoid the exception. I looked into that - but the Code Model lookup is pretty convoluted and used in a few places. I looked into fixing it - but would need to worry about breaking legacy project system and the VisualStudioWorkspace which has API for retrieving CodeModel items. I opt'd for a targeted fix.

Fixes: #752

We were leaking NotImplementedException from ProjectItem.FileCodeModel, the legacy project system handles it this from Rosln - and returns null.

Verified after this change that rename works and the dialog no longer shows.
@davkean davkean changed the base branch from master to dev15-rc3 January 13, 2017 09:49
@davkean
Copy link
Member Author

davkean commented Jan 13, 2017

I tested rename here as a part of this - and surprisingly it works. This just causes us to go down the same path that the legacy project system hits.

@davkean
Copy link
Member Author

davkean commented Jan 13, 2017

tag @dotnet/project-system tag @MattGertz

@MattGertz MattGertz added this to the 1.0 RC3 milestone Jan 13, 2017
@MattGertz
Copy link

@davkean @srivatsn @natidea Approved to take to RC3 today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants