From 1c06163b280de5971082749b94a2c589dcc48001 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 1 May 2017 10:32:28 +0200 Subject: [PATCH] 0.0.2 --- README.md | 6 ++ out/src/extension.js | 5 +- package.json | 135 +++++++++++++++++++++---------------------- 3 files changed, 75 insertions(+), 71 deletions(-) diff --git a/README.md b/README.md index aeae11f..919c564 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/out/src/extension.js b/out/src/extension.js index 416be66..9debf63 100644 --- a/out/src/extension.js +++ b/out/src/extension.js @@ -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 diff --git a/package.json b/package.json index c040f35..1198951 100644 --- a/package.json +++ b/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" + } } \ No newline at end of file