zabel-xyz / plsql-language

plsql-language for vscode
MIT License
78 stars 29 forks source link

Package member suggestions does't work if package name is in same line as keyword #48

Closed MadeManMax closed 6 years ago

MadeManMax commented 6 years ago

Hi @zabel-xyz, I've noticed that package member suggestions does't work if package name is in same line as keyword

This one doesn't work: obraz

This one works: obraz

MyPackage1 package body

create or replace package body
MyPackage1
as

function get_myValue(param1 in varchar2)
    return varchar2
  is
  begin
    MyPackage12. -- here works
    RETURN MyPackage12. -- here doesn't work
    return param1 || ' TEST';
  end get_myValue;
end MyPackage1;

MyPackage12 package spec

create or replace package
MyPackage12
as
function get_myValue1111111111111111111
(param1 in varchar2
) return varchar2;

function get_myValue(param1 in varchar2)
    return varchar2;
end MyPackage12;

MyPackage12 package body

create or replace package body
MyPackage12
as
function get_myValue1111111111111111111
(param1 in varchar2
) return varchar2;

function get_myValue(param1 in varchar2)
    return varchar2
  is
    x2 VARCHAR2(2000);
    x3 VARCHAR2(2000);
  begin
    if 1 =0 then
        null;
    end if;

    x2 := MyPackage2.get_myValue2(param1 => param1);
    x3 := MyPackage3.get_myValue3(param1 => param1);
    return param1 || ' TEST';
  end get_myValue;

end MyPackage12;
zabel-xyz commented 6 years ago

Fix in version 1.3.4

MadeManMax commented 6 years ago

Thank you