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

Sajith 11 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?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,573 questions
{count} votes

Your answer

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