Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IExpansionSession.cs « Snippet « Intellisense « Def « Language « Editor « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9845f93f91dc75f9544bd59967323edd2e003fca (plain)
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
//
//  Copyright (c) Microsoft Corporation. All rights reserved.
//  Licensed under the MIT License. See License.txt in the project root for license information.
//

using System;
using System.Xml.Linq;

namespace Microsoft.VisualStudio.Text.Editor.Expansion
{
    public interface IExpansionSession
    {
        void EndCurrentExpansion(bool leaveCaret);
        bool GoToNextExpansionField(bool commitIfLast);
        bool GoToPreviousExpansionField();
        string GetFieldValue(string fieldName);
        void SetFieldDefault(string fieldName, string newValue);
        SnapshotSpan GetFieldSpan(string fieldName);
        XElement GetHeaderNode();
        XElement GetDeclarationNode();
        XElement GetSnippetNode();
        SnapshotSpan GetSnippetSpan();
        SnapshotSpan EndSpan { get; set; }
    }
}