提交 5caef9a7 编写于 作者: P Pilchie

Fix case of "IntelliSense"

上级 e6fb32ba
...@@ -1196,20 +1196,20 @@ internal class EditorFeaturesResources { ...@@ -1196,20 +1196,20 @@ internal class EditorFeaturesResources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Intellisense. /// Looks up a localized string similar to IntelliSense.
/// </summary> /// </summary>
internal static string Intellisense { internal static string IntelliSense {
get { get {
return ResourceManager.GetString("Intellisense", resourceCulture); return ResourceManager.GetString("IntelliSense", resourceCulture);
} }
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Intellisense Commit Formatting. /// Looks up a localized string similar to IntelliSense Commit Formatting.
/// </summary> /// </summary>
internal static string IntellisenseCommitFormatting { internal static string IntelliSenseCommitFormatting {
get { get {
return ResourceManager.GetString("IntellisenseCommitFormatting", resourceCulture); return ResourceManager.GetString("IntelliSenseCommitFormatting", resourceCulture);
} }
} }
......
...@@ -697,11 +697,11 @@ Do you want to proceed?</value> ...@@ -697,11 +697,11 @@ Do you want to proceed?</value>
<data name="PreviewChangesSummaryText" xml:space="preserve"> <data name="PreviewChangesSummaryText" xml:space="preserve">
<value>Preview changes</value> <value>Preview changes</value>
</data> </data>
<data name="Intellisense" xml:space="preserve"> <data name="IntelliSense" xml:space="preserve">
<value>Intellisense</value> <value>IntelliSense</value>
</data> </data>
<data name="IntellisenseCommitFormatting" xml:space="preserve"> <data name="IntelliSenseCommitFormatting" xml:space="preserve">
<value>Intellisense Commit Formatting</value> <value>IntelliSense Commit Formatting</value>
</data> </data>
<data name="FontAndColors_RenameTracking" xml:space="preserve"> <data name="FontAndColors_RenameTracking" xml:space="preserve">
<value>Rename Tracking</value> <value>Rename Tracking</value>
......
...@@ -37,7 +37,7 @@ private void Commit(CompletionItem item, TextChange textChange, Model model, cha ...@@ -37,7 +37,7 @@ private void Commit(CompletionItem item, TextChange textChange, Model model, cha
// NOTE(cyrusn): It is intentional that we get the undo history for the // NOTE(cyrusn): It is intentional that we get the undo history for the
// surface buffer and not the subject buffer. // surface buffer and not the subject buffer.
using (var transaction = _undoHistoryRegistry.GetHistory(this.TextView.TextBuffer).CreateTransaction(EditorFeaturesResources.Intellisense)) using (var transaction = _undoHistoryRegistry.GetHistory(this.TextView.TextBuffer).CreateTransaction(EditorFeaturesResources.IntelliSense))
{ {
// We want to merge with any of our other programmatic edits (e.g. automatic brace completion) // We want to merge with any of our other programmatic edits (e.g. automatic brace completion)
transaction.MergePolicy = AutomaticCodeChangeMergePolicy.Instance; transaction.MergePolicy = AutomaticCodeChangeMergePolicy.Instance;
...@@ -128,7 +128,7 @@ private void Commit(CompletionItem item, TextChange textChange, Model model, cha ...@@ -128,7 +128,7 @@ private void Commit(CompletionItem item, TextChange textChange, Model model, cha
{ {
// Formatting the completion item affected span is done as a separate transaction because this gives the user // Formatting the completion item affected span is done as a separate transaction because this gives the user
// the flexibility to undo the formatting but retain the changes associated with the completion item // the flexibility to undo the formatting but retain the changes associated with the completion item
using (var formattingTransaction = _undoHistoryRegistry.GetHistory(this.TextView.TextBuffer).CreateTransaction(EditorFeaturesResources.IntellisenseCommitFormatting)) using (var formattingTransaction = _undoHistoryRegistry.GetHistory(this.TextView.TextBuffer).CreateTransaction(EditorFeaturesResources.IntelliSenseCommitFormatting))
{ {
var changes = formattingService.GetFormattingChangesAsync(document, textChange.Span, CancellationToken.None).WaitAndGetResult(CancellationToken.None); var changes = formattingService.GetFormattingChangesAsync(document, textChange.Span, CancellationToken.None).WaitAndGetResult(CancellationToken.None);
document.Project.Solution.Workspace.ApplyTextChanges(document.Id, changes, CancellationToken.None); document.Project.Solution.Workspace.ApplyTextChanges(document.Id, changes, CancellationToken.None);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册