Просмотр исходного кода

*facepalm* messing with some old code.

Thanks windows for taking the way no ones does...
master
Ad5001 2 лет назад
Родитель
Сommit
0d1b9ffc31
2 измененных файлов: 2 добавлений и 2 удалений
  1. 1
    1
      out/src/extension.js
  2. 1
    1
      out/src/phpCompletionItem.js

+ 1
- 1
out/src/extension.js Просмотреть файл

@@ -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 Просмотреть файл

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

Загрузка…
Отмена
Сохранить