Skip to content

Commit

Permalink
DX-6792: java language server (#379)
Browse files Browse the repository at this point in the history
* DX-6802: download and extract jdt server (#377)

* Java Lang Server Prototype (#383)

* DX-6795: java server prototype (WIP)

* wip

* wip

* wip

* wip

* wip

* java lang server prototype

* lint fix

* update extension dependency

* bug fixes

* DX-6839: refactor and add tests (#386)

* DX-6839: refactor and add tests

* wip

* language client tests

* stripe hover provider tests

* add code reference comments

* fix lint

* execute parameters tests

* check package json file

* fix tests

* remove hardcoded jar path

* fix test

* handle errors and telemetry

* address comments

* DX-6804: auto update jdt server version (#389)

* DX-6804: get latest jdt server version

* remove latest version text file

* move jdt server to distributed folder for release

* update comment
  • Loading branch information
etsai-stripe authored Oct 20, 2021
1 parent 38a992f commit b3d1b21
Show file tree
Hide file tree
Showing 15 changed files with 1,965 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "Build all",
"env": {
"EXTENSION_MODE": "development"
"EXTENSION_MODE": "development",
"DEBUG_VSCODE_JAVA":"true"
}
},
{
Expand Down
10 changes: 8 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@
"type": "npm",
"script": "publish:dotnet-server",
"isBackground": true
},
},
{
"label": "build java server",
"type": "npm",
"script": "java-server",
"isBackground": true
},
{
"label": "Build all",
"dependsOn": ["Build language server", "build dotnet server", "Build extension"]
"dependsOn": ["Build language server", "build dotnet server", "build java server", "Build extension"]
}
]
}
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,12 @@
"webpack-prod:extension": "webpack --mode production --config ./webpack.config.js && webpack --mode production --config ./src/stripeLanguageServer/webpack.config.js",
"webpack-prod:language-server": "webpack --mode production --config ./src/stripeLanguageServer/webpack.config.js",
"webpack-prod": "npm run webpack-prod:extension && npm run webpack-prod:language-server",
"publish:dotnet-server": "dotnet publish src/stripeDotnetLanguageServer/stripe.LanguageServer/ -o ./dist/stripeDotnetLanguageServer"
"publish:dotnet-server": "dotnet publish src/stripeDotnetLanguageServer/stripe.LanguageServer/ -o ./dist/stripeDotnetLanguageServer",
"java-server": "node ./out/src/stripeJavaLanguageServer/extractServer.js"
},
"devDependencies": {
"@types/byline": "^4.2.33",
"@types/fs-extra": "^8.0.0",
"@types/glob": "^7.1.4",
"@types/google-protobuf": "^3.15.5",
"@types/mocha": "^9.0.0",
Expand Down Expand Up @@ -457,17 +459,24 @@
"byline": "^5.0.0",
"compare-versions": "^3.6.0",
"execa": "^5.1.1",
"expand-home-dir": "^0.0.3",
"find-java-home": "1.1.0",
"fs-extra": "^8.1.0",
"moment": "^2.29.1",
"os-name": "^3.1.0",
"proxyquire": "^2.1.3",
"remark-gfm": "^1.0.0",
"superagent": "*",
"tar-fs": "*",
"toml": "^3.0.0",
"uuid": "^8.3.2",
"vscode-languageclient": "^6.1.3",
"vscode-languageserver": "^6.1.1",
"vscode-languageserver-textdocument": "^1.0.1"
"vscode-languageserver-textdocument": "^1.0.1",
"zlib": "*"
},
"extensionDependencies": [
"ms-dotnettools.vscode-dotnet-runtime"
"ms-dotnettools.vscode-dotnet-runtime",
"vscjava.vscode-java-pack"
]
}
Loading

0 comments on commit b3d1b21

Please sign in to comment.