提交 d119c2ec 编写于 作者: R Ravi Chande

CR feedback

上级 56526779
......@@ -8,11 +8,13 @@ internal static class EditorCompletionOptions
{
public const string FeatureName = "EditorCompletion";
// Intentionally not persisted
[ExportOption]
public static readonly Option<bool> UseSuggestionMode = new Option<bool>(FeatureName, nameof(UseSuggestionMode), defaultValue: false);
// Default into suggestion mode in the watch/immediate windows but respect the
// user's preferences if they switch away from it.
// Intentionally not persisted
[ExportOption]
public static readonly Option<bool> UseSuggestionMode_Debugger = new Option<bool>(FeatureName, nameof(UseSuggestionMode_Debugger), defaultValue: true);
}
......
......@@ -668,7 +668,7 @@ $$</Document>
End Sub
<ConditionalWpfFact(GetType(x86)), Trait(Traits.Feature, Traits.Features.DebuggingIntelliSense)>
Public Async Function BuilderSettingRetainedBetweenComputations() As Task
Public Async Function BuilderSettingRetainedBetweenComputations_Watch() As Task
Dim text = <Workspace>
<Project Language="C#" CommonReferences="true">
<Document>$$</Document>
......@@ -697,6 +697,36 @@ $$</Document>
End Using
End Function
<ConditionalWpfFact(GetType(x86)), Trait(Traits.Feature, Traits.Features.DebuggingIntelliSense)>
Public Async Function BuilderSettingRetainedBetweenComputations_Watch_Immediate() As Task
Dim text = <Workspace>
<Project Language="C#" CommonReferences="true">
<Document>$$</Document>
<Document>class Program
{
static void Main(string[] args)
[|{|]
}
}</Document>
</Project>
</Workspace>
Using state = TestState.CreateCSharpTestState(text, isImmediateWindow:=True)
state.SendTypeChars("args")
Await state.WaitForAsynchronousOperationsAsync()
Assert.Equal("args", state.GetCurrentViewLineText())
Await state.AssertCompletionSession()
Assert.NotNull(state.CurrentCompletionPresenterSession.SuggestionModeItem)
state.SendToggleCompletionMode()
Await state.WaitForAsynchronousOperationsAsync()
Assert.Null(state.CurrentCompletionPresenterSession.SuggestionModeItem)
state.SendTypeChars(".")
Await state.WaitForAsynchronousOperationsAsync()
Assert.Null(state.CurrentCompletionPresenterSession.SuggestionModeItem)
End Using
End Function
Private Async Function VerifyCompletionAndDotAfter(item As String, state As TestState) As Task
state.SendTypeChars(item)
Await state.WaitForAsynchronousOperationsAsync()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册