-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathIVsSourceActions.cs
More file actions
26 lines (23 loc) · 964 Bytes
/
IVsSourceActions.cs
File metadata and controls
26 lines (23 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//*****************************************************************************
//* Code Factory SDK
//* Copyright (c) 2020 CodeFactory, LLC
//*****************************************************************************
using System.Threading.Tasks;
using CodeFactory.Document;
using CodeFactory.DotNet.CSharp;
namespace CodeFactory.VisualStudio
{
/// <summary>
/// The visual studio actions that support source models.
/// </summary>
public interface IVsSourceActions
{
/// <summary>
/// Loads the <see cref="IVsDocument"/> model from the provided <see cref="ICsSource"/> model.
/// </summary>
/// <param name="source">Model to load the document from.</param>
/// <returns>Loaded document model.</returns>
/// <exception cref="DocumentException">Exception that occurs while loading the document.</exception>
Task<VsDocument> LoadDocumentFromSourceAsync(ICsSource source);
}
}