Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit457a9d3

Browse files
JoshVartyKevinRansom
authored andcommitted
Fix vs std11 commands (#2645)
* Only return VSConstants.S_OK for commands we handle.* Remove do keyword
1 parent140440a commit457a9d3

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

‎vsintegration/src/FSharp.Editor/Commands/FsiCommandService.fs‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@ type internal FsiCommandFilter(serviceProvider: System.IServiceProvider) =
3636

3737
interface IOleCommandTargetwith
3838
memberx.Exec(pguidCmdGroup,nCmdId,nCmdexecopt,pvaIn,pvaOut)=
39-
if pguidCmdGroup= VSConstants.VsStd11then
40-
if nCmdId= uint32 VSConstants.VSStd11CmdID.ExecuteSelectionInInteractivethen
41-
Hooks.OnMLSend projectSystemPackage.Value FsiEditorSendAction.ExecuteSelectionnullnull
42-
elif nCmdId= uint32 VSConstants.VSStd11CmdID.ExecuteLineInInteractivethen
43-
Hooks.OnMLSend projectSystemPackage.Value FsiEditorSendAction.ExecuteLinenullnull
39+
if pguidCmdGroup= VSConstants.VsStd11&& nCmdId= uint32 VSConstants.VSStd11CmdID.ExecuteSelectionInInteractivethen
40+
Hooks.OnMLSend projectSystemPackage.Value FsiEditorSendAction.ExecuteSelectionnullnull
4441
VSConstants.S_OK
45-
elif pguidCmdGroup= Guids.guidInteractivethen
46-
if nCmdId= uint32 Guids.cmdIDDebugSelectionthen
47-
Hooks.OnMLSend projectSystemPackage.Value FsiEditorSendAction.DebugSelectionnullnull
42+
elif pguidCmdGroup= VSConstants.VsStd11&& nCmdId= uint32 VSConstants.VSStd11CmdID.ExecuteLineInInteractivethen
43+
Hooks.OnMLSend projectSystemPackage.Value FsiEditorSendAction.ExecuteLinenullnull
44+
VSConstants.S_OK
45+
elif pguidCmdGroup= Guids.guidInteractive&& nCmdId= uint32 Guids.cmdIDDebugSelectionthen
46+
Hooks.OnMLSend projectSystemPackage.Value FsiEditorSendAction.DebugSelectionnullnull
4847
VSConstants.S_OK
4948
elifnot(isNull nextTarget)then
5049
nextTarget.Exec(&pguidCmdGroup, nCmdId, nCmdexecopt, pvaIn, pvaOut)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp