Skip to content

Commit 78ad540

Browse files
author
Kapil Borle
committed
Add formatting related types
1 parent ca1f97e commit 78ad540

File tree

1 file changed

+28
-0
lines changed
  • src/PowerShellEditorServices.Protocol/LanguageServer

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//
2+
// Copyright (c) Microsoft. All rights reserved.
3+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
4+
//
5+
6+
using Microsoft.PowerShell.EditorServices.Protocol.MessageProtocol;
7+
8+
namespace Microsoft.PowerShell.EditorServices.Protocol.LanguageServer
9+
{
10+
public class DocumentFormattingRequest
11+
{
12+
public static readonly
13+
RequestType<DocumentFormattingParams, TextEdit[], object,TextDocumentRegistrationOptions> Type = RequestType<DocumentFormattingParams, TextEdit[], object,TextDocumentRegistrationOptions>.Create("textDocument/definition");
14+
}
15+
16+
public class DocumentFormattingParams
17+
{
18+
public TextDocumentIdentifier TextDocument { get; set; }
19+
public FormattingOptions options { get; set; }
20+
}
21+
22+
public class FormattingOptions
23+
{
24+
int TabSize { get; set; }
25+
bool InsertSpaces { get; set; }
26+
}
27+
}
28+

0 commit comments

Comments
 (0)