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

Fix case of "IntelliSense"

上级 e6fb32ba
......@@ -1196,20 +1196,20 @@ internal class EditorFeaturesResources {
}
/// <summary>
/// Looks up a localized string similar to Intellisense.
/// Looks up a localized string similar to IntelliSense.
/// </summary>
internal static string Intellisense {
internal static string IntelliSense {
get {
return ResourceManager.GetString("Intellisense", resourceCulture);
return ResourceManager.GetString("IntelliSense", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Intellisense Commit Formatting.
/// Looks up a localized string similar to IntelliSense Commit Formatting.
/// </summary>
internal static string IntellisenseCommitFormatting {
internal static string IntelliSenseCommitFormatting {
get {
return ResourceManager.GetString("IntellisenseCommitFormatting", resourceCulture);
return ResourceManager.GetString("IntelliSenseCommitFormatting", resourceCulture);
}
}
......
......@@ -697,11 +697,11 @@ Do you want to proceed?</value>
<data name="PreviewChangesSummaryText" xml:space="preserve">
<value>Preview changes</value>
</data>
<data name="Intellisense" xml:space="preserve">
<value>Intellisense</value>
<data name="IntelliSense" xml:space="preserve">
<value>IntelliSense</value>
</data>
<data name="IntellisenseCommitFormatting" xml:space="preserve">
<value>Intellisense Commit Formatting</value>
<data name="IntelliSenseCommitFormatting" xml:space="preserve">
<value>IntelliSense Commit Formatting</value>
</data>
<data name="FontAndColors_RenameTracking" xml:space="preserve">
<value>Rename Tracking</value>
......
......@@ -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
// 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)
transaction.MergePolicy = AutomaticCodeChangeMergePolicy.Instance;
......@@ -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
// 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);
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.
先完成此消息的编辑!
想要评论请 注册