Skip to content

Commit

Permalink
Merge pull request #42947 from allisonchou/AddTelemetryGenerateEditor…
Browse files Browse the repository at this point in the history
…config

Add telemetry for Tools->Options generate editorconfig
  • Loading branch information
allisonchou authored Apr 17, 2020
2 parents a045e96 + 9b3130c commit a15732b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Microsoft.CodeAnalysis.CodeStyle;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.Internal.Log;
using Microsoft.CodeAnalysis.Options;
using Microsoft.CodeAnalysis.Shared.Utilities;
using Microsoft.VisualStudio.LanguageServices.Implementation.Utilities;
Expand Down Expand Up @@ -112,6 +113,8 @@ internal override void Close()

internal void Generate_Save_EditorConfig(object sender, System.Windows.RoutedEventArgs e)
{
Logger.Log(FunctionId.ToolsOptions_GenerateEditorconfig);

var optionSet = this.OptionStore.GetOptions();
var editorconfig = EditorConfigFileGenerator.Generate(_groupedEditorConfigOptions, optionSet, _language);
using (var sfd = new System.Windows.Forms.SaveFileDialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,5 +477,7 @@ internal enum FunctionId
LanguageServer_OnLoadedFailed = 383,

CodeFixes_AddExplicitCast = 384,

ToolsOptions_GenerateEditorconfig = 385,
}
}

0 comments on commit a15732b

Please sign in to comment.