Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogDebug each project's applied .editorconfig #1013

Merged
merged 1 commit into from Feb 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/CodeFormatter.cs
Expand Up @@ -51,6 +51,17 @@ internal static class CodeFormatter
return new WorkspaceFormatResult(filesFormatted: 0, fileCount: 0, exitCode: 1);
}

if (formatOptions.LogLevel <= LogLevel.Debug)
{
foreach (var project in workspace.CurrentSolution.Projects)
{
foreach (var configDocument in project.AnalyzerConfigDocuments)
{
logger.LogDebug(Resources.Project_0_is_using_configuration_from_1, project.Name, configDocument.FilePath);
}
}
}

var loadWorkspaceMS = workspaceStopwatch.ElapsedMilliseconds;
logger.LogTrace(Resources.Complete_in_0_ms, loadWorkspaceMS);

Expand Down
3 changes: 3 additions & 0 deletions src/Resources.resx
Expand Up @@ -309,4 +309,7 @@
<data name="Cannot_specify_the_folder_option_when_fixing_style" xml:space="preserve">
<value>Cannot specify the '--folder' option when fixing style.</value>
</data>
<data name="Project_0_is_using_configuration_from_1" xml:space="preserve">
<value>Project {0} is using configuration from '{1}'.</value>
</data>
</root>
5 changes: 5 additions & 0 deletions src/xlf/Resources.cs.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">{0} obsahuje více souborů řešení MSBuild. Určete, který soubor chcete použít, pomocí argumentu &lt;workspace&gt;.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.de.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">In "{0}" wurden mehrere MSBuild-Projektmappendateien gefunden. Geben Sie die zu verwendende Datei mit dem &lt;workspace&gt;-Argument an.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.es.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">Se encontraron varios archivos de solución MSBuild en "{0}". Especifique cuál debe usarse con el argumento &lt;workspace&gt;.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.fr.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">Plusieurs fichiers solution MSBuild trouvés dans '{0}'. Spécifiez celui qui doit être utilisé avec l'argument &lt;espace de travail&gt;.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.it.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">In '{0}' sono stati trovati più file di soluzione MSBuild. Per specificare quello desiderato, usare l'argomento &lt;workspace&gt;.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.ja.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">複数の MSBuild ソリューション ファイルが '{0}' で見つかりました。使用するものを &lt;workspace&gt; 引数で指定してください。</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.ko.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">'{0}'에 여러 MSBuild 솔루션 파일이 있습니다. &lt;workspace&gt; 인수를 사용하여 사용할 파일을 지정하세요.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.pl.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">W elemencie „{0}” znaleziono wiele plików rozwiązań MSBuild. Określ plik do użycia za pomocą argumentu &lt;workspace&gt;.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.pt-BR.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">Foram encontrados vários arquivos de solução do MSBuild em '{0}'. Especifique qual será usado com o argumento &lt;workspace&gt;.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.ru.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">В "{0}" обнаружено несколько файлов решения MSBuild. Укажите используемый файл с помощью аргумента &lt;workspace&gt;.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.tr.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">'{0}' içinde birden fazla MSBuild çözüm dosyası bulundu. Hangisinin &lt;çalışma alanı&gt; bağımsız değişkeni ile kullanılacağını belirtin.</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.zh-Hans.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">在“{0}”中找到多个 MSBuild 解决方案文件。请指定要用于 &lt;workspace&gt; 参数的文件。</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down
5 changes: 5 additions & 0 deletions src/xlf/Resources.zh-Hant.xlf
Expand Up @@ -167,6 +167,11 @@
<target state="translated">在 '{0}' 中找到多個 MSBuild 解決方案檔。請指定要用於 &lt;workspace&gt; 引數的檔案。</target>
<note />
</trans-unit>
<trans-unit id="Project_0_is_using_configuration_from_1">
<source>Project {0} is using configuration from '{1}'.</source>
<target state="new">Project {0} is using configuration from '{1}'.</target>
<note />
</trans-unit>
<trans-unit id="Required_references_did_not_load_for_0_or_referenced_project_Run_dotnet_restore_prior_to_formatting">
<source>Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</source>
<target state="new">Required references did not load for {0} or referenced project. Run `dotnet restore` prior to formatting.</target>
Expand Down