{ "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.32.0" }, "categories": [ "Other" ], "activationEvents": [ "onCommand:config.commands.configureViewOnWindowOpen", "onCommand:config.commands.configureEmptyLastLineCurrentFile", "onCommand:config.commands.configureEmptyLastLineFiles" ], "main": "./out/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 configuration: Configure files using glob patterns to have an empty last line always", "scope": "resource" }, "conf.language.showSize": { "type": "boolean", "default": false, "description": "Shows the size of the document", "scope": "language-overridable" } } } ], "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" }, { "category": "Configuration Sample", "command": "config.commands.overrideLanguageValue", "title": "Configure show size for language" } ] }, "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./", "lint": "eslint . --ext .ts,.tsx", "watch": "tsc -watch -p ./" }, "devDependencies": { "@types/node": "^12.12.0", "@types/vscode": "^1.40.0", "@typescript-eslint/eslint-plugin": "^4.16.0", "@typescript-eslint/parser": "^4.16.0", "eslint": "^7.21.0", "typescript": "^4.2.2" } }