Skip to content

Commit

Permalink
Fixing stdio bug and bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
bscan committed Jul 10, 2023
1 parent 95de630 commit 9279d1d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Code navigation, autocompletion, syntax checking, and linting for Perl",
"author": "bscan",
"license": "MIT",
"version": "0.5.9",
"version": "0.6.0",
"icon": "images/camel_icon.png",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "perlnavigator-server",
"description": "Perl language server",
"version": "0.5.9",
"version": "0.6.0",
"author": "bscan",
"license": "MIT",
"engines": {
Expand Down
3 changes: 0 additions & 3 deletions server/src/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function resolveElemForNav (perlDoc: PerlDocument, elem: PerlElem, symbol: strin

if(elem.file && !badFile(elem.file)){

console.log(`Looking up: ${elem.file} AND ${perlDoc.filePath} and ${symbol} AND ${elem.type} and ${elem.line}`);
if(perlDoc.filePath == elem.file && symbol.includes('->')){
// Corinna methods don't have line numbers. Let's hunt for them. If you dont find anything better, just return the original element.
const method = symbol.split('->').pop();
Expand Down Expand Up @@ -89,10 +88,8 @@ function resolveElemForNav (perlDoc: PerlDocument, elem: PerlElem, symbol: strin
} else{
// Try looking it up by package instead of file.
// Happens with XS subs and Moo subs
console.log(`Do I have a package: ${elem.package}`);
if(elem.package){
const elemResolved = perlDoc.elems.get(elem.package);
console.log(`Found package: ${elem.package}`);
if(elemResolved){
for (let potentialElem of elemResolved) {
if(potentialElem.file && !badFile(potentialElem.file)){
Expand Down

0 comments on commit 9279d1d

Please sign in to comment.