File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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.
1715interface ExtensionAPI {
18- buildOutputPath : string ;
16+ getBuildOutputPath ( ) : Promise < string > ;
1917}
You can’t perform that action at this time.
0 commit comments