Skip to content

Commit

Permalink
refactor index refs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewNolte committed Sep 11, 2024
1 parent 3c56c78 commit f667f64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IndexComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class IndexComponent extends ExtensionComponent {
}

async findModule(moduleName: string): Promise<VerilogDoc | undefined> {
let vscodeDoc = await ext.index.findFile(moduleName)
let vscodeDoc = await this.findFile(moduleName)
if (vscodeDoc === undefined) {
return undefined
}
Expand Down Expand Up @@ -286,7 +286,7 @@ export class IndexComponent extends ExtensionComponent {
return this.symbolMap.get(targetText) ?? []
}

if (ext.index.moduleMap.has(targetText) || ext.index.moduleMap.has(parentScope)) {
if (this.moduleMap.has(targetText) || this.moduleMap.has(parentScope)) {
// find parentScope.sv of parentScope::targetText
let sym = (await this.findDefinitionByName(parentScope, targetText)).at(0)
// Sometimes package::x is found multiple times, return just the top level package
Expand Down

0 comments on commit f667f64

Please sign in to comment.