Skip to content

Commit e54f522

Browse files
committed
Fixed incorrect localisation key issues
1 parent a9936f1 commit e54f522

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

vscode/src/commands/cache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const deleteCache = async () => {
2525
// TODO: Change workspace path to userdir path
2626
const storagePath = globalVars.extensionInfo.getWorkspaceStorage()?.fsPath;
2727
if (!storagePath) {
28-
window.showErrorMessage(l10n.value("jdk.extenstion.cache.error_msg.cannotFindWrkSpacePath"));
28+
window.showErrorMessage(l10n.value("jdk.extension.cache.error_msg.cannotFindWrkSpacePath"));
2929
return;
3030
}
3131

@@ -42,9 +42,9 @@ const deleteCache = async () => {
4242
globalVars.deactivated = true;
4343
await globalVars.nbProcessManager?.killProcess(false);
4444
await fs.promises.rmdir(userDir, { recursive: true });
45-
await window.showInformationMessage(l10n.value("jdk.extenstion.message.cacheDeleted"), reloadWindowActionLabel);
45+
await window.showInformationMessage(l10n.value("jdk.extension.message.cacheDeleted"), reloadWindowActionLabel);
4646
} catch (err) {
47-
await window.showErrorMessage(l10n.value("jdk.extenstion.error_msg.cacheDeletionError"), reloadWindowActionLabel);
47+
await window.showErrorMessage(l10n.value("jdk.extension.error_msg.cacheDeletionError"), reloadWindowActionLabel);
4848
} finally {
4949
commands.executeCommand(builtInCommands.reloadWindow);
5050
}

vscode/src/commands/create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const newFromTemplate = async (ctx: any, template: any) => {
6767
}
6868
}
6969
} else {
70-
throw l10n.value("jdk.extenstion.error_msg.doesntSupportNewTeamplate", { client });
70+
throw l10n.value("jdk.extension.error_msg.doesntSupportNewTeamplate", { client });
7171
}
7272
}
7373

@@ -92,7 +92,7 @@ const newProject = async (ctx: any) => {
9292
}
9393
}
9494
} else {
95-
throw l10n.value("jdk.extenstion.error_msg.doesntSupportNewProject", { client });
95+
throw l10n.value("jdk.extension.error_msg.doesntSupportNewProject", { client });
9696
}
9797
};
9898

vscode/src/commands/navigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const goToTest = async (ctx: any) => {
7272
window.showInformationMessage(err?.message || l10n.value("jdk.extension.fileSelector.label.noTestFound"));
7373
}
7474
} else {
75-
throw l10n.value("jdk.extenstion.error_msg.doesntSupportGoToTest", { client });
75+
throw l10n.value("jdk.extension.error_msg.doesntSupportGoToTest", { client });
7676
}
7777
}
7878

vscode/src/commands/refactor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const goToSuperImplementationHandler = async () => {
3131
const locations: any[] = await commands.executeCommand(nbCommands.superImpl, uri.toString(), position) || [];
3232
return commands.executeCommand(builtInCommands.goToEditorLocations, window.activeTextEditor.document.uri, position,
3333
locations.map(location => new Location(Uri.parse(location.uri), new Range(location.range.start.line, location.range.start.character, location.range.end.line, location.range.end.character))),
34-
'peek', l10n.value('jdk.extenstion.error_msg.noSuperImpl'));
34+
'peek', l10n.value('jdk.extension.error_msg.noSuperImpl'));
3535
}
3636

3737
const renameElementHandler = async (offset: any) => {

vscode/src/commands/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const wrapCommandWithProgress = (lsCommand: string, title: string, log?:
109109
}
110110
}
111111
} else {
112-
reject(l10n.value("jdk.extenstion.progressBar.error_msg.cannotRun", { lsCommand: lsCommand, client: c }));
112+
reject(l10n.value("jdk.extension.progressBar.error_msg.cannotRun", { lsCommand: lsCommand, client: c }));
113113
}
114114
});
115115
});

vscode/src/debugger/debugger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class NetBeansDebugAdapterDescriptionFactory implements vscode.DebugAdapterDescr
6262
if (cnt-- > 0) {
6363
setTimeout(fnc, 1000);
6464
} else {
65-
reject(new Error(l10n.value('jdk.extenstion.debugger.error_msg.debugAdapterNotInitialized')));
65+
reject(new Error(l10n.value('jdk.extension.debugger.error_msg.debugAdapterNotInitialized')));
6666
}
6767
} else {
6868
// resolve(new vscode.DebugAdapterServer(debugPort));

0 commit comments

Comments
 (0)