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

Commitb8ea6f6

Browse files
committed
Touch-ups after rebase
1 parent26ff245 commitb8ea6f6

File tree

3 files changed

+5
-25
lines changed

3 files changed

+5
-25
lines changed

‎vsintegration/src/vs/FsPkgs/FSharp.LanguageService/FSharp.LanguageService.Base/ViewFilter.cs‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public class ViewFilter : IVsTextViewFilter, IVsTextViewEvents, IOleCommandTarge
6767
privateVsCommandsgotoCmd;
6868
privatereadonlyGuidguidInteractive=newGuid("8B9BF77B-AF94-4588-8847-2EB2BFFD29EB");
6969
privatereadonlyuintcmdIDDebugSelection=0x01;
70-
privatereadonlyuintcmdIDDebugLine=0x02;
7170

7271
/// <include file='doc\ViewFilter.uex' path='docs/doc[@for="ViewFilter.SnippetBound"]/*' />
7372
protectedboolSnippetBound{
@@ -95,13 +94,6 @@ private Microsoft.VisualStudio.Shell.Package GetProjectSystemPackage()
9594
returnthis.projectSystemPackage;
9695
}
9796

98-
privateboolEditorSelectionIsEmpty()
99-
{
100-
stringselection;
101-
this.textView.GetSelectedText(outselection);
102-
returnselection=="";
103-
}
104-
10597
/// <include file='doc\ViewFilter.uex' path='docs/doc[@for="ViewFilter.ViewFilter"]/*' />
10698
internalViewFilter(CodeWindowManagermgr,IVsTextViewview){
10799
this.pvaChar=IntPtr.Zero;
@@ -451,18 +443,6 @@ protected virtual int QueryCommandStatus(ref Guid guidCmdGroup, uint nCmdId)
451443
{
452444
vardbgState=Interactive.Hooks.GetDebuggerState(GetProjectSystemPackage());
453445

454-
if(dbgState==Interactive.FsiDebuggerState.AttachedNotToFSI)
455-
return(int)OLECMDF.OLECMDF_INVISIBLE;
456-
elseif(EditorSelectionIsEmpty())
457-
return(int)OLECMDF.OLECMDF_SUPPORTED;
458-
else
459-
return(int)OLECMDF.OLECMDF_SUPPORTED|(int)OLECMDF.OLECMDF_ENABLED;
460-
}
461-
462-
elseif(nCmdId==cmdIDDebugLine)
463-
{
464-
vardbgState=Interactive.Hooks.GetDebuggerState(GetProjectSystemPackage());
465-
466446
if(dbgState==Interactive.FsiDebuggerState.AttachedNotToFSI)
467447
return(int)OLECMDF.OLECMDF_INVISIBLE;
468448
else

‎vsintegration/src/vs/FsPkgs/FSharp.VS.FSI/fsiPackageHooks.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ module internal Hooks =
7474

7575
letOnMLSend(this:Package)(debug:bool)(sender:obj)(e:EventArgs)=
7676
withFSIToolWindow this(fun window->
77-
if debugthen window.MLSend(sender, e)
78-
else window.MLDebugSelection(sender, e)
77+
if debugthen window.MLDebug(sender, e)
78+
else window.MLSend(sender, e)
7979
)
8080

8181
letAddReferencesToFSI(this:Package)references=

‎vsintegration/src/vs/FsPkgs/FSharp.VS.FSI/fsiSessionToolWindow.fs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ type internal FsiToolWindow() as this =
543543
letonMLSend(sender:obj)(e:EventArgs)=
544544
sendSelectionToFSIfalse
545545

546-
letonMLDebugSelection(sender:obj)(e:EventArgs)=
546+
letonMLDebug(sender:obj)(e:EventArgs)=
547547
attachDebugger()
548548
sendSelectionToFSItrue
549549

@@ -584,7 +584,7 @@ type internal FsiToolWindow() as this =
584584
do this.Caption<- VFSIstrings.SR.fsharpInteractive()
585585

586586
memberthis.MLSend(obj,e)= onMLSend obj e
587-
memberthis.MLDebugSelection(obj,e)=onMLDebugSelection obj e
587+
memberthis.MLDebug(obj,e)=onMLDebug obj e
588588

589589
memberthis.GetDebuggerState()=
590590
let(state,_)= getDebuggerState()
@@ -662,7 +662,7 @@ type internal FsiToolWindow() as this =
662662
addCommand Guids.guidFsiConsoleCmdSet Guids.cmdIDDetachDebugger onDetachDebugger None
663663

664664
addCommand Guids.guidInteractiveShell Guids.cmdIDSendSelection onMLSend None
665-
addCommand Guids.guidInteractive Guids.cmdIDDebugSelectiononMLDebugSelection None
665+
addCommand Guids.guidInteractive Guids.cmdIDDebugSelectiononMLDebug None
666666

667667
addCommand guidVSStd2KCmdID(int32 VSConstants.VSStd2KCmdID.UP) onHistory(Some supportWhenInInputArea)
668668
addCommand guidVSStd2KCmdID(int32 VSConstants.VSStd2KCmdID.DOWN) onHistory(Some supportWhenInInputArea)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp