Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language Server Infrastructure #49

Merged
merged 7 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
432 changes: 391 additions & 41 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ members = [
"zydeco-lang/statics",
"cli",
"web",
"editor/zls",
]
2 changes: 1 addition & 1 deletion docs/parser_combinator/parser_revisited.zy
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ alias ReaderM (M : VType -> CType) (S : VType) (A : VType) = S -> M A end

main
! exit 0
end
end
1 change: 1 addition & 0 deletions editor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.vscode/
18 changes: 18 additions & 0 deletions editor/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/code/zls"
],
"outFiles": [
"${workspaceFolder}/code/zls/out/**/*.js"
],
"preLaunchTask": "VS Code Extension Prelaunch"
}
]
}
49 changes: 49 additions & 0 deletions editor/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "VS Code Extension Prelaunch",
"dependsOn": [ "Compile VS Code Extension", "Build Debug LSP Binary", "Copy Debug LSP Binary to VS Code Extension" ],
"dependsOrder": "sequence"
},
{
"label": "Compile VS Code Extension",
"type": "npm",
"script": "compile",
"path": "code/zls/",
"group": "build"
},
{
"label": "Build Debug LSP Binary",
"type": "cargo",
"command": "build",
"problemMatcher": [ "$rustc" ],
"group": "build"
},
{
"label": "Copy Debug LSP Binary to VS Code Extension",
"type": "shell",
"windows": {
"command": "cp",
"args": [
"${workspaceFolder}\\..\\target\\debug\\zls.exe",
"${workspaceFolder}\\code\\zls\\out\\"
]
},
"linux": {
"command": "cp",
"args": [
"${workspaceFolder}/../target/debug/zls",
"${workspaceFolder}/code/zls/out/"
]
},
"osx": {
"command": "cp",
"args": [
"${workspaceFolder}/../target/debug/zls",
"${workspaceFolder}/code/zls/out/"
]
}
}
]
}
5 changes: 4 additions & 1 deletion editor/code/zls/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
!.vscode/
!.vscode/

node_modules/
out/
Loading
Loading