Add support for intellisense imports for the vscode extension
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm
2021-01-15 02:32:51 +01:00
parent 6bc090e51b
commit 9dfb8d65d3
7 changed files with 134 additions and 13 deletions

View File

@ -99,7 +99,7 @@ export function getAbsolutePackageVersion(
const versions = pkg.versions.sort(sortVersions).reverse();
if (!version) {
if (!version || version === "latest") {
version = versions[0];
} else {
const v = versions.filter((e) => e.startsWith(version as string));