You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support changes in vscode-nls-dev that allow hint comments in package.nls.json #126408
This works properly to get the hint comment into the exported XLF for localization purposes. However, VS Code appears to be failing to read from package.nls.json when this format is used, resulting in an exception thrown when the settings UI is opened. It looks like this change requires a change to VS Code to support the new schema.
Dirk Bäumer (@dbaeumer) This appears to not be fully addressed. With 1.58.2, doing this with the description of a setting, I get no tooltip when hovering over the setting name in settings.json.
I get the following error when I open the settings UI, and no settings at all are displayed.
log.ts:296 ERR (x.description || x.markdownDescription || "").split is not a function: TypeError: (x.description || x.markdownDescription || "").split is not a function
at d.parseSettings (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:18950)
at d.parseConfig (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:18453)
at vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:17052
at Array.reduce (<anonymous>)
at d.getRegisteredGroups (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:17029)
at d.parse (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:16758)
at d.initialize (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:16675)
at d.getSettingsGroups (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:16596)
at s.get settingsGroups [as settingsGroups] (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1863:13279)
at Zt.onConfigUpdate (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2301:53484)
at Zt.setInput (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2301:39364)
at async u.doSetInput (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2355:131518)
at async u.openEditor (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2355:129942)
at async vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2567:15994
at async Object.accept (vscode-file://vscode-app/c:/Users/colen/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:641:3988)
Activity
dbaeumer commentedon Jun 16, 2021
With the new format a value in a
package.nls.jsonfile can look like this:Fixes #126408: Support changes in vscode-nls-dev that allow hint comm…
Colengms commentedon Jul 30, 2021
Dirk Bäumer (@dbaeumer) This appears to not be fully addressed. With 1.58.2, doing this with the description of a setting, I get no tooltip when hovering over the setting name in
settings.json.I get the following error when I open the settings UI, and no settings at all are displayed.
My entry in
package.nls.jsonwas defined like so:And referenced like so in
package.json:sean-mcmanus commentedon Jul 31, 2021
When I reproed the bug, I got none of our extension's settings displayed, but the built-in ones appeared.
Also, if this is fixed, please make sure markdownDescription is also supported.
Fixes #126408: Support changes in vscode-nls-dev that allow hint comm…
dbaeumer commentedon Aug 3, 2021
Missed one place where we read package.nls.json files. Fixed it.