Simple demo of registering a jdt command

This commit is contained in:
Kris De Volder
2018-03-06 16:02:35 -08:00
parent bdebabf696
commit 319bc0124b
12 changed files with 203 additions and 6 deletions

View File

@@ -35,9 +35,18 @@ export function activate(context: VSCode.ExtensionContext) {
},
initializationOptions: {
workspaceFolders: workspace.workspaceFolders ? workspace.workspaceFolders.map(f => f.uri.toString()) : null
},
}
}
};
let clientPromise = commons.activate(options, context);
setTimeout(() => {
VSCode.commands.executeCommand("java.execute.workspaceCommand", "sts.java.resolveClasspath", "Brocoli", "Cabbage")
.then(
(commandResult) => VSCode.window.showInformationMessage(""+commandResult),
(e) => {
VSCode.window.showErrorMessage("Error" + e);
}
);
}, 10000);
return commons.activate(options, context);
}