252 references to CreateNewId
IdeCoreBenchmarks (4)
FormatterBenchmarks.cs (1)
47var documentId = DocumentId.CreateNewId(projectId);
ProjectOperationBenchmarks.cs (1)
72var documentId = DocumentId.CreateNewId(projectId, documentName);
RenameBenchmarks.cs (1)
41var documentId = DocumentId.CreateNewId(projectId);
SwitchStatementBenchmarks.cs (1)
63var documentId = DocumentId.CreateNewId(projectId);
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticProject.cs (1)
79var documentId = DocumentId.CreateNewId(testProject, debugName: newFileName);
DiagnosticVerifier.cs (1)
180var documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
163var documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Helpers\DiagnosticVerifier.Helper.cs (1)
163var documentId = DocumentId.CreateNewId(projectId, debugName: newFileName);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (11)
CodeActions\PreviewTests.cs (1)
73solution = solution.AddDocument(DocumentId.CreateNewId(_oldDocument.Project.Id, AddedDocumentName), AddedDocumentName, AddedDocumentText);
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
164var additionalDocId = DocumentId.CreateNewId(workspace.CurrentSolution.Projects.Single().Id);
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (3)
41.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 42.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") 43.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From(""), filePath: EditorconfigPath)));
Formatting\CodeCleanupTests.TestFixers.cs (2)
116return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.cs", SourceText.From("")); 172return solution.AddDocument(DocumentId.CreateNewId(project.Id), "new.cs", SourceText.From(""));
Formatting\RazorLineFormattingOptionsTests.cs (1)
58DocumentId.CreateNewId(project.Id),
Workspaces\WorkspaceTests_EditorFeatures.cs (3)
761var newSolution = oldSolution.AddDocument(DocumentId.CreateNewId(project1.Id), "Doc2", SourceText.From(doc2Text)); 1235var newDocId = DocumentId.CreateNewId(project.Id); 1271var newDocId = DocumentId.CreateNewId(project.Id);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (3)
664var newDocId = DocumentId.CreateNewId(oldProject.Id); 710var newDocId = DocumentId.CreateNewId(oldProject.Id); 743var documentId = DocumentId.CreateNewId(oldProject.Id);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SymbolEditorTests.cs (1)
38DocumentId.CreateNewId(pid),
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveSession.cs (2)
224var newSubmissionDocumentId = DocumentId.CreateNewId(_currentSubmissionProjectId, newSubmissionProjectName); 248DocumentId.CreateNewId(initializationScriptProjectId, debugName: initializationScriptPath),
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
415var generatedDocumentId = DocumentId.CreateNewId(workspace.CurrentSolution.ProjectIds.First());
Rename\RenamerTests.cs (3)
56var documentId = DocumentId.CreateNewId(projectId); 189var documentId = DocumentId.CreateNewId(projectId); 223var documentId = DocumentId.CreateNewId(projectId);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeGeneration\CodeGenerationTests.cs (1)
630var documentId = DocumentId.CreateNewId(projectId);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
310DocumentId.CreateNewId(projectId), 389DocumentId.CreateNewId(projectId),
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
244var documentId = DocumentId.CreateNewId(projectId);
SymbolFinder\DependentTypeFinderTests.cs (1)
31var did = DocumentId.CreateNewId(pid);
TextEditor\OpenDocumentTests.cs (1)
42var documentId = DocumentId.CreateNewId(projectId);
Microsoft.CodeAnalysis.Features (9)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
330var id = DocumentId.CreateNewId(project.Id);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
41var newDocumentId = DocumentId.CreateNewId(document.Project.Id, document.Name);
GenerateType\AbstractGenerateTypeService.Editor.cs (2)
272var newDocumentId = DocumentId.CreateNewId(projectToBeUpdated.Id, debugName: documentName); 348var documentId = DocumentId.CreateNewId(projectToBeUpdated.Id, documentName);
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (2)
68var assemblyInfoDocumentId = DocumentId.CreateNewId(projectId); 84var generatedDocumentId = DocumentId.CreateNewId(projectId);
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
357var documentId = DocumentId.CreateNewId(projectId);
Shared\Utilities\ExtractTypeHelpers.cs (1)
60var newDocumentId = DocumentId.CreateNewId(projectId, debugName: fileName);
Workspace\MiscellaneousFileUtilities.cs (1)
46var documentId = DocumentId.CreateNewId(projectId, debugName: filePath);
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (3)
119solution = solution.AddAdditionalDocument(DocumentId.CreateNewId(project.Id), "additional", CreateText(additionalFileText)); 125DocumentId.CreateNewId(project.Id), 369DocumentId.CreateNewId(projectId, name),
EditAndContinue\Extensions.cs (1)
75id = DocumentId.CreateNewId(projectId),
Microsoft.CodeAnalysis.Features.UnitTests (12)
EditAndContinue\CompileTimeSolutionProviderTests.cs (7)
36var analyzerConfigId = DocumentId.CreateNewId(projectId); 37var documentId = DocumentId.CreateNewId(projectId); 38var additionalDocumentId = DocumentId.CreateNewId(projectId); 39var designTimeDocumentId = DocumentId.CreateNewId(projectId); 106var analyzerConfigId = DocumentId.CreateNewId(projectId); 107var additionalDocumentId = DocumentId.CreateNewId(projectId); 134var documentId = DocumentId.CreateNewId(projectId);
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
917var documentId = DocumentId.CreateNewId(projectId);
EditAndContinue\EditSessionActiveStatementsTests.cs (2)
78var id = DocumentId.CreateNewId(project.Id, name); 176solution = dummyProject.Solution.AddDocument(DocumentId.CreateNewId(dummyProject.Id, NoCompilationConstants.LanguageName), "a.dummy", "");
EditAndContinue\RemoteEditAndContinueServiceTests.cs (2)
74var documentId = DocumentId.CreateNewId(projectId); 76var inProcOnlyDocumentId = DocumentId.CreateNewId(inProcOnlyProjectId);
Microsoft.CodeAnalysis.Workspaces (10)
Workspace\AdhocWorkspace.cs (1)
125var id = DocumentId.CreateNewId(projectId);
Workspace\CommandLineProject.cs (1)
161var id = DocumentId.CreateNewId(projectId, absolutePath);
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
94var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 144var documentId = DocumentId.CreateNewId(_project.Id, fullPath);
Workspace\Solution\Project.cs (6)
701var id = DocumentId.CreateNewId(this.Id); 713var id = DocumentId.CreateNewId(this.Id); 722var id = DocumentId.CreateNewId(this.Id, debugName: name); 731var id = DocumentId.CreateNewId(this.Id); 740var id = DocumentId.CreateNewId(this.Id); 749var id = DocumentId.CreateNewId(this.Id);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2169var newDocId = DocumentId.CreateNewId(project.Id); 2206workspace.TryApplyChanges(workspace.CurrentSolution.AddAdditionalDocument(DocumentId.CreateNewId(csProjectId), "foo.xaml", SourceText.From("<foo></foo>")));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (3)
WorkspaceExtensions.cs (2)
46return DocumentId.CreateNewId(projectId, uniqueName); 50return DocumentId.CreateNewId(projectId, name);
Workspaces\TestHostDocument.cs (1)
163_id = DocumentId.CreateNewId(project.Id, this.Name);
Microsoft.CodeAnalysis.Workspaces.UnitTests (161)
FindAllDeclarationsTests.cs (3)
159var submission0DocId = DocumentId.CreateNewId(submission0Id); 174var submission1DocId = DocumentId.CreateNewId(submission1Id); 702var did = DocumentId.CreateNewId(pid);
FindAllDeclarationsTests.TestSolutionsAndProject.cs (2)
101var did = DocumentId.CreateNewId(pid); 115var did = DocumentId.CreateNewId(pid);
FindReferencesTests.cs (8)
31var did = DocumentId.CreateNewId(pid); 47var did = DocumentId.CreateNewId(pid); 62var did = DocumentId.CreateNewId(pid); 81var did = DocumentId.CreateNewId(pid); 121var did = DocumentId.CreateNewId(pid); 170var docId = DocumentId.CreateNewId(prj1Id); 209var docId = DocumentId.CreateNewId(prj1Id); 273var docId = DocumentId.CreateNewId(prj1Id);
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (1)
27var documentId = DocumentId.CreateNewId(projectId);
SolutionTests\DocumentInfoTests.cs (7)
22var documentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 34var id = DocumentId.CreateNewId(ProjectId.CreateNewId()); 53var id = DocumentId.CreateNewId(ProjectId.CreateNewId()); 72var documentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 96var info = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc_name", filePath: path, sourceCodeKind: kind); 105var documentId = DocumentId.CreateNewId(projectId); 106var instance = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc");
SolutionTests\ProjectInfoTests.cs (4)
39var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "doc"); 75var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 94var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(ProjectId.CreateNewId()), "doc"); 184var documentInfo = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "doc");
SolutionTests\SolutionTests.cs (120)
50private static readonly DocumentId s_unrelatedDocumentId = DocumentId.CreateNewId(ProjectId.CreateNewId()); 60.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", SourceText.From("public class Goo { }", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "goo.cs")) 61.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default)) 62.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From(editorConfig ?? "#empty", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: Path.Combine(s_projectDir, "editorcfg")))); 82.AddDocument(DocumentId.CreateNewId(projectId1), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 83.AddAdditionalDocument(DocumentId.CreateNewId(projectId1), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "add.txt") 84.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId1), "editorcfg", SourceText.From("config", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "/a/b") 86.AddDocument(DocumentId.CreateNewId(projectId2), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 87.AddAdditionalDocument(DocumentId.CreateNewId(projectId2), "add.txt", SourceText.From("text", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "add.txt") 88.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId2), "editorcfg", SourceText.From("config", Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "/a/b"))); 333.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 334.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config")); 843.AddDocument(DocumentId.CreateNewId(projectId1), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs") 845.AddDocument(DocumentId.CreateNewId(projectId2), "goo.cs", SourceText.From(docContents, Encoding.UTF8, SourceHashAlgorithms.Default), filePath: "goo.cs"))); 1080var d1 = DocumentId.CreateNewId(projectId); 1081var d2 = DocumentId.CreateNewId(projectId); 1082var d3 = DocumentId.CreateNewId(projectId); 1083var a1 = DocumentId.CreateNewId(projectId); 1084var a2 = DocumentId.CreateNewId(projectId); 1085var a3 = DocumentId.CreateNewId(projectId); 1086var c1 = DocumentId.CreateNewId(projectId); 1087var c2 = DocumentId.CreateNewId(projectId); 1088var c3 = DocumentId.CreateNewId(projectId); 1599var documentAId = DocumentId.CreateNewId(projectId); 1600var documentBId = DocumentId.CreateNewId(projectId); 1601var documentCId = DocumentId.CreateNewId(projectId); 1602var fileDocumentId = DocumentId.CreateNewId(projectId); 1784var documentId = DocumentId.CreateNewId(projectId); 1818var documentId = DocumentId.CreateNewId(projectId); 1856var documentId = DocumentId.CreateNewId(projectId); 1875var documentId = DocumentId.CreateNewId(projectId); 1894var documentId = DocumentId.CreateNewId(projectId); 2310var editorConfigId = DocumentId.CreateNewId(solution3.Projects.Single().Id); 2366var documentId = DocumentId.CreateNewId(projectId); 2378Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", loader)); 2391var documentId = DocumentId.CreateNewId(projectId); 2409Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", "text")); 2421var documentId = DocumentId.CreateNewId(projectId); 2437Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", sourceText)); 2450var documentId = DocumentId.CreateNewId(projectId); 2466Assert.Throws<InvalidOperationException>(() => solution.AddDocument(documentId: DocumentId.CreateNewId(ProjectId.CreateNewId()), "name", syntaxRoot: root)); 2479var documentId = DocumentId.CreateNewId(projectId); 2510var documentId = DocumentId.CreateNewId(projectId); 2566var did = DocumentId.CreateNewId(pid); 2591var did2 = DocumentId.CreateNewId(pid2); 2611var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2612var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2635var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2636var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2662var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2663var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2687var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file1.cs"); 2688var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId), "file2.cs"); 2708var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2709var documentInfo2 = DocumentInfo.Create(DocumentId.CreateNewId(projectId2), "file2.cs"); 2730var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.cs"); 2749var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), "file1.txt"); 2768var documentInfo1 = DocumentInfo.Create(DocumentId.CreateNewId(projectId1), ".editorconfig"); 2802var doc1 = DocumentId.CreateNewId(pm1); 2803var doc2 = DocumentId.CreateNewId(pm2); 2828.AddDocument(DocumentId.CreateNewId(pm1), "goo.cs", "public class X { }") 2829.AddDocument(DocumentId.CreateNewId(pm2), "bar.vb", "Public Class Y\r\nInherits X\r\nEnd Class"); 3135var did = DocumentId.CreateNewId(pid); 3157var documentId = DocumentId.CreateNewId(projectId); 3179var did = DocumentId.CreateNewId(pid); 3217var did = DocumentId.CreateNewId(pid); 3258var documentId = DocumentId.CreateNewId(projectId); 3298var did = DocumentId.CreateNewId(pid); 3322var did = DocumentId.CreateNewId(pid); 3342var did = DocumentId.CreateNewId(pid); 3365var did = DocumentId.CreateNewId(pid); 3389var did = DocumentId.CreateNewId(pid); 3409var did = DocumentId.CreateNewId(pid); 3430var did = DocumentId.CreateNewId(pid); 3452var did = DocumentId.CreateNewId(pid); 3472var did = DocumentId.CreateNewId(pid); 3492var did = DocumentId.CreateNewId(pid); 3511var did = DocumentId.CreateNewId(pid); 3542var did = DocumentId.CreateNewId(pid); 3573var did = DocumentId.CreateNewId(pid); 3599var did = DocumentId.CreateNewId(pid); 3626var did = DocumentId.CreateNewId(pid); 3650var did = DocumentId.CreateNewId(pid); 3715var did = DocumentId.CreateNewId(pid); 3740var did = DocumentId.CreateNewId(pid); 3769var did = DocumentId.CreateNewId(pid); 3908var did = DocumentId.CreateNewId(pid); 3935var did1 = DocumentId.CreateNewId(pid1); 3936var did2 = DocumentId.CreateNewId(pid2); 3937var did3 = DocumentId.CreateNewId(pid3); 4353var documentId1 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 4354var documentId2 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 4355var documentId3 = DocumentId.CreateNewId(solution.ProjectIds.Single()); 4576var did1 = DocumentId.CreateNewId(pid); 4580var did2 = DocumentId.CreateNewId(pid); 4584var did3 = DocumentId.CreateNewId(pid); 4588var did4 = DocumentId.CreateNewId(pid); 4592var did5 = DocumentId.CreateNewId(pid); 4640var did1 = DocumentId.CreateNewId(pid); 4644var did2 = DocumentId.CreateNewId(pid); 4648var did3 = DocumentId.CreateNewId(pid); 4652var did4 = DocumentId.CreateNewId(pid); 4656var did5 = DocumentId.CreateNewId(pid); 4674var sourceDocumentId = DocumentId.CreateNewId(projectId); 4682var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4710var sourceDocumentId = DocumentId.CreateNewId(projectId); 4715var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4751var sourceDocumentId = DocumentId.CreateNewId(projectId); 4756var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4796var sourceDocumentId = DocumentId.CreateNewId(projectId); 4804var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4827var sourceDocumentId = DocumentId.CreateNewId(projectId); 4850var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 4878var documentId = DocumentId.CreateNewId(projectId); 4898var documentId = DocumentId.CreateNewId(projectId); 4919var documentId = DocumentId.CreateNewId(projectId); 4937var editorConfigDocumentId = DocumentId.CreateNewId(projectId); 5423var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 5513var documentId = DocumentId.CreateNewId(projectId); 5518.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), ".editorconfig", SourceText.From($"[{pattern}]\nindent_style = tab"), filePath: configPath);
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
849DocumentId.CreateNewId(project.Id),
SyntaxNodeTests.cs (1)
83var did = DocumentId.CreateNewId(pid);
SyntaxReferenceTests.cs (2)
28var did = DocumentId.CreateNewId(pid); 38var did = DocumentId.CreateNewId(pid);
WorkspaceTests\AdhocWorkspaceTests.cs (6)
59var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 153DocumentId.CreateNewId(pid), 215var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 249var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version))); 285DocumentId.CreateNewId(pid), 322var docInfo = DocumentInfo.Create(DocumentId.CreateNewId(pid), "c.cs", loader: TextLoader.From(TextAndVersion.Create(text, version)));
WorkspaceTests\WorkspaceReferenceTests.cs (5)
36var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 76var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 116var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs"); 156var referenceDocumentInfo = DocumentInfo.Create(DocumentId.CreateNewId(referenceProject.Id), "code.cs"); 160var info = DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "code.cs");
WorkspaceTests\WorkspaceTests.cs (1)
164var id = DocumentId.CreateNewId(projectId);
Microsoft.VisualStudio.LanguageServices (2)
Implementation\AbstractEditorFactory.cs (1)
327var documentId = DocumentId.CreateNewId(projectToAddTo.Id);
Venus\ContainedLanguage.cs (1)
113documentId = DocumentId.CreateNewId(projectId, $"{nameof(ContainedDocument)}: {filePath}");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (9)
EditorConfigSettings\Aggregator\SettingsAggregatorTests.cs (3)
30.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 31.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") 32.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config"), filePath: "/a/b")));
EditorConfigSettings\DataProvider\DataProviderTests.cs (3)
31.AddDocument(DocumentId.CreateNewId(projectId), "goo.cs", "public class Goo { }") 32.AddAdditionalDocument(DocumentId.CreateNewId(projectId), "add.txt", "text") 34.AddAnalyzerConfigDocument(DocumentId.CreateNewId(projectId), "editorcfg", SourceText.From("config"), filePath: "/a/b")));
PersistentStorage\AbstractPersistentStorageTests.cs (3)
874var id = DocumentId.CreateNewId(solution.Projects.Single().Id); 894var id = DocumentId.CreateNewId(solution.Projects.Single().Id); 993solution = solution.AddDocument(DocumentInfo.Create(DocumentId.CreateNewId(project.Id), "Document1",
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Projects\RoslynRemoteProjectInfoProvider.cs (1)
94DocumentId.CreateNewId(projectId),
Client\RemoteLanguageServiceWorkspace.cs (1)
335DocumentId.CreateNewId(project.Id),
Roslyn.VisualStudio.Next.UnitTests (3)
Services\SolutionServiceTests.cs (3)
332var additionalDocumentId = DocumentId.CreateNewId(projectId); 363var analyzerConfigDocumentId = DocumentId.CreateNewId(projectId); 396var documentId = DocumentId.CreateNewId(projectId);