Skip to content

Commit 5fec671

Browse files
TheAngryByrdedgarfgpbaronfel
authored
Generate types from LSP meta model (#49)
Generates F# types and serialization infrastructure directly from the LSP metamodel.sjon --------- Co-authored-by: Edgar Gonzalez <[email protected]> Co-authored-by: Chet Husk <[email protected]>
1 parent 9badc6b commit 5fec671

27 files changed

+25570
-4214
lines changed

.editorconfig

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ trim_trailing_whitespace = false
1212
insert_final_newline = false
1313
max_line_length=120
1414
fsharp_max_if_then_else_short_width=60
15-
fsharp_max_infix_operator_expression=60
1615
fsharp_max_record_width=80
1716
fsharp_max_array_or_list_width=80
1817
fsharp_max_value_binding_width=120
1918
fsharp_max_function_binding_width=120
2019
fsharp_max_dot_get_expression_width=120
20+
fsharp_multiline_bracket_style = stroustrup
21+
fsharp_keep_max_number_of_blank_lines=2
22+
fsharp_max_array_or_list_number_of_items=1
23+
fsharp_array_or_list_multiline_formatter=number_of_items
24+
fsharp_max_infix_operator_expression=10
25+
fsharp_multi_line_lambda_closing_newline=true

.github/workflows/build.yml

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
show-progress: false
1818
- name: Setup .NET Core
1919
uses: actions/setup-dotnet@v4
20+
with:
21+
global-json-file: global.json
22+
dotnet-version: |
23+
8.x
24+
6.x
2025
- name: Run build
2126
run: dotnet build -c Release src
2227
- name: Run tests

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ bin
22
obj
33
release
44
BenchmarkDotNet.Artifacts
5+
.idea

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"editor.formatOnSave": true,
2+
// "editor.formatOnSave": true,
33
"yaml.schemas": {
44
"https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json": ".github/workflows/**"
55
},

LanguageServerProtocol.sln

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Ionide.LanguageServerProtoc
77
EndProject
88
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Ionide.LanguageServerProtocol.Tests", "tests\Ionide.LanguageServerProtocol.Tests.fsproj", "{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}"
99
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{47733741-07EF-431B-A1DC-2A22E4090CCC}"
11+
EndProject
12+
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "MetaModelGenerator", "tools\MetaModelGenerator\MetaModelGenerator.fsproj", "{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}"
13+
EndProject
1014
Global
1115
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1216
Debug|Any CPU = Debug|Any CPU
@@ -24,5 +28,12 @@ Global
2428
{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
2529
{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
2630
{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}.Release|Any CPU.Build.0 = Release|Any CPU
31+
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32+
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
33+
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Release|Any CPU.Build.0 = Release|Any CPU
35+
EndGlobalSection
36+
GlobalSection(NestedProjects) = preSolution
37+
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D} = {47733741-07EF-431B-A1DC-2A22E4090CCC}
2738
EndGlobalSection
2839
EndGlobal

0 commit comments

Comments
 (0)