padawan-php / padawan.php

php intelligent code completion http server
http://mkusher.name/padawan/
MIT License
253 stars 30 forks source link

Exclude test files from indexing. #87

Closed halftan closed 7 years ago

halftan commented 7 years ago

May put this into command line argument, but now just use a default one.

mkusher commented 7 years ago

but it still needs to be fixed here https://github.com/padawan-php/padawan.php/pull/54

halftan commented 7 years ago

yes, I'm working on it. And also some code to make sure that cached index is used while the editing file has semantic errors.

Scenario: Given file:

<?php
function test_function_one() {
    return new Class();
}

function test_function() {
    if (test_function_one()->{complete here}
}

And indexed file:

<?php
function test_function_one() {
    return new Class();
}

function test_function() {
}