0.0.2
This commit is contained in:
parent
158cef5d3d
commit
1c06163b28
3 changed files with 75 additions and 71 deletions
|
@ -21,6 +21,12 @@ This will include and parse the new library
|
|||
None so far
|
||||
|
||||
## Release Notes
|
||||
|
||||
## 0.0.2
|
||||
|
||||
Fixing compatibility bug with original extension.
|
||||
|
||||
|
||||
## 0.0.1
|
||||
|
||||
Initial release.
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// The module 'vscode' contains the VS Code extensibility API
|
||||
// Import the module and reference it with the alias vscode in your code below
|
||||
const vscode = require('vscode');
|
||||
const phpMode_1 = require('./phpMode');
|
||||
const phpFunctionSuggestions_1 = require('./phpFunctionSuggestions');
|
||||
exports.phpFileFunctions = {};
|
||||
exports.phpFileStaticFunctions = {};
|
||||
|
@ -19,7 +18,7 @@ function activate(context) {
|
|||
indexPhpFiles();
|
||||
});
|
||||
// Setup our class as a compvarion item provider for function autocompvare
|
||||
context.subscriptions.push(vscode.languages.registerCompletionItemProvider(phpMode_1.PHP_MODE, {
|
||||
context.subscriptions.push(vscode.languages.registerCompletionItemProvider(exports.PHP_MODE, {
|
||||
provideCompletionItems(document, position, token) {
|
||||
var filename = document.fileName;
|
||||
var lineText = document.lineAt(position.line).text;
|
||||
|
@ -131,7 +130,7 @@ function activate(context) {
|
|||
}
|
||||
}));
|
||||
// Setup our plugin to help with function signatures
|
||||
context.subscriptions.push(vscode.languages.registerSignatureHelpProvider(phpMode_1.PHP_MODE, new phpFunctionSuggestions_1.PhpSignatureHelpProvider(vscode.workspace.getConfiguration('php')['docsTool']), '(', ','));
|
||||
context.subscriptions.push(vscode.languages.registerSignatureHelpProvider(exports.PHP_MODE, new phpFunctionSuggestions_1.PhpSignatureHelpProvider(vscode.workspace.getConfiguration('php')['docsTool']), '(', ','));
|
||||
// The command has been defined in the package.json file
|
||||
// Now provide the implementation of the command with registerCommand
|
||||
// The commandId parameter must match the command field in package.json
|
||||
|
|
135
package.json
135
package.json
|
@ -1,70 +1,69 @@
|
|||
{
|
||||
"name": "pocketmine-ide",
|
||||
"displayName": "PocketMine IDE",
|
||||
"description": "Implementation of external PocketMine/PHP libs",
|
||||
"version": "0.0.1",
|
||||
"publisher": "Ad5001",
|
||||
"homepage": "https://github.com/Ad5001/PocketMine-IDE",
|
||||
"keywords": [
|
||||
"PocketMine",
|
||||
"IDE",
|
||||
"PHP",
|
||||
"Lib"
|
||||
],
|
||||
"icon": "icon.png",
|
||||
"author": {
|
||||
"name": "Ad5001",
|
||||
"email": "mail@ad5001.eu",
|
||||
"url": "https://en.ad5001.eu"
|
||||
},
|
||||
"license": "https://raw.githubusercontent.com/BoxOfDevs/Functions/master/LICENSE",
|
||||
"engines": {
|
||||
"vscode": "^1.5.0"
|
||||
},
|
||||
"categories": [
|
||||
"Other"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onCommand:pmide.indexPhpFiles",
|
||||
"onCommand:pmide.printPhpFiles",
|
||||
"onLanguage:php"
|
||||
],
|
||||
"main": "./out/src/extension",
|
||||
"contributes": {
|
||||
"commands": [{
|
||||
"command": "pmide.indexPhpFiles",
|
||||
"title": "PocketMine IDE - Index PHP Files"
|
||||
},
|
||||
{
|
||||
"command": "pmide.printPhpFiles",
|
||||
"title": "PocketMine IDE - Print PHP Files"
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"properties": {
|
||||
"php.pocketMinePath": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"description": "The pocketmine/library you want to use path"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"vscode:prepublish": "tsc -p ./",
|
||||
"compile": "tsc -watch -p ./",
|
||||
"postinstall": "node ./node_modules/vscode/bin/install"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^2.0.3",
|
||||
"vscode": "^1.0.0",
|
||||
"mocha": "^2.3.3",
|
||||
"@types/node": "^6.0.40",
|
||||
"@types/mocha": "^2.2.32"
|
||||
},
|
||||
"__metadata": {
|
||||
"id": "f6b4e2a7-5b92-41a1-870a-78abef140e5c",
|
||||
"publisherId": "96452d5f-7333-47a6-9960-9cf179d6f173",
|
||||
"publisherDisplayName": "Ad5001"
|
||||
}
|
||||
"name": "pocketmine-ide",
|
||||
"displayName": "PocketMine IDE",
|
||||
"description": "Implementation of external PocketMine/PHP libs for Visual Studio Code",
|
||||
"version": "0.0.2",
|
||||
"publisher": "Ad5001",
|
||||
"homepage": "https://github.com/Ad5001/PocketMine-IDE",
|
||||
"keywords": [
|
||||
"PocketMine",
|
||||
"IDE",
|
||||
"PHP",
|
||||
"Lib"
|
||||
],
|
||||
"icon": "icon.png",
|
||||
"author": {
|
||||
"name": "Ad5001",
|
||||
"email": "mail@ad5001.eu",
|
||||
"url": "https://en.ad5001.eu"
|
||||
},
|
||||
"license": "https://raw.githubusercontent.com/BoxOfDevs/Functions/master/LICENSE",
|
||||
"engines": {
|
||||
"vscode": "^1.5.0"
|
||||
},
|
||||
"categories": [
|
||||
"Other"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onCommand:pmide.indexPhpFiles",
|
||||
"onCommand:pmide.printPhpFiles",
|
||||
"onLanguage:php"
|
||||
],
|
||||
"main": "./out/src/extension",
|
||||
"contributes": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "pmide.indexPhpFiles",
|
||||
"title": "PocketMine IDE - Index PHP Files"
|
||||
},
|
||||
{
|
||||
"command": "pmide.printPhpFiles",
|
||||
"title": "PocketMine IDE - Print PHP Files"
|
||||
}
|
||||
],
|
||||
"configuration": {
|
||||
"properties": {
|
||||
"php.pocketMinePath": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"description": "The pocketmine/library you want to use path"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node ./node_modules/vscode/bin/install"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^2.0.3",
|
||||
"vscode": "^1.0.0",
|
||||
"mocha": "^2.3.3",
|
||||
"@types/node": "^6.0.40",
|
||||
"@types/mocha": "^2.2.32"
|
||||
},
|
||||
"__metadata": {
|
||||
"id": "2282a6db-6533-4359-8697-10ccdd4a97de",
|
||||
"publisherId": "96452d5f-7333-47a6-9960-9cf179d6f173",
|
||||
"publisherDisplayName": "Ad5001"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue