Skip to content

Commit

Permalink
Add basic language server (#6)
Browse files Browse the repository at this point in the history
* adds a basic language server
* language-server: add suggestions for global options
* language-server: add hover description for global option directives
* language-server: add hover description for regular directives
matthewpi authored Dec 6, 2020
1 parent a0aa910 commit fbeede4
Showing 11 changed files with 1,787 additions and 2,041 deletions.
11 changes: 9 additions & 2 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
**/*.map
.github/**/*
.gitignore
.prettierrc.json
.vscode-test/**
.vscode/
SECURITY.md
build/
examples/
node_modules
out/
src/
test/
third_party/
tsconfig.json
webpack.config.js
**/tsconfig.json
**/tsconfig.base.json

node_modules/**
!node_modules/vscode-jsonrpc/**
!node_modules/vscode-languageclient/**
!node_modules/vscode-languageserver-protocol/**
!node_modules/vscode-languageserver-types/**
!node_modules/semver/**
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -32,7 +32,9 @@

"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "webpack --mode production",
"postinstall": "cd server && yarn install && cd ..",

"compile": "webpack --mode production && tsc -b ./server",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch",
"watch": "tsc -watch -p ./"
@@ -41,17 +43,18 @@
"extensionDependencies": [],

"dependencies": {
"tree-kill": "file:third_party/tree-kill"
"tree-kill": "file:third_party/tree-kill",
"vscode-languageclient": "^6.1.3"
},

"devDependencies": {
"@types/node": "^14.0.27",
"@types/vscode": "^1.48.0",
"ts-loader": "^8.0.2",
"@types/node": "^14.14.10",
"@types/vscode": "^1.51.0",
"ts-loader": "^8.0.11",
"tslint": "^6.1.3",
"typescript": "^3.9.7",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
"typescript": "^4.1.2",
"webpack": "^5.10.0",
"webpack-cli": "^4.2.0"
},

"engines": {
28 changes: 28 additions & 0 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "caddyfile-language-server",
"description": "",
"version": "0.0.1",
"license": "MIT",
"publisher": "matthewpi",
"private": true,

"repository": {
"type": "git",
"url": "https://github.com/matthewpi/vscode-caddyfile-support"
},

"author": {
"name": "Matthew Penner",
"email": "me@matthewp.io",
"url": "https://matthewp.io"
},

"dependencies": {
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-textdocument": "^1.0.1"
},

"engines": {
"node": ">=14"
}
}
Loading

0 comments on commit fbeede4

Please sign in to comment.