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

Sajith 6 Reputation points

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.
32,672 questions
{count} votes