vscode: degraded intellisense/error reporting for launch.json

A side effect of the schema optimisation work done via https://github.com/microsoft/vscode/issues/120711 is a degradation of intellisense and error reporting for launch.json.

In particular the following areas are affected:

  • unknown properties are not flagged as errors,
  • preLaunchTask: when using a structured preLaunchTask (instead of just the name of a task), there is no intellisense/error reporting for the task attributes (IIRC structured preLaunchTasks should only allow something like: {"task": "...", "type": "..." } ),
  • there might be more…

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (18 by maintainers)

Commits related to this issue

Most upvoted comments

I’m pretty sure that getJsonSchema is caching an incomplete value and returning that even after more registrations have happened https://github.com/microsoft/vscode/blob/1b88f28b495c90bb656bc3fb710a49d662074a3e/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.ts#L155

I need that to return the real latest value. There is already an event for change although I’m not listening to it right now

unevaluatedProperties is now supported by the JSON language service.