Skip to content

Commit

Permalink
fix: add submenus, views, notebooks, and notebookRenderer to fixPackage
Browse files Browse the repository at this point in the history
Signed-off-by: David de Hilster <[email protected]>
  • Loading branch information
dehilsterlexis committed Apr 17, 2024
1 parent 577fd4b commit 6af15d6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions util/nls/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6af15d6

Please sign in to comment.