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)
247var summary = string.Format(WorkspacesResources.Predefined_conversion_from_0_to_1,
Microsoft.CodeAnalysis.EditorFeatures (8)
Editor\EditorLayerExtensionManager.cs (4)
65message: string.Format(WorkspacesResources._0_encountered_an_error_and_has_been_disabled, providerType.Name), 68new InfoBarUI(WorkspacesResources.Show_Stack_Trace, InfoBarUI.UIKind.HyperLink, () => ShowDetailedErrorInfo(exception), closeAfterAction: false), 69new InfoBarUI(WorkspacesResources.Enable, InfoBarUI.UIKind.Button, () => 74new InfoBarUI(WorkspacesResources.Enable_and_ignore_future_errors, InfoBarUI.UIKind.Button, () =>
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
98WorkspacesResources.Show_Stack_Trace,
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
552throw new ArgumentException(WorkspacesResources.The_specified_document_is_not_a_version_of_this_document);
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
101var displayText = string.Format(WorkspacesResources.Rename_0_to_1, stateMachine.TrackingSession.OriginalName, newName);
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
308WorkspacesResources.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)
192Assert.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)
427WorkspacesResources.Show_Stack_Trace, 868WorkspacesResources._0_returned_an_uninitialized_ImmutableArray,
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
293parts.AddText(WorkspacesResources.Exceptions_colon); 327AddToGroup(SymbolDescriptionGroups.Captures, PlainText($"{WorkspacesResources.Variables_captured_colon} ?")); 337parts.AddText(WorkspacesResources.Variables_captured_colon);
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (1)
31private static readonly string s_exceptionsHeader = WorkspacesResources.Exceptions_colon;
Options\EditorConfig\EditorConfigFileGenerator.cs (3)
24editorconfig.AppendLine($"# {WorkspacesResources.Remove_the_line_below_if_you_want_to_inherit_dot_editorconfig_settings_from_higher_directories}"); 30editorconfig.AppendLine($"# {WorkspacesResources.CSharp_files}"); 35editorconfig.AppendLine($"# {WorkspacesResources.Visual_Basic_files}");
Options\EditorConfig\EditorConfigOptionsEnumerator.cs (2)
35yield return (WorkspacesResources.Core_EditorConfig_Options, FormattingOptions2.EditorConfigOptions); 54yield return (WorkspacesResources.dot_NET_Coding_Conventions,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Hover\HoverTests.cs (3)
64VerifyVSContent(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)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(WorkspacesResources)));
CodeActions\CodeAction.cs (1)
364return 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)
55var message = string.Format(WorkspacesResources.Unexpected_value_0_in_DocumentKinds_array,
CodeFixes\FixAllOccurrences\FixAllContext.cs (2)
124throw new ArgumentException(WorkspacesResources.FixAllScope_ContainingType_and_FixAllScope_ContainingMember_are_not_supported_with_this_constructor, 204throw new ArgumentException(WorkspacesResources.FixAllScope_ContainingType_and_FixAllScope_ContainingMember_are_not_supported_with_this_constructor,
CodeFixes\FixAllOccurrences\FixAllProvider.cs (1)
93throw 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)
91throw 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)
79return new ConflictResolution(WorkspacesResources.Failed_to_resolve_rename_conflicts); 99return 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)
819throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\ProjectState.cs (2)
786throw new NotSupportedException(WorkspacesResources.Removing_compilation_options_is_not_supported); 804throw new NotSupportedException(WorkspacesResources.Removing_parse_options_is_not_supported);
Workspace\Solution\Solution.cs (15)
633throw new InvalidOperationException(WorkspacesResources.The_project_already_references_the_target_project); 661throw new ArgumentException(WorkspacesResources.Project_does_not_contain_specified_reference, nameof(projectReference)); 729throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 753throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 811throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 840throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 896throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_reference); 915throw 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)) 1749throw new InvalidOperationException(WorkspacesResources.The_solution_does_not_contain_the_specified_project); 1858throw new InvalidOperationException(WorkspacesResources.A_project_may_not_reference_itself); 1864string.Format(WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 1892throw new InvalidOperationException(WorkspacesResources.Only_submission_project_can_reference_submission_projects); 1897throw 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)
404throw new ArgumentException(string.Format(WorkspacesResources.The_language_0_is_not_supported, language)); 1387throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_project); 1395throw 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)
578_ => throw new ArgumentException(WorkspacesResources.Options_did_not_come_from_specified_Solution, paramName: nameof(value)) 1309WorkspacesResources._0_is_not_part_of_the_workspace, 1603progressTracker.Report(CodeAnalysisProgress.Description(string.Format(WorkspacesResources.Applying_changes_to_0, projectChanges.NewProject.Name))); 1692throw new NotSupportedException(WorkspacesResources.Removing_projects_is_not_supported); 1697throw new NotSupportedException(WorkspacesResources.Adding_projects_is_not_supported); 1702throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1707throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 1747throw new NotSupportedException(WorkspacesResources.Changing_compilation_options_is_not_supported); 1756throw new NotSupportedException(WorkspacesResources.Changing_parse_options_is_not_supported); 1761throw new NotSupportedException(WorkspacesResources.Adding_documents_is_not_supported); 1766throw new NotSupportedException(WorkspacesResources.Removing_documents_is_not_supported); 1772throw new NotSupportedException(WorkspacesResources.Changing_document_property_is_not_supported); 1779throw new NotSupportedException(WorkspacesResources.Changing_documents_is_not_supported); 1790throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 1796throw new NotSupportedException(WorkspacesResources.Adding_additional_documents_is_not_supported); 1801throw new NotSupportedException(WorkspacesResources.Removing_additional_documents_is_not_supported); 1806throw new NotSupportedException(WorkspacesResources.Changing_additional_documents_is_not_supported); 1811throw new NotSupportedException(WorkspacesResources.Adding_analyzer_config_documents_is_not_supported); 1816throw new NotSupportedException(WorkspacesResources.Removing_analyzer_config_documents_is_not_supported); 1821throw new NotSupportedException(WorkspacesResources.Changing_analyzer_config_documents_is_not_supported); 1826throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1831throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1836throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1841throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1846throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1851throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 2352throw new ArgumentException(WorkspacesResources.Workspace_is_not_empty); 2367WorkspacesResources._0_is_not_part_of_the_workspace, 2383WorkspacesResources._0_is_already_part_of_the_workspace, 2396WorkspacesResources._0_is_not_referenced, 2409WorkspacesResources._0_is_already_referenced, 2423WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 2435throw new ArgumentException(WorkspacesResources.Metadata_is_not_referenced); 2446throw new ArgumentException(WorkspacesResources.Metadata_is_already_referenced); 2457throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2468throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2479throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2490throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2505WorkspacesResources._0_is_not_part_of_the_workspace, 2521WorkspacesResources._0_is_not_part_of_the_workspace, 2537WorkspacesResources._0_is_not_part_of_the_workspace, 2550WorkspacesResources._0_is_already_part_of_the_workspace, 2566WorkspacesResources._0_is_already_part_of_the_workspace, 2582WorkspacesResources._0_is_already_part_of_the_workspace,
Workspace\Workspace_Editor.cs (6)
156throw new NotSupportedException(WorkspacesResources.This_workspace_does_not_support_opening_and_closing_documents); 164throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); 337string.Format(WorkspacesResources._0_is_still_open, 347WorkspacesResources._0_is_not_open, 376WorkspacesResources._0_is_not_part_of_the_workspace, 664WorkspacesResources._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,
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
482var 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)); 38string.Format(WorkspacesResources.Solution_file_not_found_colon_0, absolutePath), 54_diagnosticReporter?.Report(reportingMode, string.Format(WorkspacesResources.Invalid_project_file_path_colon_0, path)); 63string.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)
868var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, GetSolutionFileName(ProjFileName), ".nyi"); 886var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, language); 1137var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, noProjFullFileName, ".noproj"); 1159var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp); 1177var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp); 1192var 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)
4560var expected = string.Format(WorkspacesResources.File_0_size_of_1_exceeds_maximum_allowed_size_of_2, file.Path, textLength, 1);
SolutionTests\TryApplyChangesTests.cs (2)
109Assert.Equal(WorkspacesResources.Changing_compilation_options_is_not_supported, exception.Message); 157Assert.Equal(WorkspacesResources.Changing_parse_options_is_not_supported, exception.Message);
WorkspaceTests\WorkspaceTests.cs (6)
29Assert.Equal(WorkspacesResources.Changing_documents_is_not_supported, 45Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 63Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 80Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 96Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 108Assert.Equal(WorkspacesResources.Adding_analyzer_references_is_not_supported,
Microsoft.VisualStudio.LanguageServices (32)
CallHierarchy\Finders\AbstractCallFinder.cs (2)
98throw new Exception(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, SymbolName)); 108throw 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)
46ReportDiagnostic.Hidden => WorkspacesResources.Refactoring_Only, 47ReportDiagnostic.Info => WorkspacesResources.Suggestion, 48ReportDiagnostic.Warn => WorkspacesResources.Warning, 49ReportDiagnostic.Error => WorkspacesResources.Error,
EditorConfigSettings\Analyzers\ViewModel\SeverityViewModel.cs (4)
16WorkspacesResources.Refactoring_Only, 17WorkspacesResources.Suggestion, 18WorkspacesResources.Warning, 19WorkspacesResources.Error
EditorConfigSettings\CodeStyle\ViewModel\CodeStyleSeverityViewModel.cs (4)
20WorkspacesResources.Refactoring_Only, 21WorkspacesResources.Suggestion, 22WorkspacesResources.Warning, 23WorkspacesResources.Error
EditorConfigSettings\NamingStyle\View\ColumnDefinitions\NamingStylesSeverityColumnDefinition.cs (4)
51ReportDiagnostic.Hidden => WorkspacesResources.Refactoring_Only, 52ReportDiagnostic.Info => WorkspacesResources.Suggestion, 53ReportDiagnostic.Warn => WorkspacesResources.Warning, 54ReportDiagnostic.Error => WorkspacesResources.Error,
EditorConfigSettings\NamingStyle\ViewModel\ColumnViewModels\NamingStylesSeverityViewModel.cs (4)
55WorkspacesResources.Refactoring_Only, 56WorkspacesResources.Suggestion, 57WorkspacesResources.Warning, 58WorkspacesResources.Error,
ErrorReporting\VisualStudioErrorReportingService.cs (1)
73WorkspacesResources.Show_Stack_Trace,
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (3)
50WorkspacesResources.Show_Stack_Trace, 72WorkspacesResources.Show_Stack_Trace, 94WorkspacesResources.Show_Stack_Trace,
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
414AddName(WorkspacesResources.Exceptions_colon);
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1210new(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)
332var undoTitle = string.Format(WorkspacesResources.Rename_0_to_1, symbol.Name, newName);
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
82public 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;