Skip to content

Recent Projects/Solutions get deleted when Command is intercepted #515

@RobertvanderHulst

Description

@RobertvanderHulst

I have used the toolkit to intercept certain commands in my extension.
When I add the code

await VS.Commands.InterceptAsync(VSConstants.VSStd2KCmdID.TAB, () => DoSomething();
await VS.Commands.InterceptAsync(VSConstants.VSStd2KCmdID.BACKTAB, () => DoSomething();

private static CommandProgression DoSomething()
{
    return CommandProgression.Continue;
}

then items 3 and 4 in the Recent Project/Solution list are blanked out.

Can anyone explain that?

For now, I have solved this by adding my own IOleCommandTarget handler that intercepts these keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions