未验证 提交 cdbe6c7a 编写于 作者: T Tomáš Matoušek 提交者: GitHub

Add overload used by Razor via IVT back (#42034)

* Add overload used by Razor via IVT back

* Update src/Workspaces/Core/Portable/Workspace/Solution/DocumentInfo.cs
Co-Authored-By: NJason Malinowski <jason.malinowski@microsoft.com>
Co-authored-by: NJason Malinowski <jason@jason-m.com>
上级 c4403c9a
......@@ -94,6 +94,22 @@ internal DocumentInfo(DocumentAttributes attributes, TextLoader? loader, IDocume
documentServiceProvider: null);
}
// TODO: https://github.com/dotnet/roslyn/issues/35079
// Used by Razor: https://github.com/dotnet/aspnetcore-tooling/blob/master/src/Razor/src/Microsoft.VisualStudio.Editor.Razor/DefaultVisualStudioMacDocumentInfoFactory.cs#L38
[Obsolete("This is a compatibility shim for Razor; please do not use it.")]
internal static DocumentInfo Create(
DocumentId id,
string name,
IEnumerable<string>? folders,
SourceCodeKind sourceCodeKind,
TextLoader? loader,
string? filePath,
bool isGenerated,
IDocumentServiceProvider? documentServiceProvider)
{
return new DocumentInfo(new DocumentAttributes(id, name, folders.ToBoxedImmutableArray(), sourceCodeKind, filePath, isGenerated), loader, documentServiceProvider);
}
internal static DocumentInfo Create(
DocumentId id,
string name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册