Skip to content

Commit a988bd1

Browse files
author
Christoph Bühler
committed
style: comment out delta index
1 parent 6dcb25f commit a988bd1

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/DeclarationIndex.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ function getNodeLibraryName(path: string): string {
3434
*/
3535
type Resources = { [name: string]: Resource };
3636

37-
export type DeltaIndex = {
38-
deleted: string[];
39-
updated: { [declaration: string]: DeclarationInfo[] };
40-
};
37+
// export type DeltaIndex = {
38+
// deleted: string[];
39+
// updated: { [declaration: string]: DeclarationInfo[] };
40+
// };
4141

4242
/**
4343
* Interface for file changes. Contains lists of file uri's to the specific action.
@@ -165,7 +165,7 @@ export class DeclarationIndex {
165165
*
166166
* @memberof DeclarationIndex
167167
*/
168-
public async reindexForChanges(changes: FileChanges): Promise<DeltaIndex> {
168+
public async reindexForChanges(changes: FileChanges): Promise<void> {
169169
const rebuildResources: string[] = [];
170170
const removeResources: string[] = [];
171171
const rebuildFiles: string[] = [];
@@ -213,11 +213,10 @@ export class DeclarationIndex {
213213
this.parsedResources[key] = resources[key];
214214
}
215215
this._index = await this.createIndex(this.parsedResources);
216-
217-
return {
218-
deleted: removeResources,
219-
updated: await this.createIndex(resources),
220-
};
216+
// return {
217+
// deleted: removeResources,
218+
// updated: await this.createIndex(resources),
219+
// };
221220
}
222221

223222
/**

0 commit comments

Comments
 (0)