Closed
Description
TypeScript Version: 3.6.0
Search Terms:
vscode, tasks.json, tasks, identifier
Code
./.vscode
> tasks.json
contains deprecated API tasks.identifier
.
"tasks": [
{
"type": "shell",
"identifier": "local", // deprecated
"label": "gulp: local",
"command": "gulp",
"args": ["local"],
"group": { "kind": "build", "isDefault": true },
"problemMatcher": ["$gulp-tsc"]
},
Note: tasks.identifier
in tasks.json
was introduced: 41567b2 - Migrate tscWatchMode to vfs
Expected behavior:
tasks.identifier
should not be present in tasks.json
Reference: microsoft/vscode#57946
Further discussion see thread containing: microsoft/vscode#57707 (comment)
Schema for tasks.json: https://code.visualstudio.com/docs/editor/tasks-appendix
Actual behavior:
VSCode shows a warning for the identifier
field
Suggested solution
Either:
- Remove identifier as a parameter, (functionality is covered by label)
or
- Remove
./.vscode
>tasks.json
if configured tasks no longer needed - Remove
.gitignore
reference:Line 62 in 90afd6d
or
- There was mention in the github issues thread on discussion of deprecation of
tasks.identifier
to update tasks API to new supported feature:TaskDefinitions
inpackage.json
: https://code.visualstudio.com/api/references/contribution-points#contributes.taskDefinitions
Playground Link:
Not applicable
Related Issues:
None found