*facepalm* messing with some old code.

Thanks windows for taking the way no ones does...
This commit is contained in:
Ad5001 2017-11-16 22:42:58 +01:00
parent 17ac671153
commit 0d1b9ffc31
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -256,7 +256,7 @@ exports.Indexer = {
} }
libraryResult.forEach(function(path) { libraryResult.forEach(function(path) {
if (fs.existsSync(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 // Creating the default properties
var fileProperties = ["phpFileFunctions", "phpFileStaticFunctions", "phpFileUses", "phpFileProperties"]; var fileProperties = ["phpFileFunctions", "phpFileStaticFunctions", "phpFileUses", "phpFileProperties"];
fileProperties.forEach(function(func) { fileProperties.forEach(function(func) {