Browse Source

*facepalm* messing with some old code.

Thanks windows for taking the way no ones does...
master
Ad5001 2 years ago
parent
commit
0d1b9ffc31
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      out/src/extension.js
  2. 1
    1
      out/src/phpCompletionItem.js

+ 1
- 1
out/src/extension.js View File

@@ -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) {

+ 1
- 1
out/src/phpCompletionItem.js View File

@@ -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) {

Loading…
Cancel
Save