Skip to content

Commit 24ab0b9

Browse files
committed
WIP: Updated file paths to built server executable
1 parent a139936 commit 24ab0b9

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{
1616
"label": "Build with Gradle",
1717
"type": "shell",
18-
"command": "gradle installDist",
18+
"command": "gradle server:installDist",
1919
"problemMatcher": [],
2020
"group": {
2121
"kind": "build",

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ out/test/**
1919
out/**/*.map
2020
bin/**
2121
build/**
22-
!build/install/**
22+
!server/build/install/**
2323

2424
tsconfig.json
2525
tslint.json

BUILDING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Describes how to build and run this project. Note that you might need to use `gr
2424
| Building | `./gradlew server:build` | Builds, tests and packages the language server |
2525

2626
### Launching the packaged language server
27-
* Start scripts for the language server are located under `build/install/KotlinLanguageServer/bin/`
27+
* Start scripts for the language server are located under `server/build/install/server/bin/`
2828

2929
### Debugging
3030
* Attach the running language server on `localhost:8000`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323
"main": "./out/extension",
2424
"files": [
25-
"build/install/**"
25+
"server/build/install/**"
2626
],
2727
"contributes": {
2828
"languages": [
@@ -67,7 +67,7 @@
6767
}
6868
},
6969
"scripts": {
70-
"package-with-lsp": "gradle installDist && vsce package -o build.vsix",
70+
"package-with-lsp": "gradle server:installDist && vsce package -o build.vsix",
7171
"vscode:prepublish": "npm run compile",
7272
"compile": "tsc -p ./",
7373
"watch": "tsc -watch -p ./",

server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ task fixFilePermissions(type: Exec) {
1919
// When running on macOS or Linux the start script
2020
// needs executable permissions to run.
2121
onlyIf { !System.getProperty("os.name").toLowerCase().contains("windows") }
22-
commandLine 'chmod', '+x', "${project.buildDir}/install/KotlinLanguageServer/bin/KotlinLanguageServer"
22+
commandLine 'chmod', '+x', "${project.buildDir}/install/server/bin/server"
2323
}
2424

2525
task debugRun(type: JavaExec) {

vscode-extension-src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
4949
outputChannelName: 'Kotlin',
5050
revealOutputChannelOn: 4 // never
5151
}
52-
let startScriptPath = path.resolve(context.extensionPath, "server", "build", "install", "KotlinLanguageServer", "bin", correctScriptName("KotlinLanguageServer"))
52+
let startScriptPath = path.resolve(context.extensionPath, "server", "build", "install", "server", "bin", correctScriptName("server"))
5353
let args = [];
5454

5555
// Ensure that start script can be executed

0 commit comments

Comments
 (0)