Skip to content

Commit 60e056d

Browse files
tsmaederfbricon
authored andcommitted
Adapt to renames in jdt.ls
Signed-off-by: Thomas Mäder <[email protected]>
1 parent 20b26a9 commit 60e056d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export namespace Commands {
374374
/**
375375
* Get diagnostic info command in jdt.ls
376376
*/
377-
export const GET_DIAGNOSTIC_INFO = 'java.getDiagnosticInfo';
377+
export const GET_TROUBLESHOOTING_INFO = 'java.getTroubleshootingInfo';
378378
}
379379

380380
/**

src/dashboard/dashboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function getWebviewContent(webview: vscode.Webview, context: vscode.ExtensionCon
9292
}
9393
async function refreshLSInfo(webview: vscode.Webview): Promise<void> {
9494
try {
95-
vscode.commands.executeCommand<DiagnosticInfo>(Commands.EXECUTE_WORKSPACE_COMMAND, Commands.GET_DIAGNOSTIC_INFO).then(info => {
95+
vscode.commands.executeCommand<DiagnosticInfo>(Commands.EXECUTE_WORKSPACE_COMMAND, Commands.GET_TROUBLESHOOTING_INFO).then(info => {
9696
currentState.diagnosticInfo = info;
9797
const msg: UpdateMessage = {
9898
type: "update",

src/webview/dashboard/dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class Dashboard extends React.Component<AppProps, State> {
9191
<div>Java Home: {this.state.diagnosticInfo?.gradleJavaHome || 'undefined'} <a href={openSettingsLink('java.import.gradle.java.home')}>configure...</a></div>
9292
<h3>Registered Project Importers</h3>
9393
{this.state.diagnosticInfo?.activeImporters.map((clazz, index) => (
94-
<div>{clazz}</div>
94+
<div key={index}>{clazz}</div>
9595
))}
9696
</main >
9797
);

0 commit comments

Comments
 (0)