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