Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #145 from zzzz465/fix/default-version
Browse files Browse the repository at this point in the history
fix: default typeInfo not extracted
  • Loading branch information
zzzz465 authored Oct 12, 2022
2 parents 2067694 + fd741cc commit ab29d56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vsc-extension/src/resources/cachedTypeInfoProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export class CachedTypeInfoProvider implements Provider {
transports: [log],
})

private static readonly extractorVersion = new semver.SemVer('0.7.0')
// TODO: move this line to extractor.
private static readonly extractorVersion = new semver.SemVer('0.8.0')

get dllCacheDirectory(): string {
return path.join(this.pathStore.cacheDirectory, 'dlls')
Expand Down
4 changes: 4 additions & 0 deletions vsc-extension/src/resources/typeInfoProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ export class TypeInfoProvider implements Provider {

async checkCoreDLLVersion(DLLPath: string, version: semver.SemVer): Promise<boolean> {
this.log.debug('checking Core DLL version...')
if (version.compare(TypeInfoProvider.defaultVersion) === 0) {
this.log.debug('version is default. skipping check.')
return true
}

const fileVersionOrErr = await this.getCoreDLLVersion(DLLPath)
if (fileVersionOrErr instanceof Error) {
Expand Down

0 comments on commit ab29d56

Please sign in to comment.