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

Commit

Permalink
Ensure Add Import feature responds ASAP Fixes #1450
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 1, 2018
1 parent 2075d98 commit c0b06c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const missingToolMsg = 'Missing tool: ';

export function listPackages(excludeImportedPkgs: boolean = false): Thenable<string[]> {
let importsPromise = excludeImportedPkgs && vscode.window.activeTextEditor ? getImports(vscode.window.activeTextEditor.document) : Promise.resolve([]);
let pkgsPromise = getImportablePackages(vscode.window.activeTextEditor.document.fileName);
let pkgsPromise = getImportablePackages(vscode.window.activeTextEditor.document.fileName, true);

return Promise.all([pkgsPromise, importsPromise]).then(([pkgMap, importedPkgs]) => {
importedPkgs.forEach(pkg => {
Expand Down

0 comments on commit c0b06c8

Please sign in to comment.