"contributes": {
"commands": [
{
"command": "extension.showHelloWorld",
"title": "Show Hello World"
}
],
"configuration": {
"type": "object",
"title": "My VS Code Extension",
"properties": {
"myExtension.greeting": {
"type": "string",
"default": "Hello, World!",
"description": "The greeting message to display"
}
}
}
}
Next, update the command in extension.ts
to read the setting value: