Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Comment the code that is waiting for go-outline update
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Oct 6, 2016
1 parent b724179 commit 860ba1a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/goOutline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ export function documentSymbols(filename: string, importsOnly: boolean = false):
if (err && (<any>err).code === 'ENOENT') {
promptForMissingTool('go-outline');
}
if (stderr && stderr.startsWith('flag provided but not defined: -imports-only')) {
documentSymbols(filename).then(results => {
return resolve(results);
});
promptForUpgradingTool('go-outline');
return;
}
// Uncomment the below once https://github.com/lukehoban/go-outline/pull/4 is merged
// if (stderr && stderr.startsWith('flag provided but not defined: -imports-only')) {
// documentSymbols(filename).then(results => {
// return resolve(results);
// });
// promptForUpgradingTool('go-outline');
// return;
// }
if (err) return resolve(null);
let result = stdout.toString();
let decls = <GoOutlineDeclaration[]>JSON.parse(result);
Expand Down

0 comments on commit 860ba1a

Please sign in to comment.