We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
See how errorWithActions becomes any[] because Array.isArray() is used:
errorWithActions
any[]
Array.isArray()
https://github.com/microsoft/vscode/blob/cffd590665a0271a05ad90dbb3c708d156c3008b/src/vs/workbench/browser/parts/editor/editorPanes.ts#L155
https://github.com/microsoft/vscode/blob/cffd590665a0271a05ad90dbb3c708d156c3008b/src/vs/workbench/browser/parts/editor/editorPanes.ts#L162
Looks like not the first case for Array.isArray and IAction combo #41889 #39258
Array.isArray
IAction
Self contained example:
let errorActions: readonly string[] | undefined = undefined; if (Array.isArray(errorActions)) { // check errorActions here console.log(errorActions) }
Duplicate of #17002
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
Activity
IllusionMH commentedon Apr 21, 2022
Looks like not the first case for
Array.isArray
andIAction
combo#41889
#39258
mjbvz commentedon Apr 30, 2022
Self contained example:
andrewbranch commentedon May 2, 2022
Duplicate of #17002
typescript-bot commentedon May 5, 2022
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.