mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Use @types/node in extensions (#19692)
Switches builtin extensions to use @types/node for node definitions. Fixes a few errors that show up as a result of updating to a more modern version of node.d.ts
This commit is contained in:
@@ -2,38 +2,59 @@
|
||||
"name": "php",
|
||||
"version": "0.1.0",
|
||||
"publisher": "vscode",
|
||||
"engines": { "vscode": "0.10.x" },
|
||||
"activationEvents": ["onLanguage:php"],
|
||||
"engines": {
|
||||
"vscode": "0.10.x"
|
||||
},
|
||||
"activationEvents": [
|
||||
"onLanguage:php"
|
||||
],
|
||||
"main": "./out/phpMain",
|
||||
"dependencies": {
|
||||
"vscode-nls": "^1.0.4"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [{
|
||||
"id": "php",
|
||||
"extensions": [ ".php", ".php4", ".php5", ".phtml", ".ctp" ],
|
||||
"aliases": [ "PHP", "php" ],
|
||||
"mimetypes": ["application/x-php"],
|
||||
"configuration": "./language-configuration.json"
|
||||
}],
|
||||
"grammars": [{
|
||||
"language": "php",
|
||||
"scopeName": "text.html.php",
|
||||
"path": "./syntaxes/php.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"text.html": "html",
|
||||
"source.php": "php",
|
||||
"source.sql": "sql",
|
||||
"text.xml": "xml",
|
||||
"source.js": "javascript",
|
||||
"source.json": "json",
|
||||
"source.css": "css"
|
||||
"languages": [
|
||||
{
|
||||
"id": "php",
|
||||
"extensions": [
|
||||
".php",
|
||||
".php4",
|
||||
".php5",
|
||||
".phtml",
|
||||
".ctp"
|
||||
],
|
||||
"aliases": [
|
||||
"PHP",
|
||||
"php"
|
||||
],
|
||||
"mimetypes": [
|
||||
"application/x-php"
|
||||
],
|
||||
"configuration": "./language-configuration.json"
|
||||
}
|
||||
}],
|
||||
"snippets": [{
|
||||
"language": "php",
|
||||
"path": "./snippets/php.json"
|
||||
}],
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "php",
|
||||
"scopeName": "text.html.php",
|
||||
"path": "./syntaxes/php.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"text.html": "html",
|
||||
"source.php": "php",
|
||||
"source.sql": "sql",
|
||||
"text.xml": "xml",
|
||||
"source.js": "javascript",
|
||||
"source.json": "json",
|
||||
"source.css": "css"
|
||||
}
|
||||
}
|
||||
],
|
||||
"snippets": [
|
||||
{
|
||||
"language": "php",
|
||||
"path": "./snippets/php.json"
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"title": "%configuration.title%",
|
||||
"type": "object",
|
||||
@@ -50,13 +71,19 @@
|
||||
"description": "%configuration.validate.enable%"
|
||||
},
|
||||
"php.validate.executablePath": {
|
||||
"type": ["string", "null"],
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
],
|
||||
"default": null,
|
||||
"description": "%configuration.validate.executablePath%"
|
||||
},
|
||||
"php.validate.run": {
|
||||
"type": "string",
|
||||
"enum": ["onSave", "onType"],
|
||||
"enum": [
|
||||
"onSave",
|
||||
"onType"
|
||||
],
|
||||
"default": "onSave",
|
||||
"description": "%configuration.validate.run%"
|
||||
}
|
||||
@@ -73,5 +100,8 @@
|
||||
"compile": "gulp compile-extension:php",
|
||||
"watch": "gulp watch-extension:php",
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js atom/language-php grammars/php.cson ./syntaxes/php.tmLanguage.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^7.0.4"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user