提交 7757a635 编写于 作者: D David Barbet

Replace FAR abbreviation.

上级 3bcfc914
......@@ -22,11 +22,11 @@ namespace Microsoft.VisualStudio.LanguageServices.LiveShare
/// So implement goto def for typescript using FAR.
/// FAR has a UI thread dependency.
/// </summary>
internal abstract class AbstractGoToDefinitionWithFarHandler : ILspRequestHandler<LSP.TextDocumentPositionParams, object, Solution>
internal abstract class AbstractGoToDefinitionWithFindUsagesServiceHandler : ILspRequestHandler<LSP.TextDocumentPositionParams, object, Solution>
{
private readonly IMetadataAsSourceFileService _metadataAsSourceService;
public AbstractGoToDefinitionWithFarHandler(IMetadataAsSourceFileService metadataAsSourceService)
public AbstractGoToDefinitionWithFindUsagesServiceHandler(IMetadataAsSourceFileService metadataAsSourceService)
{
this._metadataAsSourceService = metadataAsSourceService;
}
......
......@@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.LanguageServices.LiveShare
{
[ExportLspRequestHandler(LiveShareConstants.RoslynContractName, Methods.TextDocumentDefinitionName)]
[Obsolete("Used for backwards compatibility with old liveshare clients.")]
internal class RoslynGoToDefinitionHandler : AbstractGoToDefinitionWithFarHandler
internal class RoslynGoToDefinitionHandler : AbstractGoToDefinitionWithFindUsagesServiceHandler
{
[ImportingConstructor]
public RoslynGoToDefinitionHandler([Import(AllowDefault = true)] IMetadataAsSourceFileService metadataAsSourceService)
......@@ -20,7 +20,7 @@ public RoslynGoToDefinitionHandler([Import(AllowDefault = true)] IMetadataAsSour
}
[ExportLspRequestHandler(LiveShareConstants.TypeScriptContractName, Methods.TextDocumentDefinitionName)]
internal class TypeScriptGoToDefinitionHandler : AbstractGoToDefinitionWithFarHandler
internal class TypeScriptGoToDefinitionHandler : AbstractGoToDefinitionWithFindUsagesServiceHandler
{
[ImportingConstructor]
public TypeScriptGoToDefinitionHandler() : base(null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册