Skip to content

./.vscode > tasks.json contains deprecated API tasks.identifier #32665

Closed
@nataliemarleny

Description

@nataliemarleny

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:
    !**/.vscode/tasks.json

or

Playground Link:
Not applicable

Related Issues:
None found

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssue relates to TypeScript team infrastructure

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions