mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 12:47:14 +00:00
241 lines
6.9 KiB
JSON
241 lines
6.9 KiB
JSON
{
|
|
"name": "typescript",
|
|
"description": "Extension to add Typescript capabilities to VSCode.",
|
|
"displayName": "TypeScript support for VSCode",
|
|
"version": "0.10.1",
|
|
"author": "Microsoft Corporation",
|
|
"license": "MIT",
|
|
"publisher": "vscode",
|
|
"aiKey":"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
|
|
"engines": {
|
|
"vscode": "*"
|
|
},
|
|
"dependencies": {
|
|
"vscode-extension-telemetry": "^0.0.5",
|
|
"vscode-nls": "^1.0.4"
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:typescript ./tsconfig.json"
|
|
},
|
|
"activationEvents": [
|
|
"onLanguage:javascript",
|
|
"onLanguage:javascriptreact",
|
|
"onLanguage:typescript",
|
|
"onLanguage:typescriptreact",
|
|
"onCommand:typescript.reloadProjects",
|
|
"onCommand:javascript.reloadProjects"
|
|
],
|
|
"main": "./out/typescriptMain",
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "typescript",
|
|
"aliases": [
|
|
"TypeScript",
|
|
"ts",
|
|
"typescript"
|
|
],
|
|
"extensions": [
|
|
".ts"
|
|
]
|
|
},
|
|
{
|
|
"id": "typescriptreact",
|
|
"aliases": [
|
|
"TypeScript React",
|
|
"tsx"
|
|
],
|
|
"extensions": [
|
|
".tsx"
|
|
]
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "typescript",
|
|
"scopeName": "source.ts",
|
|
"path": "./syntaxes/TypeScript.tmLanguage"
|
|
},
|
|
{
|
|
"language": "typescriptreact",
|
|
"scopeName": "source.tsx",
|
|
"path": "./syntaxes/TypeScriptReact.tmLanguage"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "%configuration.typescript%",
|
|
"properties": {
|
|
"typescript.tsdk": {
|
|
"type": ["string", "null"],
|
|
"default": null,
|
|
"description": "%typescript.tsdk.desc%"
|
|
},
|
|
"typescript.useCodeSnippetsOnMethodSuggest": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%typescript.useCodeSnippetsOnMethodSuggest.dec%"
|
|
},
|
|
"typescript.validate.enable": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%typescript.validate.enable%"
|
|
},
|
|
"typescript.tsserver.trace": {
|
|
"type": "string",
|
|
"enum": ["off", "messages", "verbose"],
|
|
"default": "off",
|
|
"description": "%typescript.tsserver.trace%"
|
|
},
|
|
"typescript.format.insertSpaceAfterCommaDelimiter": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterCommaDelimiter%"
|
|
},
|
|
"typescript.format.insertSpaceAfterSemicolonInForStatements": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterSemicolonInForStatements%"
|
|
},
|
|
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceBeforeAndAfterBinaryOperators%"
|
|
},
|
|
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterKeywordsInControlFlowStatements%"
|
|
},
|
|
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterFunctionKeywordForAnonymousFunctions%"
|
|
},
|
|
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
|
|
},
|
|
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
|
|
},
|
|
"typescript.format.placeOpenBraceOnNewLineForFunctions": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.placeOpenBraceOnNewLineForFunctions%"
|
|
},
|
|
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
|
|
},
|
|
"javascript.validate.enable": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%javascript.validate.enable%"
|
|
},
|
|
"javascript.format.insertSpaceAfterCommaDelimiter": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterCommaDelimiter%"
|
|
},
|
|
"javascript.format.insertSpaceAfterSemicolonInForStatements": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterSemicolonInForStatements%"
|
|
},
|
|
"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceBeforeAndAfterBinaryOperators%"
|
|
},
|
|
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterKeywordsInControlFlowStatements%"
|
|
},
|
|
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%format.insertSpaceAfterFunctionKeywordForAnonymousFunctions%"
|
|
},
|
|
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis%"
|
|
},
|
|
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets%"
|
|
},
|
|
"javascript.format.placeOpenBraceOnNewLineForFunctions": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.placeOpenBraceOnNewLineForFunctions%"
|
|
},
|
|
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%format.placeOpenBraceOnNewLineForControlBlocks%"
|
|
}
|
|
}
|
|
},
|
|
"keybindings": {
|
|
"key": ".",
|
|
"command": "^acceptSelectedSuggestion",
|
|
"when": "editorTextFocus && suggestWidgetVisible && editorLangId == 'typescript' && suggestionSupportsAcceptOnKey"
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "typescript.reloadProjects",
|
|
"title": "%typescript.reloadProjects.title%"
|
|
},
|
|
{
|
|
"command": "javascript.reloadProjects",
|
|
"title": "%javascript.reloadProjects.title%"
|
|
}
|
|
],
|
|
"debuggers": [
|
|
{
|
|
"type": "node",
|
|
"enableBreakpointsFor": {
|
|
"languageIds": [
|
|
"typescript", "typescriptreact"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "extensionHost",
|
|
"enableBreakpointsFor": {
|
|
"languageIds": [
|
|
"typescript"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"snippets": [
|
|
{
|
|
"language": "typescript",
|
|
"path": "./snippets/typescript.json"
|
|
},
|
|
{
|
|
"language": "typescriptreact",
|
|
"path": "./snippets/typescriptreact.json"
|
|
}
|
|
],
|
|
"jsonValidation": [
|
|
{
|
|
"fileMatch": "tsconfig.json",
|
|
"url": "http://json.schemastore.org/tsconfig"
|
|
},
|
|
{
|
|
"fileMatch": "tsconfig.json",
|
|
"url": "./schemas/tsconfig.schema.json"
|
|
}
|
|
]
|
|
}
|
|
} |