提交 d43a6a56 编写于 作者: G Gen Lu

Merge pull request #5652 from genlu/DisablePasteNextTBXCBItem

Disable CTRL+SHIFT+V in interactive window
......@@ -180,6 +180,17 @@ private int PreEditorCommandFilterQueryStatus(ref Guid pguidCmdGroup, uint cCmds
return VSConstants.S_OK;
}
}
else if (pguidCmdGroup == VSConstants.GUID_VSStandardCommandSet97)
{
switch ((VSConstants.VSStd97CmdID)prgCmds[0].cmdID)
{
// TODO: Add support of rotating clipboard ring
// https://github.com/dotnet/roslyn/issues/5651
case VSConstants.VSStd97CmdID.PasteNextTBXCBItem:
prgCmds[0].cmdf = CommandDisabled;
return VSConstants.S_OK;
}
}
return _editorCommandFilter.QueryStatus(ref pguidCmdGroup, cCmds, prgCmds, pCmdText);
}
......@@ -269,6 +280,11 @@ private int PreEditorCommandFilterExec(ref Guid pguidCmdGroup, uint nCmdID, uint
{
switch ((VSConstants.VSStd97CmdID)nCmdID)
{
// TODO: Add support of rotating clipboard ring
// https://github.com/dotnet/roslyn/issues/5651
case VSConstants.VSStd97CmdID.PasteNextTBXCBItem:
return (int)OLE.Interop.Constants.OLECMDERR_E_NOTSUPPORTED;
case VSConstants.VSStd97CmdID.Paste:
_window.Operations.Paste();
return VSConstants.S_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册