280 references to WorkspacesResources
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (19)
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (1)
24
=> string.Format(
WorkspacesResources
.Predefined_conversion_from_0_to_1, fromType, toType);
QuickInfo\SemanticQuickInfoSourceTests.cs (18)
5913
{
WorkspacesResources
.Exceptions_colon}
5938
{
WorkspacesResources
.Variables_captured_colon} this, i
5958
{
WorkspacesResources
.Variables_captured_colon} this
5983
{
WorkspacesResources
.Variables_captured_colon} this, @this, i
6009
{
WorkspacesResources
.Variables_captured_colon} this
6035
{
WorkspacesResources
.Variables_captured_colon} this, local
6063
{
WorkspacesResources
.Variables_captured_colon} local1, local2
6091
{
WorkspacesResources
.Variables_captured_colon} local2
6109
{
WorkspacesResources
.Variables_captured_colon} this, i
6127
{
WorkspacesResources
.Variables_captured_colon} this, i
6145
{
WorkspacesResources
.Variables_captured_colon} this, j, i
6165
{
WorkspacesResources
.Variables_captured_colon} this, @this
6184
{
WorkspacesResources
.Variables_captured_colon} i
6210
{
WorkspacesResources
.Variables_captured_colon} this
6236
{
WorkspacesResources
.Variables_captured_colon} this, local
6264
{
WorkspacesResources
.Variables_captured_colon} local1, local2
6292
{
WorkspacesResources
.Variables_captured_colon} local2
6310
{
WorkspacesResources
.Variables_captured_colon} i
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
247
var summary = string.Format(
WorkspacesResources
.Predefined_conversion_from_0_to_1,
Microsoft.CodeAnalysis.EditorFeatures (8)
Editor\EditorLayerExtensionManager.cs (4)
65
message: string.Format(
WorkspacesResources
._0_encountered_an_error_and_has_been_disabled, providerType.Name),
68
new InfoBarUI(
WorkspacesResources
.Show_Stack_Trace, InfoBarUI.UIKind.HyperLink, () => ShowDetailedErrorInfo(exception), closeAfterAction: false),
69
new InfoBarUI(
WorkspacesResources
.Enable, InfoBarUI.UIKind.Button, () =>
74
new InfoBarUI(
WorkspacesResources
.Enable_and_ignore_future_errors, InfoBarUI.UIKind.Button, () =>
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
98
WorkspacesResources
.Show_Stack_Trace,
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
552
throw new ArgumentException(
WorkspacesResources
.The_specified_document_is_not_a_version_of_this_document);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
101
var displayText = string.Format(
WorkspacesResources
.Rename_0_to_1, stateMachine.TrackingSession.OriginalName, newName);
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
308
WorkspacesResources
.Rename_0_to_1,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
MetadataAsSource\DocCommentFormatterTests.cs (4)
56
=> TestFormat(@"<exception cref=""T:System.NotImplementedException"">throws NotImplementedException</exception>", $@"{
WorkspacesResources
.Exceptions_colon}
63
<exception cref=""T:System.InvalidOperationException"">throws InvalidOperationException</exception>", $@"{
WorkspacesResources
.Exceptions_colon}
74
<exception cref=""T:System.NotImplementedException"">also throws NotImplementedException for reason Y</exception>", $@"{
WorkspacesResources
.Exceptions_colon}
161
{
WorkspacesResources
.Exceptions_colon}
RenameTracking\RenameTrackingTestState.cs (1)
192
Assert.Equal(string.Format(
WorkspacesResources
.Rename_0_to_1, expectedFromName, expectedToName), codeAction.Title);
Microsoft.CodeAnalysis.Features (15)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.cs (4)
26
(EditorConfigSeverityStrings.None,
WorkspacesResources
.None),
28
(EditorConfigSeverityStrings.Suggestion,
WorkspacesResources
.Suggestion),
29
(EditorConfigSeverityStrings.Warning,
WorkspacesResources
.Warning),
30
(EditorConfigSeverityStrings.Error,
WorkspacesResources
.Error),
CodeFixes\Service\CodeFixService.cs (2)
427
WorkspacesResources
.Show_Stack_Trace,
868
WorkspacesResources
._0_returned_an_uninitialized_ImmutableArray,
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
293
parts.AddText(
WorkspacesResources
.Exceptions_colon);
327
AddToGroup(SymbolDescriptionGroups.Captures, PlainText($"{
WorkspacesResources
.Variables_captured_colon} ?"));
337
parts.AddText(
WorkspacesResources
.Variables_captured_colon);
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (1)
31
private static readonly string s_exceptionsHeader =
WorkspacesResources
.Exceptions_colon;
Options\EditorConfig\EditorConfigFileGenerator.cs (3)
24
editorconfig.AppendLine($"# {
WorkspacesResources
.Remove_the_line_below_if_you_want_to_inherit_dot_editorconfig_settings_from_higher_directories}");
30
editorconfig.AppendLine($"# {
WorkspacesResources
.CSharp_files}");
35
editorconfig.AppendLine($"# {
WorkspacesResources
.Visual_Basic_files}");
Options\EditorConfig\EditorConfigOptionsEnumerator.cs (2)
35
yield return (
WorkspacesResources
.Core_EditorConfig_Options, FormattingOptions2.EditorConfigOptions);
54
yield return (
WorkspacesResources
.dot_NET_Coding_Conventions,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Hover\HoverTests.cs (3)
64
VerifyVSContent(results, $"string A.Method(int i)|A great method|{
WorkspacesResources
.Exceptions_colon}| System.NullReferenceException");
261
{
WorkspacesResources
.Exceptions_colon}
325
{
WorkspacesResources
.Exceptions_colon}
Microsoft.CodeAnalysis.Workspaces (146)
artifacts\obj\Microsoft.CodeAnalysis.Workspaces\Release\net9.0\Microsoft.CodeAnalysis.WorkspacesResources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
WorkspacesResources
)));
CodeActions\CodeAction.cs (1)
364
return solution ?? throw new InvalidOperationException(string.Format(
WorkspacesResources
.CodeAction_0_did_not_produce_a_changed_solution, this.Title));
CodeFixes\CodeFixContext.cs (3)
36
throw new InvalidOperationException(
WorkspacesResources
.Use_TextDocument_property_instead_of_Document_property_as_the_provider_supports_non_source_text_documents);
242
throw new ArgumentException(
WorkspacesResources
.At_least_one_diagnostic_must_be_supplied, nameof(diagnostics));
252
throw new ArgumentException(string.Format(
WorkspacesResources
.Diagnostic_must_have_span_0, span.ToString()), nameof(diagnostics));
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
55
var message = string.Format(
WorkspacesResources
.Unexpected_value_0_in_DocumentKinds_array,
CodeFixes\FixAllOccurrences\FixAllContext.cs (2)
124
throw new ArgumentException(
WorkspacesResources
.FixAllScope_ContainingType_and_FixAllScope_ContainingMember_are_not_supported_with_this_constructor,
204
throw new ArgumentException(
WorkspacesResources
.FixAllScope_ContainingType_and_FixAllScope_ContainingMember_are_not_supported_with_this_constructor,
CodeFixes\FixAllOccurrences\FixAllProvider.cs (1)
93
throw new ArgumentException(
WorkspacesResources
.FixAllScope_Custom_is_not_supported_with_this_API, nameof(supportedFixAllScopes));
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
45
progressTracker.Report(CodeAnalysisProgress.Description(
WorkspacesResources
.Running_code_cleanup_on_fixed_documents));
CodeRefactorings\CodeRefactoringContext.cs (1)
31
throw new InvalidOperationException(
WorkspacesResources
.Use_TextDocument_property_instead_of_Document_property_as_the_provider_supports_non_source_text_documents);
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (1)
51
var message = string.Format(
WorkspacesResources
.Unexpected_value_0_in_DocumentKinds_array,
CodeRefactorings\FixAllOccurences\FixAllProvider.cs (1)
91
throw new ArgumentException(
WorkspacesResources
.FixAllScope_Custom_is_not_supported_with_this_API, nameof(supportedFixAllScopes));
CodeStyle\NotificationOption2_operators.cs (5)
26
ReportDiagnostic.Suppress =>
WorkspacesResources
.None,
27
ReportDiagnostic.Hidden =>
WorkspacesResources
.Refactoring_Only,
28
ReportDiagnostic.Info =>
WorkspacesResources
.Suggestion,
29
ReportDiagnostic.Warn =>
WorkspacesResources
.Warning,
30
ReportDiagnostic.Error =>
WorkspacesResources
.Error,
Diagnostics\HostDiagnosticAnalyzers.cs (1)
105
var displayName = reference.Display ??
WorkspacesResources
.Unknown;
Differencing\Match.cs (4)
45
throw new ArgumentException(string.Format(
WorkspacesResources
.Matching_nodes_0_and_1_must_have_the_same_label, knownMatch.Key, knownMatch.Value), nameof(knownMatches));
50
throw new ArgumentException(string.Format(
WorkspacesResources
.Node_0_must_be_contained_in_the_old_tree, knownMatch.Key), nameof(knownMatches));
55
throw new ArgumentException(string.Format(
WorkspacesResources
.Node_0_must_be_contained_in_the_new_tree, knownMatch.Value), nameof(knownMatches));
85
throw new InvalidOperationException(string.Format(
WorkspacesResources
.Label_for_node_0_is_invalid_it_must_be_within_bracket_0_1, node, labelCount));
Editing\SymbolEditor.cs (3)
275
throw new ArgumentException(string.Format(
WorkspacesResources
.The_symbol_0_cannot_be_located_within_the_current_solution, argSymbol.Name));
380
throw new ArgumentNullException(
WorkspacesResources
.The_position_is_not_within_the_symbol_s_declaration, nameof(position));
413
throw new ArgumentException(string.Format(
WorkspacesResources
.The_member_0_is_not_declared_within_the_declaration_of_the_symbol, member.Name));
Editing\SyntaxEditor.cs (1)
242
throw new ArgumentException(
WorkspacesResources
.The_node_is_not_part_of_the_tree, nameof(node));
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (7)
79
string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, projectName),
97
<<<<<<< {header}, {
WorkspacesResources
.Before_colon}
101
>>>>>>> {
WorkspacesResources
.After}
107
<<<<<<< {header}, {
WorkspacesResources
.Before_colon}
110
>>>>>>> {
WorkspacesResources
.After}
116
<<<<<<< {header}, {
WorkspacesResources
.Before_colon}
119
>>>>>>> {
WorkspacesResources
.After}
Remote\RemoteArguments.cs (1)
63
Contract.ThrowIfNull(project,
WorkspacesResources
.Symbols_project_could_not_be_found_in_the_provided_solution);
Rename\ConflictEngine\ConflictResolver.cs (2)
79
return new ConflictResolution(
WorkspacesResources
.Failed_to_resolve_rename_conflicts);
99
return new ConflictResolution(string.Format(
WorkspacesResources
.Symbol_0_is_not_from_source, renameLocations.Symbol.Name));
Rename\Renamer.cs (1)
51
throw new ArgumentException(
WorkspacesResources
._0_must_be_a_non_null_and_non_empty_string, nameof(newName));
Rename\Renamer.RenameDocumentAction.cs (2)
35
=> _errorStringKeys.SelectAsArray(s => string.Format(
WorkspacesResources
.ResourceManager.GetString(s.FormatString, culture ??
WorkspacesResources
.Culture)!, s.Arguments));
Rename\Renamer.RenameDocumentActionSet.cs (1)
82
throw new ArgumentException(string.Format(
WorkspacesResources
.Cannot_apply_action_that_is_not_in_0, nameof(ApplicableActions)));
Rename\Renamer.RenameSymbolDocumentAction.cs (2)
34
=> string.Format(
WorkspacesResources
.ResourceManager.GetString("Rename_0_to_1", culture ??
WorkspacesResources
.Culture)!, _analysis.OriginalDocumentName, _analysis.NewDocumentName);
Rename\Renamer.SyncNamespaceDocumentAction.cs (2)
37
=>
WorkspacesResources
.ResourceManager.GetString("Sync_namespace_to_folder_structure", culture ??
WorkspacesResources
.Culture)!;
Shared\Utilities\ExtensionOrderer.Node.cs (1)
26
throw new ArgumentException(
WorkspacesResources
.Cycle_detected_in_extensions);
Workspace\CommandLineProject.cs (4)
31
throw new ArgumentException(
WorkspacesResources
.Unrecognized_language_name);
69
throw new ArgumentException(string.Format(
WorkspacesResources
.Can_t_resolve_metadata_reference_colon_0, ((UnresolvedMetadataReference)unresolvedMetadataReferences).Reference));
82
throw new ArgumentException(string.Format(
WorkspacesResources
.Can_t_resolve_analyzer_reference_colon_0, ((UnresolvedAnalyzerReference)unresolvedAnalyzerReferences).Display));
96
throw new ArgumentException(string.Format(
WorkspacesResources
.An_error_occurred_while_reading_the_specified_configuration_file_colon_0, e.Message));
Workspace\Host\HostLanguageServices.cs (1)
68
string.Format(
WorkspacesResources
.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_1_workspace,
Workspace\Host\HostWorkspaceServices.cs (2)
88
string.Format(
WorkspacesResources
.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_1_workspace,
142
=> throw new NotSupportedException(string.Format(
WorkspacesResources
.The_language_0_is_not_supported, languageName));
Workspace\Host\TemporaryStorage\LegacyTemporaryStorageService.cs (3)
65
throw new InvalidOperationException(
WorkspacesResources
.Temporary_storage_cannot_be_written_more_than_once);
80
throw new InvalidOperationException(
WorkspacesResources
.Temporary_storage_cannot_be_written_more_than_once);
106
throw new InvalidOperationException(
WorkspacesResources
.Temporary_storage_cannot_be_written_more_than_once);
Workspace\Solution\CompilationOutputInfo.cs (1)
43
throw new ArgumentException(
WorkspacesResources
.AbsolutePathExpected, nameof(path));
Workspace\Solution\Document.cs (1)
471
throw new ArgumentException(
WorkspacesResources
.The_specified_document_is_not_a_version_of_this_document);
Workspace\Solution\FileTextLoader.cs (2)
223
var message = string.Format(
WorkspacesResources
.File_was_externally_modified_colon_0, Path);
252
var message = string.Format(
WorkspacesResources
.File_0_size_of_1_exceeds_maximum_allowed_size_of_2, path, fileLength, MaxFileLength);
Workspace\Solution\Project.cs (1)
819
throw new ArgumentException(string.Format(
WorkspacesResources
._0_is_in_a_different_project, documentId));
Workspace\Solution\ProjectState.cs (2)
786
throw new NotSupportedException(
WorkspacesResources
.Removing_compilation_options_is_not_supported);
804
throw new NotSupportedException(
WorkspacesResources
.Removing_parse_options_is_not_supported);
Workspace\Solution\Solution.cs (15)
633
throw new InvalidOperationException(
WorkspacesResources
.The_project_already_references_the_target_project);
661
throw new ArgumentException(
WorkspacesResources
.Project_does_not_contain_specified_reference, nameof(projectReference));
729
throw new InvalidOperationException(
WorkspacesResources
.The_project_already_contains_the_specified_reference);
753
throw new InvalidOperationException(
WorkspacesResources
.Project_does_not_contain_specified_reference);
811
throw new InvalidOperationException(
WorkspacesResources
.The_project_already_contains_the_specified_reference);
840
throw new InvalidOperationException(
WorkspacesResources
.Project_does_not_contain_specified_reference);
896
throw new InvalidOperationException(
WorkspacesResources
.The_solution_already_contains_the_specified_reference);
915
throw new InvalidOperationException(
WorkspacesResources
.Solution_does_not_contain_specified_reference);
1128
=> this.SolutionState.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(
WorkspacesResources
._0_is_not_part_of_the_workspace, projectId));
1730
_ => throw new ArgumentException(
WorkspacesResources
.Options_did_not_come_from_specified_Solution, paramName: nameof(options))
1749
throw new InvalidOperationException(
WorkspacesResources
.The_solution_does_not_contain_the_specified_project);
1858
throw new InvalidOperationException(
WorkspacesResources
.A_project_may_not_reference_itself);
1864
string.Format(
WorkspacesResources
.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference,
1892
throw new InvalidOperationException(
WorkspacesResources
.Only_submission_project_can_reference_submission_projects);
1897
throw new InvalidOperationException(
WorkspacesResources
.This_submission_already_references_another_submission_project);
Workspace\Solution\SolutionCompilationState.cs (2)
569
throw new NotSupportedException(
WorkspacesResources
.Changing_project_language_is_not_supported);
574
throw new NotSupportedException(
WorkspacesResources
.Changing_project_between_ordinary_and_interactive_submission_is_not_supported);
Workspace\Solution\SolutionState.cs (3)
404
throw new ArgumentException(string.Format(
WorkspacesResources
.The_language_0_is_not_supported, language));
1387
throw new InvalidOperationException(
WorkspacesResources
.The_solution_already_contains_the_specified_project);
1395
throw new InvalidOperationException(
WorkspacesResources
.The_solution_does_not_contain_the_specified_project);
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
163
=> throw new NotSupportedException(
WorkspacesResources
.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed);
166
=> throw new NotSupportedException(
WorkspacesResources
.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed);
169
=> throw new NotSupportedException(
WorkspacesResources
.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed);
Workspace\Solution\VersionStamp.cs (1)
57
throw new ArgumentException(
WorkspacesResources
.DateTimeKind_must_be_Utc, nameof(utcLastModified));
Workspace\Workspace.cs (44)
578
_ => throw new ArgumentException(
WorkspacesResources
.Options_did_not_come_from_specified_Solution, paramName: nameof(value))
1309
WorkspacesResources
._0_is_not_part_of_the_workspace,
1603
progressTracker.Report(CodeAnalysisProgress.Description(string.Format(
WorkspacesResources
.Applying_changes_to_0, projectChanges.NewProject.Name)));
1692
throw new NotSupportedException(
WorkspacesResources
.Removing_projects_is_not_supported);
1697
throw new NotSupportedException(
WorkspacesResources
.Adding_projects_is_not_supported);
1702
throw new NotSupportedException(
WorkspacesResources
.Adding_analyzer_references_is_not_supported);
1707
throw new NotSupportedException(
WorkspacesResources
.Removing_analyzer_references_is_not_supported);
1747
throw new NotSupportedException(
WorkspacesResources
.Changing_compilation_options_is_not_supported);
1756
throw new NotSupportedException(
WorkspacesResources
.Changing_parse_options_is_not_supported);
1761
throw new NotSupportedException(
WorkspacesResources
.Adding_documents_is_not_supported);
1766
throw new NotSupportedException(
WorkspacesResources
.Removing_documents_is_not_supported);
1772
throw new NotSupportedException(
WorkspacesResources
.Changing_document_property_is_not_supported);
1779
throw new NotSupportedException(
WorkspacesResources
.Changing_documents_is_not_supported);
1790
throw new NotSupportedException(string.Format(
WorkspacesResources
.Changing_document_0_is_not_supported, document.FilePath ?? document.Name));
1796
throw new NotSupportedException(
WorkspacesResources
.Adding_additional_documents_is_not_supported);
1801
throw new NotSupportedException(
WorkspacesResources
.Removing_additional_documents_is_not_supported);
1806
throw new NotSupportedException(
WorkspacesResources
.Changing_additional_documents_is_not_supported);
1811
throw new NotSupportedException(
WorkspacesResources
.Adding_analyzer_config_documents_is_not_supported);
1816
throw new NotSupportedException(
WorkspacesResources
.Removing_analyzer_config_documents_is_not_supported);
1821
throw new NotSupportedException(
WorkspacesResources
.Changing_analyzer_config_documents_is_not_supported);
1826
throw new NotSupportedException(
WorkspacesResources
.Adding_project_references_is_not_supported);
1831
throw new NotSupportedException(
WorkspacesResources
.Removing_project_references_is_not_supported);
1836
throw new NotSupportedException(
WorkspacesResources
.Adding_project_references_is_not_supported);
1841
throw new NotSupportedException(
WorkspacesResources
.Removing_project_references_is_not_supported);
1846
throw new NotSupportedException(
WorkspacesResources
.Adding_analyzer_references_is_not_supported);
1851
throw new NotSupportedException(
WorkspacesResources
.Removing_analyzer_references_is_not_supported);
2352
throw new ArgumentException(
WorkspacesResources
.Workspace_is_not_empty);
2367
WorkspacesResources
._0_is_not_part_of_the_workspace,
2383
WorkspacesResources
._0_is_already_part_of_the_workspace,
2396
WorkspacesResources
._0_is_not_referenced,
2409
WorkspacesResources
._0_is_already_referenced,
2423
WorkspacesResources
.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference,
2435
throw new ArgumentException(
WorkspacesResources
.Metadata_is_not_referenced);
2446
throw new ArgumentException(
WorkspacesResources
.Metadata_is_already_referenced);
2457
throw new ArgumentException(string.Format(
WorkspacesResources
._0_is_not_present, analyzerReference));
2468
throw new ArgumentException(string.Format(
WorkspacesResources
._0_is_already_present, analyzerReference));
2479
throw new ArgumentException(string.Format(
WorkspacesResources
._0_is_not_present, analyzerReference));
2490
throw new ArgumentException(string.Format(
WorkspacesResources
._0_is_already_present, analyzerReference));
2505
WorkspacesResources
._0_is_not_part_of_the_workspace,
2521
WorkspacesResources
._0_is_not_part_of_the_workspace,
2537
WorkspacesResources
._0_is_not_part_of_the_workspace,
2550
WorkspacesResources
._0_is_already_part_of_the_workspace,
2566
WorkspacesResources
._0_is_already_part_of_the_workspace,
2582
WorkspacesResources
._0_is_already_part_of_the_workspace,
Workspace\Workspace_Editor.cs (6)
156
throw new NotSupportedException(
WorkspacesResources
.This_workspace_does_not_support_opening_and_closing_documents);
164
throw new ArgumentException(string.Format(
WorkspacesResources
._0_still_contains_open_documents, this.GetProjectName(projectId)));
337
string.Format(
WorkspacesResources
._0_is_still_open,
347
WorkspacesResources
._0_is_not_open,
376
WorkspacesResources
._0_is_not_part_of_the_workspace,
664
WorkspacesResources
._0_is_not_part_of_the_workspace,
Workspace\WorkspaceDiagnostic.cs (2)
18
case WorkspaceDiagnosticKind.Failure: kindText =
WorkspacesResources
.Failure; break;
19
case WorkspaceDiagnosticKind.Warning: kindText =
WorkspacesResources
.Warning; break;
Workspace\WorkspaceDiagnosticDescriptors.cs (7)
17
title: new LocalizableResourceString(nameof(
WorkspacesResources
.Workspace_error),
WorkspacesResources
.ResourceManager, typeof(
WorkspacesResources
)),
18
messageFormat: new LocalizableResourceString(nameof(
WorkspacesResources
.Error_reading_content_of_source_file_0_1),
WorkspacesResources
.ResourceManager, typeof(
WorkspacesResources
)),
19
category:
WorkspacesResources
.Workspace_error,
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
482
var message = string.Format(
WorkspacesResources
.Duplicate_source_file_0_in_project_1, doc.FilePath, projectFilePath);
MSBuild\PathResolver.cs (4)
29
_diagnosticReporter?.Report(reportingMode, string.Format(
WorkspacesResources
.Invalid_solution_file_path_colon_0, path));
38
string.Format(
WorkspacesResources
.Solution_file_not_found_colon_0, absolutePath),
54
_diagnosticReporter?.Report(reportingMode, string.Format(
WorkspacesResources
.Invalid_project_file_path_colon_0, path));
63
string.Format(
WorkspacesResources
.Project_file_not_found_colon_0, absolutePath),
MSBuild\ProjectFileExtensionRegistry.cs (2)
71
_diagnosticReporter.Report(mode, string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_language_1_is_not_supported, projectFilePath, language));
78
_diagnosticReporter.Report(mode, string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, projectFilePath, Path.GetExtension(projectFilePath)));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
VisualStudioMSBuildWorkspaceTests.cs (6)
868
var expected = string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, GetSolutionFileName(ProjFileName), ".nyi");
886
var expected = string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, language);
1137
var expected = string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, noProjFullFileName, ".noproj");
1159
var expected = string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp);
1177
var expected = string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp);
1192
var expected = string.Format(
WorkspacesResources
.Cannot_open_project_0_because_the_language_1_is_not_supported, projectName, LanguageNames.CSharp);
Microsoft.CodeAnalysis.Workspaces.UnitTests (36)
LinkedFileDiffMerging\LinkedFileDiffMergingTests.TextMerging.cs (27)
53
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {
WorkspacesResources
.Before_colon}
57
>>>>>>> {
WorkspacesResources
.After}
69
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {
WorkspacesResources
.Before_colon}
73
>>>>>>> {
WorkspacesResources
.After}
104
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {
WorkspacesResources
.Before_colon}
110
>>>>>>> {
WorkspacesResources
.After}
146
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {
WorkspacesResources
.Before_colon}
150
>>>>>>> {
WorkspacesResources
.After}
154
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {
WorkspacesResources
.Before_colon}
158
>>>>>>> {
WorkspacesResources
.After}
176
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName2")}, {
WorkspacesResources
.Before_colon}
180
>>>>>>> {
WorkspacesResources
.After}
182
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName3")}, {
WorkspacesResources
.Before_colon}
185
>>>>>>> {
WorkspacesResources
.After}
202
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {
WorkspacesResources
.Before_colon}
205
>>>>>>> {
WorkspacesResources
.After}
222
<<<<<<< {string.Format(
WorkspacesResources
.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {
WorkspacesResources
.Before_colon}
225
>>>>>>> {
WorkspacesResources
.After}
SolutionTests\SolutionTests.cs (1)
4560
var expected = string.Format(
WorkspacesResources
.File_0_size_of_1_exceeds_maximum_allowed_size_of_2, file.Path, textLength, 1);
SolutionTests\TryApplyChangesTests.cs (2)
109
Assert.Equal(
WorkspacesResources
.Changing_compilation_options_is_not_supported, exception.Message);
157
Assert.Equal(
WorkspacesResources
.Changing_parse_options_is_not_supported, exception.Message);
WorkspaceTests\WorkspaceTests.cs (6)
29
Assert.Equal(
WorkspacesResources
.Changing_documents_is_not_supported,
45
Assert.Equal(
WorkspacesResources
.Changing_document_property_is_not_supported,
63
Assert.Equal(
WorkspacesResources
.Changing_document_property_is_not_supported,
80
Assert.Equal(
WorkspacesResources
.Changing_document_property_is_not_supported,
96
Assert.Equal(
WorkspacesResources
.Changing_document_property_is_not_supported,
108
Assert.Equal(
WorkspacesResources
.Adding_analyzer_references_is_not_supported,
Microsoft.VisualStudio.LanguageServices (32)
CallHierarchy\Finders\AbstractCallFinder.cs (2)
98
throw new Exception(string.Format(
WorkspacesResources
.The_symbol_0_cannot_be_located_within_the_current_solution, SymbolName));
108
throw new Exception(string.Format(
WorkspacesResources
.The_symbol_0_cannot_be_located_within_the_current_solution, SymbolName));
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (1)
47
:
WorkspacesResources
.None;
EditorConfigSettings\Analyzers\View\ColumnDefinitions\AnalyzerSeverityColumnDefinition.cs (4)
46
ReportDiagnostic.Hidden =>
WorkspacesResources
.Refactoring_Only,
47
ReportDiagnostic.Info =>
WorkspacesResources
.Suggestion,
48
ReportDiagnostic.Warn =>
WorkspacesResources
.Warning,
49
ReportDiagnostic.Error =>
WorkspacesResources
.Error,
EditorConfigSettings\Analyzers\ViewModel\SeverityViewModel.cs (4)
16
WorkspacesResources
.Refactoring_Only,
17
WorkspacesResources
.Suggestion,
18
WorkspacesResources
.Warning,
19
WorkspacesResources
.Error
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSeverityViewModel.cs (4)
20
WorkspacesResources
.Refactoring_Only,
21
WorkspacesResources
.Suggestion,
22
WorkspacesResources
.Warning,
23
WorkspacesResources
.Error
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (4)
51
ReportDiagnostic.Hidden =>
WorkspacesResources
.Refactoring_Only,
52
ReportDiagnostic.Info =>
WorkspacesResources
.Suggestion,
53
ReportDiagnostic.Warn =>
WorkspacesResources
.Warning,
54
ReportDiagnostic.Error =>
WorkspacesResources
.Error,
EditorConfigSettings\NamingStyle\ViewModel\ColumnViewModels\NamingStylesSeverityViewModel.cs (4)
55
WorkspacesResources
.Refactoring_Only,
56
WorkspacesResources
.Suggestion,
57
WorkspacesResources
.Warning,
58
WorkspacesResources
.Error,
ErrorReporting\VisualStudioErrorReportingService.cs (1)
73
WorkspacesResources
.Show_Stack_Trace,
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (3)
50
WorkspacesResources
.Show_Stack_Trace,
72
WorkspacesResources
.Show_Stack_Trace,
94
WorkspacesResources
.Show_Stack_Trace,
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
414
AddName(
WorkspacesResources
.Exceptions_colon);
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1210
new(
WorkspacesResources
.Show_Stack_Trace, InfoBarUI.UIKind.HyperLink,
ProjectSystem\VisualStudioWorkspaceImpl.RenameDocumentUndoUnit.cs (1)
42
=> pBstr = string.Format(
WorkspacesResources
.Rename_0_to_1, _fromName, _toName);
Venus\ContainedLanguageCodeSupport.cs (1)
332
var undoTitle = string.Format(
WorkspacesResources
.Rename_0_to_1, symbol.Name, newName);
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
82
public override string Title => string.Format(
WorkspacesResources
.Rename_0_to_1, _symbol.Name, _newName);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Options\AdvancedOptionPageStrings.cs (2)
20
=>
WorkspacesResources
.None;
47
=>
WorkspacesResources
.None;