Share via

IVsUIShellOpenDocument.OpenSpecificEditor error - There is already an editor window open for document

Sajith 86 Reputation points
2022-03-30T15:41:04.6+00:00

I am trying to open an editor from the extension using IVsUIShellOpenDocument.OpenSpecificEditor, this always gives error -
"There is already an editor window open for document '<document moniker>'. You must close the other editor window before proceeding.”

I have checked the Running Document Table at this stage and there is no document with the same moniker name.

I am using VS2022 - 17.1.2

Because there is no document in Running Document Table, what could be reason for this error?
Is there anything that changed in VS2022 in the way documents are opened and RDT is implemented?

Community Center | Not monitored

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.