From 6af15d679a4d3941cf0fc68e0b914acbe015f0ee Mon Sep 17 00:00:00 2001 From: David de Hilster Date: Wed, 17 Apr 2024 11:21:16 -0400 Subject: [PATCH] fix: add submenus, views, notebooks, and notebookRenderer to fixPackage Signed-off-by: David de Hilster --- util/nls/vscode.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/util/nls/vscode.ts b/util/nls/vscode.ts index 4ec04f3..0ff1955 100644 --- a/util/nls/vscode.ts +++ b/util/nls/vscode.ts @@ -54,11 +54,34 @@ export function fixPackage() { touched = fix(item, "description") || touched; } + for (const key in pkg.contributes.submenus) { + const item = pkg.contributes.submenus[key]; + touched = fix(item, "label") || touched; + } + + for (const key in pkg.contributes.views) { + const items = pkg.contributes.views[key]; + for (const k in items) { + const item = items[k]; + touched = fix(item, "name") || touched; + } + } + for (const key in pkg.contributes.configuration.properties) { const item = pkg.contributes.configuration.properties[key]; touched = fix(item, "description") || touched; } + for (const key in pkg.contributes.notebooks) { + const item = pkg.contributes.notebooks[key]; + touched = fix(item, "displayName") || touched; + } + + for (const key in pkg.contributes.notebookRenderer) { + const item = pkg.contributes.notebookRenderer[key]; + touched = fix(item, "displayName") || touched; + } + for (const key in pkg.contributes.debuggers[0].configurationAttributes.launch.properties) { const item = pkg.contributes.debuggers[0].configurationAttributes.launch.properties[key]; touched = fix(item, "description") || touched;