273 references to WorkspacesResources
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (19)
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (1)
26=> string.Format(WorkspacesResources.Predefined_conversion_from_0_to_1, fromType, toType);
QuickInfo\SemanticQuickInfoSourceTests.cs (18)
5875Exceptions($"\r\n{WorkspacesResources.Exceptions_colon}\r\n MyException1\r\n MyException2\r\n int\r\n double\r\n Not_A_Class_But_Still_Displayed")); 5892Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, i")); 5909Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this")); 5931Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, @this, i")); 5954Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this")); 5977Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, local")); 6002Captures($"\r\n{WorkspacesResources.Variables_captured_colon} local1, local2")); 6027Captures($"\r\n{WorkspacesResources.Variables_captured_colon} local2")); 6042Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, i")); 6057Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, i")); 6072Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, j, i")); 6089Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, @this")); 6105Captures($"\r\n{WorkspacesResources.Variables_captured_colon} i")); 6128Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this")); 6151Captures($"\r\n{WorkspacesResources.Variables_captured_colon} this, local")); 6176Captures($"\r\n{WorkspacesResources.Variables_captured_colon} local1, local2")); 6201Captures($"\r\n{WorkspacesResources.Variables_captured_colon} local2")); 6216Captures($"\r\n{WorkspacesResources.Variables_captured_colon} i"));
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
LinkedFiles\CSharpLinkedFileMergeConflictCommentAdditionService.cs (4)
39WorkspacesResources.Added_colon, 52WorkspacesResources.Removed_colon, 67WorkspacesResources.Before_colon, 69WorkspacesResources.After_colon,
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
238var summary = string.Format(WorkspacesResources.Predefined_conversion_from_0_to_1,
Microsoft.CodeAnalysis.EditorFeatures (5)
Editor\EditorLayerExtensionManager.cs (4)
82message: string.Format(WorkspacesResources._0_encountered_an_error_and_has_been_disabled, providerType.Name), 85new InfoBarUI(WorkspacesResources.Show_Stack_Trace, InfoBarUI.UIKind.HyperLink, () => ShowDetailedErrorInfo(exception), closeAfterAction: false), 86new InfoBarUI(WorkspacesResources.Enable, InfoBarUI.UIKind.Button, () => 91new InfoBarUI(WorkspacesResources.Enable_and_ignore_future_errors, InfoBarUI.UIKind.Button, () =>
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (1)
554throw new ArgumentException(WorkspacesResources.The_specified_document_is_not_a_version_of_this_document);
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
129WorkspacesResources.Show_Stack_Trace,
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
360WorkspacesResources.Show_Stack_Trace,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
Diagnostics\DiagnosticServiceTests.vb (2)
606Assert.Equal(String.Format(WorkspacesResources.Error_reading_content_of_source_file_0_1, "Test.cs", "Bad data!"), diagnostics(0).Message) 947"IDE1100: " & String.Format(WorkspacesResources.Error_reading_content_of_source_file_0_1, "Test.cs", "Bad data!")
Rename\RenameTagProducerTests.vb (3)
355{{|conflict:{{|conflict:/* {String.Format(WorkspacesResources.Unmerged_change_from_project_0, "CSharpAssembly1")} 356{WorkspacesResources.Before_colon} 358{WorkspacesResources.After_colon}
Microsoft.CodeAnalysis.Features (9)
ChangeSignature\AbstractChangeSignatureService.cs (1)
386throw new NotSupportedException(WorkspacesResources.Document_does_not_support_syntax_trees);
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));
CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
522throw new NotSupportedException(WorkspacesResources.Document_does_not_support_syntax_trees);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (3)
251parts.AddText(WorkspacesResources.Exceptions_colon); 285AddToGroup(SymbolDescriptionGroups.Captures, PlainText($"{WorkspacesResources.Variables_captured_colon} ?")); 295parts.AddText(WorkspacesResources.Variables_captured_colon);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\CodeFixes\CodeFixService.cs (2)
384WorkspacesResources.Show_Stack_Trace, 816WorkspacesResources._0_returned_an_uninitialized_ImmutableArray,
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (6)
QuickInfo\SemanticQuickInfoSourceTests.vb (6)
2076Exceptions($"{vbCrLf}{WorkspacesResources.Exceptions_colon}{vbCrLf} MyException1{vbCrLf} MyException2{vbCrLf} Integer{vbCrLf} Double{vbCrLf} Not_A_Class_But_Still_Displayed")) 2090Captures($"{vbCrLf}{WorkspacesResources.Variables_captured_colon} x")) 2102Captures($"{vbCrLf}{WorkspacesResources.Variables_captured_colon} x")) 2114Captures($"{vbCrLf}{WorkspacesResources.Variables_captured_colon} x")) 2128Captures($"{vbCrLf}{WorkspacesResources.Variables_captured_colon} x")) 2145Captures($"{vbCrLf}{WorkspacesResources.Variables_captured_colon} Me, [Me], x"))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
LinkedFiles\BasicLinkedFileMergeConflictCommentAdditionService.vb (4)
31WorkspacesResources.Added_colon, 41WorkspacesResources.Removed_colon, 52WorkspacesResources.Before_colon, 54WorkspacesResources.After_colon,
Microsoft.CodeAnalysis.Workspaces (156)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
34throw new NotSupportedException(WorkspacesResources.Document_does_not_support_syntax_trees);
CaseCorrection\CaseCorrector.cs (2)
32throw new NotSupportedException(WorkspacesResources.Document_does_not_support_syntax_trees); 47throw new NotSupportedException(WorkspacesResources.Document_does_not_support_syntax_trees);
CodeFixes\CodeFixContext.cs (3)
43throw new InvalidOperationException(WorkspacesResources.Use_TextDocument_property_instead_of_Document_property_as_the_provider_supports_non_source_text_documents); 295throw new ArgumentException(WorkspacesResources.At_least_one_diagnostic_must_be_supplied, nameof(diagnostics)); 305throw 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, 208throw 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));
CodeRefactorings\CodeRefactoringContext.cs (1)
34throw 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)
89throw 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)
104var displayName = reference.Display ?? WorkspacesResources.Unknown;
Differencing\Match.cs (4)
50throw new ArgumentException(string.Format(WorkspacesResources.Matching_nodes_0_and_1_must_have_the_same_label, knownMatch.Key, knownMatch.Value), nameof(knownMatches)); 55throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_old_tree, knownMatch.Key), nameof(knownMatches)); 60throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_new_tree, knownMatch.Value), nameof(knownMatches)); 90throw 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)
244throw new ArgumentException(WorkspacesResources.The_node_is_not_part_of_the_tree, nameof(node));
EncodingExtensions.cs (1)
32throw new IOException(WorkspacesResources.Stream_is_too_long);
FormattingOptions2.cs (2)
81public static readonly OptionGroup IndentationAndSpacing = new(name: "indentation_and_spacing", description: WorkspacesResources.Indentation_and_spacing, priority: 1, parent: FormattingOptionGroup); 82public static readonly OptionGroup NewLine = new(name: "new_line", description: WorkspacesResources.New_line_preferences, priority: 2, parent: FormattingOptionGroup);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
81string.Format(WorkspacesResources.Unmerged_change_from_project_0, projectName),
Microsoft.CodeAnalysis.WorkspacesResources.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(WorkspacesResources)));
ObjectReader.cs (4)
26using Resources = WorkspacesResources; 691throw new InvalidOperationException(String.Format(Resources.Deserialization_reader_for_0_read_incorrect_number_of_values, typeName)); 696return new InvalidOperationException(string.Format(Resources.The_type_0_is_not_understood_by_the_serialization_binder, typeName)); 701return new InvalidOperationException(string.Format(Resources.Cannot_serialize_type_0, typeName));
ObjectWriter.cs (5)
27using Resources = WorkspacesResources; 260throw new InvalidOperationException(Resources.Arrays_with_more_than_one_dimension_cannot_be_serialized); 469throw new ArgumentException(Resources.Value_too_large_to_be_represented_as_a_30_bit_unsigned_integer); 910return new InvalidOperationException(string.Format(Resources.The_type_0_is_not_understood_by_the_serialization_binder, typeName)); 915return new InvalidOperationException(string.Format(Resources.Cannot_serialize_type_0, typeName));
OptionKey2.cs (1)
34throw new ArgumentNullException(WorkspacesResources.A_language_name_must_be_specified_for_this_option);
Options\EditorConfig\EditorConfigFileGenerator.cs (3)
25editorconfig.AppendLine($"# {WorkspacesResources.Remove_the_line_below_if_you_want_to_inherit_dot_editorconfig_settings_from_higher_directories}"); 31editorconfig.AppendLine($"# {WorkspacesResources.CSharp_files}"); 36editorconfig.AppendLine($"# {WorkspacesResources.Visual_Basic_files}");
Options\OptionKey.cs (2)
30throw new ArgumentException(WorkspacesResources.A_language_name_cannot_be_specified_for_this_option); 35throw new ArgumentNullException(WorkspacesResources.A_language_name_must_be_specified_for_this_option);
Remote\RemoteArguments.cs (1)
69Contract.ThrowIfNull(project, WorkspacesResources.Symbols_project_could_not_be_found_in_the_provided_solution);
Rename\ConflictEngine\ConflictResolver.cs (2)
85return new ConflictResolution(WorkspacesResources.Failed_to_resolve_rename_conflicts); 106return new ConflictResolution(string.Format(WorkspacesResources.Symbol_0_is_not_from_source, renameLocations.Symbol.Name));
Rename\Renamer.cs (1)
55throw new ArgumentException(WorkspacesResources._0_must_be_a_non_null_and_non_empty_string, nameof(newName));
Rename\Renamer.RenameDocumentAction.cs (2)
36=> _errorStringKeys.SelectAsArray(s => string.Format(WorkspacesResources.ResourceManager.GetString(s.FormatString, culture ?? WorkspacesResources.Culture)!, s.Arguments));
Rename\Renamer.RenameDocumentActionSet.cs (1)
83throw new ArgumentException(string.Format(WorkspacesResources.Cannot_apply_action_that_is_not_in_0, nameof(ApplicableActions)));
Rename\Renamer.RenameSymbolDocumentAction.cs (2)
36=> string.Format(WorkspacesResources.ResourceManager.GetString("Rename_0_to_1", culture ?? WorkspacesResources.Culture)!, _analysis.OriginalDocumentName, _analysis.NewDocumentName);
Rename\Renamer.SyncNamespaceDocumentAction.cs (2)
43=> WorkspacesResources.ResourceManager.GetString("Sync_namespace_to_folder_structure", culture ?? WorkspacesResources.Culture)!;
Shared\Extensions\CodeActionExtensions.cs (1)
20throw new InvalidOperationException(string.Format(WorkspacesResources.CodeAction__0__did_not_produce_a_changed_solution, codeAction.Title));
Shared\Utilities\ExtensionOrderer.Node.cs (1)
31throw new ArgumentException(WorkspacesResources.Cycle_detected_in_extensions);
TemporaryStorage\TemporaryStorageServiceFactory.cs (2)
260throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); 371throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once);
Workspace\CommandLineProject.cs (4)
34throw new ArgumentException(WorkspacesResources.Unrecognized_language_name); 72throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_metadata_reference_colon_0, ((UnresolvedMetadataReference)unresolvedMetadataReferences).Reference)); 85throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_analyzer_reference_colon_0, ((UnresolvedAnalyzerReference)unresolvedAnalyzerReferences).Display)); 99throw new ArgumentException(string.Format(WorkspacesResources.An_error_occurred_while_reading_the_specified_configuration_file_colon_0, e.Message));
Workspace\Host\HostLanguageServices.cs (1)
52throw new InvalidOperationException(string.Format(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_workspace, typeof(TLanguageService)));
Workspace\Host\HostWorkspaceServices.cs (2)
53throw new InvalidOperationException(string.Format(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_workspace, typeof(TWorkspaceService).FullName)); 106=> throw new NotSupportedException(string.Format(WorkspacesResources.The_language_0_is_not_supported, languageName));
Workspace\Host\TemporaryStorage\LegacyTemporaryStorageService.cs (3)
67throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); 82throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); 108throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once);
Workspace\Host\TemporaryStorage\TrivialTemporaryStorageService.cs (3)
60throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); 75throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once); 101throw new InvalidOperationException(WorkspacesResources.Temporary_storage_cannot_be_written_more_than_once);
Workspace\Solution\Document.cs (1)
379throw new ArgumentException(WorkspacesResources.The_specified_document_is_not_a_version_of_this_document);
Workspace\Solution\FileTextLoader.cs (3)
192var message = string.Format(WorkspacesResources.File_was_externally_modified_colon_0, Path); 227var message = string.Format(WorkspacesResources.File_was_externally_modified_colon_0, Path); 256var message = string.Format(WorkspacesResources.File_0_size_of_1_exceeds_maximum_allowed_size_of_2, path, fileLength, MaxFileLength);
Workspace\Solution\Project.cs (1)
781throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\Solution.cs (15)
636throw new InvalidOperationException(WorkspacesResources.The_project_already_references_the_target_project); 671throw new ArgumentException(WorkspacesResources.Project_does_not_contain_specified_reference, nameof(projectReference)); 742throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 775throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 845throw new InvalidOperationException(WorkspacesResources.The_project_already_contains_the_specified_reference); 878throw new InvalidOperationException(WorkspacesResources.Project_does_not_contain_specified_reference); 936throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_reference); 965throw new InvalidOperationException(WorkspacesResources.Solution_does_not_contain_specified_reference); 1199=> _state.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId)); 1847_ => throw new ArgumentException(WorkspacesResources.Options_did_not_come_from_specified_Solution, paramName: nameof(options)) 1874throw new InvalidOperationException(WorkspacesResources.The_solution_does_not_contain_the_specified_project); 1966throw new InvalidOperationException(WorkspacesResources.A_project_may_not_reference_itself); 1972string.Format(WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 2000throw new InvalidOperationException(WorkspacesResources.Only_submission_project_can_reference_submission_projects); 2005throw new InvalidOperationException(WorkspacesResources.This_submission_already_references_another_submission_project);
Workspace\Solution\SolutionState.cs (4)
507throw new ArgumentException(string.Format(WorkspacesResources.The_language_0_is_not_supported, language)); 1180throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, documentIdsInProject.Key)); 2037throw new InvalidOperationException(WorkspacesResources.The_solution_already_contains_the_specified_project); 2045throw new InvalidOperationException(WorkspacesResources.The_solution_does_not_contain_the_specified_project);
Workspace\Solution\SourceGeneratedDocumentState.cs (1)
69=> 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 (42)
401_ => throw new ArgumentException(WorkspacesResources.Options_did_not_come_from_specified_Solution, paramName: nameof(value)) 1374throw new NotSupportedException(WorkspacesResources.Removing_projects_is_not_supported); 1379throw new NotSupportedException(WorkspacesResources.Adding_projects_is_not_supported); 1384throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1389throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 1429throw new NotSupportedException(WorkspacesResources.Changing_compilation_options_is_not_supported); 1438throw new NotSupportedException(WorkspacesResources.Changing_parse_options_is_not_supported); 1443throw new NotSupportedException(WorkspacesResources.Adding_documents_is_not_supported); 1448throw new NotSupportedException(WorkspacesResources.Removing_documents_is_not_supported); 1454throw new NotSupportedException(WorkspacesResources.Changing_document_property_is_not_supported); 1461throw new NotSupportedException(WorkspacesResources.Changing_documents_is_not_supported); 1472throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 1478throw new NotSupportedException(WorkspacesResources.Adding_additional_documents_is_not_supported); 1483throw new NotSupportedException(WorkspacesResources.Removing_additional_documents_is_not_supported); 1488throw new NotSupportedException(WorkspacesResources.Changing_additional_documents_is_not_supported); 1493throw new NotSupportedException(WorkspacesResources.Adding_analyzer_config_documents_is_not_supported); 1498throw new NotSupportedException(WorkspacesResources.Removing_analyzer_config_documents_is_not_supported); 1503throw new NotSupportedException(WorkspacesResources.Changing_analyzer_config_documents_is_not_supported); 1508throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1513throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1518throw new NotSupportedException(WorkspacesResources.Adding_project_references_is_not_supported); 1523throw new NotSupportedException(WorkspacesResources.Removing_project_references_is_not_supported); 1528throw new NotSupportedException(WorkspacesResources.Adding_analyzer_references_is_not_supported); 1533throw new NotSupportedException(WorkspacesResources.Removing_analyzer_references_is_not_supported); 2053throw new ArgumentException(WorkspacesResources.Workspace_is_not_empty); 2068WorkspacesResources._0_is_not_part_of_the_workspace, 2084WorkspacesResources._0_is_already_part_of_the_workspace, 2097WorkspacesResources._0_is_not_referenced, 2110WorkspacesResources._0_is_already_referenced, 2124WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference, 2136throw new ArgumentException(WorkspacesResources.Metadata_is_not_referenced); 2147throw new ArgumentException(WorkspacesResources.Metadata_is_already_referenced); 2158throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2169throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2180throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2191throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2206WorkspacesResources._0_is_not_part_of_the_workspace, 2222WorkspacesResources._0_is_not_part_of_the_workspace, 2238WorkspacesResources._0_is_not_part_of_the_workspace, 2251WorkspacesResources._0_is_already_part_of_the_workspace, 2267WorkspacesResources._0_is_already_part_of_the_workspace, 2283WorkspacesResources._0_is_already_part_of_the_workspace,
Workspace\Workspace_Editor.cs (4)
158throw new NotSupportedException(WorkspacesResources.This_workspace_does_not_support_opening_and_closing_documents); 166throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); 343string.Format(WorkspacesResources._0_is_still_open, 353WorkspacesResources._0_is_not_open,
Workspace\WorkspaceDiagnostic.cs (2)
28case WorkspaceDiagnosticKind.Failure: kindText = WorkspacesResources.Failure; break; 29case 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,
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
495var 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\ProjectFile\ProjectFileLoaderRegistry.cs (3)
69_diagnosticReporter.Report(mode, string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projectFilePath, language)); 79_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))); 97_diagnosticReporter.Report(mode, string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projectFilePath, language));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
VisualStudioMSBuildWorkspaceTests.cs (6)
845var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, GetSolutionFileName(ProjFileName), ".nyi"); 863var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, language); 1119var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, noProjFullFileName, ".noproj"); 1141var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, projFileName, ".csproj"); 1159var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, projFileName, ".csproj"); 1174var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, projectName, ".csproj");
Microsoft.CodeAnalysis.Workspaces.UnitTests (37)
LinkedFileDiffMerging\LinkedFileDiffMergingTests.TextMerging.cs (28)
64/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 65" + WorkspacesResources.Before_colon + @" 67" + WorkspacesResources.After_colon + @" 81/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 82" + WorkspacesResources.Before_colon + @" 84" + WorkspacesResources.After_colon + @" 112/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 113" + WorkspacesResources.Before_colon + @" 116" + WorkspacesResources.After_colon + @" 150/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 151" + WorkspacesResources.Before_colon + @" 153" + WorkspacesResources.After_colon + @" 159/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 160" + WorkspacesResources.Before_colon + @" 162" + WorkspacesResources.After_colon + @" 183/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName2") + @" 184" + WorkspacesResources.Before_colon + @" 186" + WorkspacesResources.After_colon + @" 190/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName3") + @" 191" + WorkspacesResources.Removed_colon + @" 209/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 210" + WorkspacesResources.Added_colon + @" 228' " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 229' " + WorkspacesResources.Added_colon + @" 246/* " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 247" + WorkspacesResources.Removed_colon + @" 265' " + string.Format(WorkspacesResources.Unmerged_change_from_project_0, "ProjectName1") + @" 266' " + WorkspacesResources.Removed_colon + @"
SolutionTests\SolutionTests.cs (1)
3757var expected = string.Format(WorkspacesResources.File_0_size_of_1_exceeds_maximum_allowed_size_of_2, file.Path, textLength, 1);
SolutionTests\TryApplyChangesTests.cs (2)
108Assert.Equal(WorkspacesResources.Changing_compilation_options_is_not_supported, exception.Message); 156Assert.Equal(WorkspacesResources.Changing_parse_options_is_not_supported, exception.Message);
WorkspaceTests\WorkspaceTests.cs (6)
32Assert.Equal(WorkspacesResources.Changing_documents_is_not_supported, 48Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 66Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 83Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 99Assert.Equal(WorkspacesResources.Changing_document_property_is_not_supported, 111Assert.Equal(WorkspacesResources.Adding_analyzer_references_is_not_supported,
Microsoft.VisualStudio.LanguageServices (6)
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));
ErrorReporting\VisualStudioErrorReportingService.cs (1)
67WorkspacesResources.Show_Stack_Trace,
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (3)
51WorkspacesResources.Show_Stack_Trace, 73WorkspacesResources.Show_Stack_Trace, 95WorkspacesResources.Show_Stack_Trace,
Microsoft.VisualStudio.LanguageServices.Implementation (3)
Options\GridOptionPreviewControl.xaml.cs (2)
63yield return (WorkspacesResources.Core_EditorConfig_Options, FormattingOptions2.Options); 64yield return (WorkspacesResources.dot_NET_Coding_Conventions, GenerationOptions.AllOptions.AddRange(CodeStyleOptions2.AllOptions));
RoslynVisualStudioWorkspace.cs (1)
66throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, documentId));