146 references to WorkspacesResources
Microsoft.CodeAnalysis.Workspaces (146)
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)
360return 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)
126throw new ArgumentException(WorkspacesResources.FixAllScope_ContainingType_and_FixAllScope_ContainingMember_are_not_supported_with_this_constructor, 206throw 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)
26ReportDiagnostic.Suppress => WorkspacesResources.None, 27ReportDiagnostic.Hidden => WorkspacesResources.Refactoring_Only, 28ReportDiagnostic.Info => WorkspacesResources.Suggestion, 29ReportDiagnostic.Warn => WorkspacesResources.Warning, 30ReportDiagnostic.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)
275throw new ArgumentException(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, argSymbol.Name)); 380throw new ArgumentNullException(WorkspacesResources.The_position_is_not_within_the_symbol_s_declaration, nameof(position)); 413throw new ArgumentException(string.Format(WorkspacesResources.The_member_0_is_not_declared_within_the_declaration_of_the_symbol, member.Name));
Editing\SyntaxEditor.cs (1)
242throw new ArgumentException(WorkspacesResources.The_node_is_not_part_of_the_tree, nameof(node));
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (7)
79string.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)
63Contract.ThrowIfNull(project, WorkspacesResources.Symbols_project_could_not_be_found_in_the_provided_solution);
Rename\ConflictEngine\ConflictResolver.cs (2)
83return new ConflictResolution(WorkspacesResources.Failed_to_resolve_rename_conflicts); 104return new ConflictResolution(string.Format(WorkspacesResources.Symbol_0_is_not_from_source, renameLocations.Symbol.Name));
Rename\Renamer.cs (1)
51throw 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)
37=> WorkspacesResources.ResourceManager.GetString("Sync_namespace_to_folder_structure", culture ?? WorkspacesResources.Culture)!;
Shared\Utilities\ExtensionOrderer.Node.cs (1)
26throw new ArgumentException(WorkspacesResources.Cycle_detected_in_extensions);
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)
88string.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)
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)
471throw 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); 252var message = string.Format(WorkspacesResources.File_0_size_of_1_exceeds_maximum_allowed_size_of_2, path, fileLength, MaxFileLength);
Workspace\Solution\Project.cs (1)
818throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\ProjectState.cs (2)
794throw new NotSupportedException(WorkspacesResources.Removing_compilation_options_is_not_supported); 812throw new NotSupportedException(WorkspacesResources.Removing_parse_options_is_not_supported);
Workspace\Solution\Solution.cs (15)
634throw new InvalidOperationException(WorkspacesResources.The_project_already_references_the_target_project); 662throw new ArgumentException(WorkspacesResources.Project_does_not_contain_specified_reference, nameof(projectReference)); 730throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 754throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 812throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 841throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 897throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_reference); 916throw new InvalidOperationException(WorkspacesResources.Solution_does_not_contain_specified_reference); 1127=> this.SolutionState.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId)); 1729_ => throw new ArgumentException(WorkspacesResources.Options_did_not_come_from_specified_Solution, paramName: nameof(options)) 1748throw new InvalidOperationException(WorkspacesResources.The_solution_does_not_contain_the_specified_project); 1857throw new InvalidOperationException(WorkspacesResources.A_project_may_not_reference_itself); 1863string.Format(WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 1891throw new InvalidOperationException(WorkspacesResources.Only_submission_project_can_reference_submission_projects); 1896throw 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)
390throw new ArgumentException(string.Format(WorkspacesResources.The_language_0_is_not_supported, language)); 1376throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_project); 1384throw 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)
57throw new ArgumentException(WorkspacesResources.DateTimeKind_must_be_Utc, nameof(utcLastModified));
Workspace\Workspace.cs (44)
575_ => throw new ArgumentException(WorkspacesResources.Options_did_not_come_from_specified_Solution, paramName: nameof(value)) 1306WorkspacesResources._0_is_not_part_of_the_workspace, 1602progressTracker.Report(CodeAnalysisProgress.Description(string.Format(WorkspacesResources.Applying_changes_to_0, projectChanges.NewProject.Name))); 1691throw new NotSupportedException(WorkspacesResources.Removing_projects_is_not_supported); 1696throw new NotSupportedException(WorkspacesResources.Adding_projects_is_not_supported); 1701throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1706throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 1746throw new NotSupportedException(WorkspacesResources.Changing_compilation_options_is_not_supported); 1755throw new NotSupportedException(WorkspacesResources.Changing_parse_options_is_not_supported); 1760throw new NotSupportedException(WorkspacesResources.Adding_documents_is_not_supported); 1765throw new NotSupportedException(WorkspacesResources.Removing_documents_is_not_supported); 1771throw new NotSupportedException(WorkspacesResources.Changing_document_property_is_not_supported); 1778throw new NotSupportedException(WorkspacesResources.Changing_documents_is_not_supported); 1789throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 1795throw new NotSupportedException(WorkspacesResources.Adding_additional_documents_is_not_supported); 1800throw new NotSupportedException(WorkspacesResources.Removing_additional_documents_is_not_supported); 1805throw new NotSupportedException(WorkspacesResources.Changing_additional_documents_is_not_supported); 1810throw new NotSupportedException(WorkspacesResources.Adding_analyzer_config_documents_is_not_supported); 1815throw new NotSupportedException(WorkspacesResources.Removing_analyzer_config_documents_is_not_supported); 1820throw new NotSupportedException(WorkspacesResources.Changing_analyzer_config_documents_is_not_supported); 1825throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1830throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1835throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1840throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1845throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1850throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 2351throw new ArgumentException(WorkspacesResources.Workspace_is_not_empty); 2366WorkspacesResources._0_is_not_part_of_the_workspace, 2382WorkspacesResources._0_is_already_part_of_the_workspace, 2395WorkspacesResources._0_is_not_referenced, 2408WorkspacesResources._0_is_already_referenced, 2422WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 2434throw new ArgumentException(WorkspacesResources.Metadata_is_not_referenced); 2445throw new ArgumentException(WorkspacesResources.Metadata_is_already_referenced); 2456throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2467throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2478throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2489throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2504WorkspacesResources._0_is_not_part_of_the_workspace, 2520WorkspacesResources._0_is_not_part_of_the_workspace, 2536WorkspacesResources._0_is_not_part_of_the_workspace, 2549WorkspacesResources._0_is_already_part_of_the_workspace, 2565WorkspacesResources._0_is_already_part_of_the_workspace, 2581WorkspacesResources._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)
18case WorkspaceDiagnosticKind.Failure: kindText = WorkspacesResources.Failure; break; 19case WorkspaceDiagnosticKind.Warning: kindText = WorkspacesResources.Warning; break;
Workspace\WorkspaceDiagnosticDescriptors.cs (7)
17title: new LocalizableResourceString(nameof(WorkspacesResources.Workspace_error), WorkspacesResources.ResourceManager, typeof(WorkspacesResources)), 18messageFormat: new LocalizableResourceString(nameof(WorkspacesResources.Error_reading_content_of_source_file_0_1), WorkspacesResources.ResourceManager, typeof(WorkspacesResources)), 19category: WorkspacesResources.Workspace_error,