mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
76 lines
1.8 KiB
JSON
76 lines
1.8 KiB
JSON
{
|
|
"name": "configuration-sample",
|
|
"displayName": "Configuration Sample",
|
|
"description": "How to contribute and use configurations in VS Code",
|
|
"version": "0.0.1",
|
|
"publisher": "vscode-samples",
|
|
"engines": {
|
|
"vscode": "^1.17.0"
|
|
},
|
|
"categories": [
|
|
"Other"
|
|
],
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"main": "./out/src/extension",
|
|
"keywords": [
|
|
"multi-root ready"
|
|
],
|
|
"contributes": {
|
|
"configuration": [
|
|
{
|
|
"title": "Configuration Samples",
|
|
"properties": {
|
|
"conf.view.showOnWindowOpen": {
|
|
"type": "string",
|
|
"enum": [
|
|
"explorer",
|
|
"search",
|
|
"scm",
|
|
"debug",
|
|
"extensions"
|
|
],
|
|
"default": "explorer",
|
|
"description": "Window configuration: View to show always when a window opens",
|
|
"scope": "window"
|
|
},
|
|
"conf.resource.insertEmptyLastLine": {
|
|
"type": "object",
|
|
"default": {},
|
|
"description": "Resource configurtion: Configure files using glob patterns to have an empty last line always",
|
|
"scope": "resource"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"commands": [
|
|
{
|
|
"category": "Configuration Sample",
|
|
"command": "config.commands.configureViewOnWindowOpen",
|
|
"title": "Configure view to show on window open"
|
|
},
|
|
{
|
|
"category": "Configuration Sample",
|
|
"command": "config.commands.configureEmptyLastLineCurrentFile",
|
|
"title": "Configure empty last line for current file"
|
|
},
|
|
{
|
|
"category": "Configuration Sample",
|
|
"command": "config.commands.configureEmptyLastLineFiles",
|
|
"title": "Configure empty last line for files"
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "tsc -p ./",
|
|
"watch": "tsc -watch -p ./",
|
|
"postinstall": "node ./node_modules/vscode/bin/install"
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^2.1.4",
|
|
"vscode": "^1.1.17",
|
|
"@types/node": "*"
|
|
}
|
|
}
|