147 references to WorkspacesResources
Microsoft.CodeAnalysis.Workspaces (147)
artifacts\obj\Microsoft.CodeAnalysis.Workspaces\Release\net9.0\Microsoft.CodeAnalysis.WorkspacesResources.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(WorkspacesResources)));
CodeActions\CodeAction.cs (1)
361return solution ?? throw new InvalidOperationException(string.Format(WorkspacesResources.CodeAction_0_did_not_produce_a_changed_solution, this.Title));
CodeFixes\CodeFixContext.cs (3)
36throw new InvalidOperationException(WorkspacesResources.Use_TextDocument_property_instead_of_Document_property_as_the_provider_supports_non_source_text_documents); 242throw new ArgumentException(WorkspacesResources.At_least_one_diagnostic_must_be_supplied, nameof(diagnostics)); 252throw new ArgumentException(string.Format(WorkspacesResources.Diagnostic_must_have_span_0, span.ToString()), nameof(diagnostics));
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
54var message = string.Format(WorkspacesResources.Unexpected_value_0_in_DocumentKinds_array,
CodeFixes\FixAllOccurrences\FixAllContext.cs (2)
127throw new ArgumentException(WorkspacesResources.FixAllScope_ContainingType_and_FixAllScope_ContainingMember_are_not_supported_with_this_constructor, 207throw new ArgumentException(WorkspacesResources.FixAllScope_ContainingType_and_FixAllScope_ContainingMember_are_not_supported_with_this_constructor,
CodeFixes\FixAllOccurrences\FixAllProvider.cs (1)
88throw new ArgumentException(WorkspacesResources.FixAllScope_Custom_is_not_supported_with_this_API, nameof(supportedFixAllScopes));
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (1)
45progressTracker.Report(CodeAnalysisProgress.Description(WorkspacesResources.Running_code_cleanup_on_fixed_documents));
CodeRefactorings\CodeRefactoringContext.cs (1)
31throw new InvalidOperationException(WorkspacesResources.Use_TextDocument_property_instead_of_Document_property_as_the_provider_supports_non_source_text_documents);
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (1)
51var message = string.Format(WorkspacesResources.Unexpected_value_0_in_DocumentKinds_array,
CodeRefactorings\FixAllOccurences\FixAllProvider.cs (1)
88throw new ArgumentException(WorkspacesResources.FixAllScope_Custom_is_not_supported_with_this_API, nameof(supportedFixAllScopes));
CodeStyle\NotificationOption2_operators.cs (5)
28ReportDiagnostic.Suppress => WorkspacesResources.None, 29ReportDiagnostic.Hidden => WorkspacesResources.Refactoring_Only, 30ReportDiagnostic.Info => WorkspacesResources.Suggestion, 31ReportDiagnostic.Warn => WorkspacesResources.Warning, 32ReportDiagnostic.Error => WorkspacesResources.Error,
Diagnostics\HostDiagnosticAnalyzers.cs (1)
105var displayName = reference.Display ?? WorkspacesResources.Unknown;
Differencing\Match.cs (4)
45throw new ArgumentException(string.Format(WorkspacesResources.Matching_nodes_0_and_1_must_have_the_same_label, knownMatch.Key, knownMatch.Value), nameof(knownMatches)); 50throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_old_tree, knownMatch.Key), nameof(knownMatches)); 55throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_new_tree, knownMatch.Value), nameof(knownMatches)); 85throw new InvalidOperationException(string.Format(WorkspacesResources.Label_for_node_0_is_invalid_it_must_be_within_bracket_0_1, node, labelCount));
Editing\SymbolEditor.cs (3)
277throw new ArgumentException(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, argSymbol.Name)); 382throw new ArgumentNullException(WorkspacesResources.The_position_is_not_within_the_symbol_s_declaration, nameof(position)); 415throw new ArgumentException(string.Format(WorkspacesResources.The_member_0_is_not_declared_within_the_declaration_of_the_symbol, member.Name));
Editing\SyntaxEditor.cs (1)
243throw new ArgumentException(WorkspacesResources.The_node_is_not_part_of_the_tree, nameof(node));
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
84string.Format(WorkspacesResources.Unmerged_change_from_project_0, projectName),
Options\OptionKey.cs (2)
29throw new ArgumentException(WorkspacesResources.A_language_name_cannot_be_specified_for_this_option); 34throw new ArgumentNullException(WorkspacesResources.A_language_name_must_be_specified_for_this_option);
Remote\RemoteArguments.cs (1)
63Contract.ThrowIfNull(project, WorkspacesResources.Symbols_project_could_not_be_found_in_the_provided_solution);
Rename\ConflictEngine\ConflictResolver.cs (2)
84return new ConflictResolution(WorkspacesResources.Failed_to_resolve_rename_conflicts); 105return new ConflictResolution(string.Format(WorkspacesResources.Symbol_0_is_not_from_source, renameLocations.Symbol.Name));
Rename\Renamer.cs (1)
53throw 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)
82throw 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)
38=> WorkspacesResources.ResourceManager.GetString("Sync_namespace_to_folder_structure", culture ?? WorkspacesResources.Culture)!;
Shared\Utilities\ExtensionOrderer.Node.cs (1)
28throw new ArgumentException(WorkspacesResources.Cycle_detected_in_extensions);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (2)
109public static readonly OptionGroup IndentationAndSpacing = new(name: "indentation_and_spacing", description: WorkspacesResources.Indentation_and_spacing, priority: 1, parent: FormattingOptionGroup); 110public static readonly OptionGroup NewLine = new(name: "new_line", description: WorkspacesResources.New_line_preferences, priority: 2, parent: FormattingOptionGroup);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\OptionKey2.cs (1)
34throw new ArgumentNullException(WorkspacesResources.A_language_name_must_be_specified_for_this_option);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.cs (2)
20using Resources = WorkspacesResources; 438throw new ArgumentException(Resources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer);
Workspace\CommandLineProject.cs (4)
31throw new ArgumentException(WorkspacesResources.Unrecognized_language_name); 69throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_metadata_reference_colon_0, ((UnresolvedMetadataReference)unresolvedMetadataReferences).Reference)); 82throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_analyzer_reference_colon_0, ((UnresolvedAnalyzerReference)unresolvedAnalyzerReferences).Display)); 96throw new ArgumentException(string.Format(WorkspacesResources.An_error_occurred_while_reading_the_specified_configuration_file_colon_0, e.Message));
Workspace\Host\HostLanguageServices.cs (1)
68string.Format(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_1_workspace,
Workspace\Host\HostWorkspaceServices.cs (2)
89string.Format(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_1_workspace, 143=> throw new NotSupportedException(string.Format(WorkspacesResources.The_language_0_is_not_supported, languageName));
Workspace\Host\TemporaryStorage\LegacyTemporaryStorageService.cs (3)
65throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); 80throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); 106throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once);
Workspace\Solution\CompilationOutputInfo.cs (1)
43throw new ArgumentException(WorkspacesResources.AbsolutePathExpected, nameof(path));
Workspace\Solution\Document.cs (1)
434throw new ArgumentException(WorkspacesResources.The_specified_document_is_not_a_version_of_this_document);
Workspace\Solution\FileTextLoader.cs (2)
223var message = string.Format(WorkspacesResources.File_was_externally_modified_colon_0, Path); 251var message = string.Format(WorkspacesResources.File_0_size_of_1_exceeds_maximum_allowed_size_of_2, path, fileLength, MaxFileLength);
Workspace\Solution\Project.cs (1)
816throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\ProjectState.cs (2)
769throw new NotSupportedException(WorkspacesResources.Removing_compilation_options_is_not_supported); 787throw new NotSupportedException(WorkspacesResources.Removing_parse_options_is_not_supported);
Workspace\Solution\Solution.cs (15)
622throw new InvalidOperationException(WorkspacesResources.The_project_already_references_the_target_project); 650throw new ArgumentException(WorkspacesResources.Project_does_not_contain_specified_reference, nameof(projectReference)); 718throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 742throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 803throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 827throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 876throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_reference); 895throw new InvalidOperationException(WorkspacesResources.Solution_does_not_contain_specified_reference); 1106=> this.SolutionState.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId)); 1704_ => throw new ArgumentException(WorkspacesResources.Options_did_not_come_from_specified_Solution, paramName: nameof(options)) 1723throw new InvalidOperationException(WorkspacesResources.The_solution_does_not_contain_the_specified_project); 1815throw new InvalidOperationException(WorkspacesResources.A_project_may_not_reference_itself); 1821string.Format(WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 1849throw new InvalidOperationException(WorkspacesResources.Only_submission_project_can_reference_submission_projects); 1854throw new InvalidOperationException(WorkspacesResources.This_submission_already_references_another_submission_project);
Workspace\Solution\SolutionCompilationState.cs (2)
569throw new NotSupportedException(WorkspacesResources.Changing_project_language_is_not_supported); 574throw new NotSupportedException(WorkspacesResources.Changing_project_between_ordinary_and_interactive_submission_is_not_supported);
Workspace\Solution\SolutionState.cs (3)
357throw new ArgumentException(string.Format(WorkspacesResources.The_language_0_is_not_supported, language)); 1383throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_project); 1391throw new InvalidOperationException(WorkspacesResources.The_solution_does_not_contain_the_specified_project);
Workspace\Solution\SourceGeneratedDocumentState.cs (3)
131=> throw new NotSupportedException(WorkspacesResources.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed); 134=> throw new NotSupportedException(WorkspacesResources.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed); 137=> throw new NotSupportedException(WorkspacesResources.The_contents_of_a_SourceGeneratedDocument_may_not_be_changed);
Workspace\Solution\VersionStamp.cs (1)
57throw new ArgumentException(WorkspacesResources.DateTimeKind_must_be_Utc, nameof(utcLastModified));
Workspace\Workspace.cs (44)
566_ => throw new ArgumentException(WorkspacesResources.Options_did_not_come_from_specified_Solution, paramName: nameof(value)) 1239WorkspacesResources._0_is_not_part_of_the_workspace, 1535progressTracker.Report(CodeAnalysisProgress.Description(string.Format(WorkspacesResources.Applying_changes_to_0, projectChanges.NewProject.Name))); 1624throw new NotSupportedException(WorkspacesResources.Removing_projects_is_not_supported); 1629throw new NotSupportedException(WorkspacesResources.Adding_projects_is_not_supported); 1634throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1639throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 1679throw new NotSupportedException(WorkspacesResources.Changing_compilation_options_is_not_supported); 1688throw new NotSupportedException(WorkspacesResources.Changing_parse_options_is_not_supported); 1693throw new NotSupportedException(WorkspacesResources.Adding_documents_is_not_supported); 1698throw new NotSupportedException(WorkspacesResources.Removing_documents_is_not_supported); 1704throw new NotSupportedException(WorkspacesResources.Changing_document_property_is_not_supported); 1711throw new NotSupportedException(WorkspacesResources.Changing_documents_is_not_supported); 1722throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 1728throw new NotSupportedException(WorkspacesResources.Adding_additional_documents_is_not_supported); 1733throw new NotSupportedException(WorkspacesResources.Removing_additional_documents_is_not_supported); 1738throw new NotSupportedException(WorkspacesResources.Changing_additional_documents_is_not_supported); 1743throw new NotSupportedException(WorkspacesResources.Adding_analyzer_config_documents_is_not_supported); 1748throw new NotSupportedException(WorkspacesResources.Removing_analyzer_config_documents_is_not_supported); 1753throw new NotSupportedException(WorkspacesResources.Changing_analyzer_config_documents_is_not_supported); 1758throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1763throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1768throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1773throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1778throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1783throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 2293throw new ArgumentException(WorkspacesResources.Workspace_is_not_empty); 2308WorkspacesResources._0_is_not_part_of_the_workspace, 2324WorkspacesResources._0_is_already_part_of_the_workspace, 2337WorkspacesResources._0_is_not_referenced, 2350WorkspacesResources._0_is_already_referenced, 2364WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 2376throw new ArgumentException(WorkspacesResources.Metadata_is_not_referenced); 2387throw new ArgumentException(WorkspacesResources.Metadata_is_already_referenced); 2398throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2409throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2420throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2431throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2446WorkspacesResources._0_is_not_part_of_the_workspace, 2462WorkspacesResources._0_is_not_part_of_the_workspace, 2478WorkspacesResources._0_is_not_part_of_the_workspace, 2491WorkspacesResources._0_is_already_part_of_the_workspace, 2507WorkspacesResources._0_is_already_part_of_the_workspace, 2523WorkspacesResources._0_is_already_part_of_the_workspace,
Workspace\Workspace_Editor.cs (6)
155throw new NotSupportedException(WorkspacesResources.This_workspace_does_not_support_opening_and_closing_documents); 163throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); 336string.Format(WorkspacesResources._0_is_still_open, 346WorkspacesResources._0_is_not_open, 375WorkspacesResources._0_is_not_part_of_the_workspace, 663WorkspacesResources._0_is_not_part_of_the_workspace,
Workspace\WorkspaceDiagnostic.cs (2)
22case WorkspaceDiagnosticKind.Failure: kindText = WorkspacesResources.Failure; break; 23case WorkspaceDiagnosticKind.Warning: kindText = WorkspacesResources.Warning; break;
Workspace\WorkspaceDiagnosticDescriptors.cs (7)
19title: new LocalizableResourceString(nameof(WorkspacesResources.Workspace_error), WorkspacesResources.ResourceManager, typeof(WorkspacesResources)), 20messageFormat: new LocalizableResourceString(nameof(WorkspacesResources.Error_reading_content_of_source_file_0_1), WorkspacesResources.ResourceManager, typeof(WorkspacesResources)), 21category: WorkspacesResources.Workspace_error,