Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add more documentation with the code example #37

Open
velara3 opened this issue Oct 24, 2024 · 0 comments
Open

Suggestion: Add more documentation with the code example #37

velara3 opened this issue Oct 24, 2024 · 0 comments

Comments

@velara3
Copy link

velara3 commented Oct 24, 2024

In this section maybe add another example (one provided below):

settings.json:

    "triggerTaskOnSave.tasks": {
        "run Bun": [
            "src/*.ts"
        ],
    }

.vscode/tasks.json:

{
	"version": "2.0.0",
	"tasks": [
		{
	          "label": "run Bun",
	          "type": "shell",
	          "command": "bun bun.build.js",
                  "group": {
                      "kind": "build",
                      "isDefault": true
                  },
		}
	]
}

Description:
The above code defines a task in the tasks.json file and then refers to that task by name (label) in the settings.json file.
Whenever a ts file is saved in the src directory the task, run Bun is called. The task name is case sensitive.

@velara3 velara3 changed the title Add third example in code block Suggestion: Add more documentation with the code example Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant