Skip to content

Commit

Permalink
Generate types from LSP meta model (#49)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people authored Jun 13, 2024
1 parent 9badc6b commit 5fec671
Show file tree
Hide file tree
Showing 27 changed files with 25,570 additions and 4,214 deletions.
7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ trim_trailing_whitespace = false
insert_final_newline = false
max_line_length=120
fsharp_max_if_then_else_short_width=60
fsharp_max_infix_operator_expression=60
fsharp_max_record_width=80
fsharp_max_array_or_list_width=80
fsharp_max_value_binding_width=120
fsharp_max_function_binding_width=120
fsharp_max_dot_get_expression_width=120
fsharp_multiline_bracket_style = stroustrup
fsharp_keep_max_number_of_blank_lines=2
fsharp_max_array_or_list_number_of_items=1
fsharp_array_or_list_multiline_formatter=number_of_items
fsharp_max_infix_operator_expression=10
fsharp_multi_line_lambda_closing_newline=true
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
show-progress: false
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
dotnet-version: |
8.x
6.x
- name: Run build
run: dotnet build -c Release src
- name: Run tests
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ bin
obj
release
BenchmarkDotNet.Artifacts
.idea
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.formatOnSave": true,
// "editor.formatOnSave": true,
"yaml.schemas": {
"https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json": ".github/workflows/**"
},
Expand Down
11 changes: 11 additions & 0 deletions LanguageServerProtocol.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Ionide.LanguageServerProtoc
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Ionide.LanguageServerProtocol.Tests", "tests\Ionide.LanguageServerProtocol.Tests.fsproj", "{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{47733741-07EF-431B-A1DC-2A22E4090CCC}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "MetaModelGenerator", "tools\MetaModelGenerator\MetaModelGenerator.fsproj", "{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -24,5 +28,12 @@ Global
{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8E54FA2A-C7E4-4D70-AF23-7F8D56EB6B9C}.Release|Any CPU.Build.0 = Release|Any CPU
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{4BA36C85-8414-4965-AAA3-B6D8EDE14B7D} = {47733741-07EF-431B-A1DC-2A22E4090CCC}
EndGlobalSection
EndGlobal
Loading

0 comments on commit 5fec671

Please sign in to comment.