Merge 7453e19acc
into 83846ffa0b
commit
9afe338d7d
70
package.json
70
package.json
|
@ -37,6 +37,52 @@
|
||||||
"onLanguage:php",
|
"onLanguage:php",
|
||||||
"workspaceContains:**/*.php"
|
"workspaceContains:**/*.php"
|
||||||
],
|
],
|
||||||
|
"contributes": {
|
||||||
|
"configuration": {
|
||||||
|
"type": "object",
|
||||||
|
"title": "PHP IntelliSense",
|
||||||
|
"properties": {
|
||||||
|
"php.memoryLimit": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "4095M",
|
||||||
|
"description": "The memory limit of the php language server. [Number][K|M|G]. Use '-1' to allow unlimited use of the RAM (default is 4G).",
|
||||||
|
"pattern": "^\\d+[KMG]?$"
|
||||||
|
},
|
||||||
|
"php.executablePath": {
|
||||||
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"default": null,
|
||||||
|
"description": "The path to a PHP 7+ executable."
|
||||||
|
},
|
||||||
|
"php.fileTypes": {
|
||||||
|
"type": [
|
||||||
|
"array"
|
||||||
|
],
|
||||||
|
"default": [
|
||||||
|
".php"
|
||||||
|
],
|
||||||
|
"description": "List of file types that should be indexed by the php language server. (Restart required)"
|
||||||
|
},
|
||||||
|
"php.fileSizeLimit": {
|
||||||
|
"type": [
|
||||||
|
"string"
|
||||||
|
],
|
||||||
|
"default": "150K",
|
||||||
|
"description": "The file size limit of the php language server. [Number][K|M|G]. Use '-1' to allow unlimited file size. (Restart required)",
|
||||||
|
"pattern": "^\\d+[KMG]?$"
|
||||||
|
},
|
||||||
|
"php.excludeFiles": {
|
||||||
|
"type": [
|
||||||
|
"array"
|
||||||
|
],
|
||||||
|
"default": [],
|
||||||
|
"description": "Files and folders that should be excluded from indexing. (Restart required)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"main": "./out/extension",
|
"main": "./out/extension",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc -p .",
|
"build": "tsc -p .",
|
||||||
|
@ -63,7 +109,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mz": "^2.4.0",
|
"mz": "^2.4.0",
|
||||||
"semver": "^5.3.0",
|
"semver": "^5.3.0",
|
||||||
"vscode-languageclient": "^3.0.3"
|
"vscode-languageclient": "^3.5.1"
|
||||||
},
|
},
|
||||||
"commitlint": {
|
"commitlint": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
@ -86,27 +132,5 @@
|
||||||
"assets": "php-intellisense.vsix"
|
"assets": "php-intellisense.vsix"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"contributes": {
|
|
||||||
"configuration": {
|
|
||||||
"type": "object",
|
|
||||||
"title": "PHP IntelliSense",
|
|
||||||
"properties": {
|
|
||||||
"php.memoryLimit": {
|
|
||||||
"type": "string",
|
|
||||||
"default": "4095M",
|
|
||||||
"description": "The memory limit of the php language server. [Number][K|M|G]. Use '-1' to allow unlimited use of the RAM (default is 4G).",
|
|
||||||
"pattern": "^\\d+[KMG]?$"
|
|
||||||
},
|
|
||||||
"php.executablePath": {
|
|
||||||
"type": [
|
|
||||||
"string",
|
|
||||||
"null"
|
|
||||||
],
|
|
||||||
"default": null,
|
|
||||||
"description": "The path to a PHP 7+ executable."
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
|
||||||
configurationSection: 'php',
|
configurationSection: 'php',
|
||||||
// Notify the server about changes to PHP files in the workspace
|
// Notify the server about changes to PHP files in the workspace
|
||||||
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.php')
|
fileEvents: vscode.workspace.createFileSystemWatcher('**/*.php')
|
||||||
}
|
},
|
||||||
|
initializationOptions: conf
|
||||||
};
|
};
|
||||||
|
|
||||||
// Create the language client and start the client.
|
// Create the language client and start the client.
|
||||||
|
|
Loading…
Reference in New Issue