Skip to content

Commit a9e456f

Browse files
committed
Move to request
1 parent 95df7a8 commit a9e456f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/extension.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ export async function activate(context: vscode.ExtensionContext) {
77
// We call vscode-kotlin's API to fetch the build output path.
88
// Note that this code is only executed after vscode-kotlin is setup, so the API should be ready to receive requests.
99
const vscodeKotlinApi = vscode.extensions.getExtension('fwcd.kotlin').exports as ExtensionAPI;
10-
11-
console.log(vscodeKotlinApi)
1210
// Execute a java workspace command to update the kotlin build output path. This triggers a classpath change on the JDT language server.
13-
await vscode.commands.executeCommand("java.execute.workspaceCommand", "kotlin.java.setKotlinBuildOutput", vscodeKotlinApi.buildOutputPath);
11+
await vscode.commands.executeCommand("java.execute.workspaceCommand", "kotlin.java.setKotlinBuildOutput", await vscodeKotlinApi.getBuildOutputPath());
1412
}
1513

1614
// vscode-kotlin API stub.
1715
interface ExtensionAPI {
18-
buildOutputPath: string;
16+
getBuildOutputPath(): Promise<string>;
1917
}

0 commit comments

Comments
 (0)