*facepalm* messing with some old code.

Thanks windows for taking the way no ones does...
Este commit está contenido en:
Ad5001 2017-11-16 22:42:58 +01:00
padre 17ac671153
commit 0d1b9ffc31
Se han modificado 2 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -51,7 +51,7 @@ function activate(context) {
// Check what files the current document includes/requires
var currentFileName = document.uri.fsPath.replace(vscode.workspace.rootPath, '').slice(1);
var currentPath = document.uri.fsPath.replace(vscode.workspace.rootPath, '').replace("src/", "");
var currentPath = document.uri.fsPath.replace(vscode.workspace.rootPath, '').replace("src", "").replace("//", "/").replace("\\\\", "\\");
// Look through all included/required files for the current document
for (var f in Indexer.phpFileFunctions) {

Ver fichero

@ -256,7 +256,7 @@ exports.Indexer = {
}
libraryResult.forEach(function(path) {
if (fs.existsSync(path)) {
var fileName = path.replace(vscode.workspace.rootPath, "").replace(vscode.workspace.getConfiguration('php')['pocketMinePath'], "").replace("src", "").replace("//", "/");
var fileName = path.replace(vscode.workspace.rootPath, "").replace(vscode.workspace.getConfiguration('php')['pocketMinePath'], "").replace("src", "").replace("//", "/").replace("\\\\", "\\");
// Creating the default properties
var fileProperties = ["phpFileFunctions", "phpFileStaticFunctions", "phpFileUses", "phpFileProperties"];
fileProperties.forEach(function(func) {