From 9a249ffcc1329fb25c17dbe033eb3e09db9d25d3 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Thu, 17 May 2018 12:26:20 -0700 Subject: [PATCH] Add a LiveShare project snapshot base to make it easier to detect breaking changes. --- .../LiveShareProjectSnapshotBase.cs | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/LiveShareProjectSnapshotBase.cs diff --git a/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/LiveShareProjectSnapshotBase.cs b/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/LiveShareProjectSnapshotBase.cs new file mode 100644 index 0000000000..f03a31b0ae --- /dev/null +++ b/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/LiveShareProjectSnapshotBase.cs @@ -0,0 +1,36 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Razor.Language; +using Microsoft.CodeAnalysis.Razor.ProjectSystem; + +namespace Microsoft.CodeAnalysis.Razor.Workspaces.ProjectSystem +{ + // This is a marker class to allow us to know when potential breaking changes might impact live share. + // This is intentionally not abstract so any API changes that happen to ProjectSnapshot will break this. + internal class LiveShareProjectSnapshotBase : ProjectSnapshot + { + public override RazorConfiguration Configuration => throw new NotImplementedException(); + + public override IEnumerable DocumentFilePaths => throw new NotImplementedException(); + + public override string FilePath => throw new NotImplementedException(); + + public override bool IsInitialized => throw new NotImplementedException(); + + public override VersionStamp Version => throw new NotImplementedException(); + + public override Project WorkspaceProject => throw new NotImplementedException(); + + public override DocumentSnapshot GetDocument(string filePath) => throw new NotImplementedException(); + + public override RazorProjectEngine GetProjectEngine() => throw new NotImplementedException(); + + public override Task> GetTagHelpersAsync() => throw new NotImplementedException(); + + public override bool TryGetTagHelpers(out IReadOnlyList result) => throw new NotImplementedException(); + } +}