diff --git a/package.json b/package.json index 9ab6bbb..bf40ae9 100644 --- a/package.json +++ b/package.json @@ -112,9 +112,9 @@ ] }, "devDependencies": { - "@types/node": "7.0.43", + "@types/node": "^18.14.5", "@types/vscode": "^1.22.0", - "typescript": "^3.2.2", + "typescript": "^4.9.5", "vscode-languageserver-types": "^3.6.0" }, "dependencies": { diff --git a/src/cache.ts b/src/cache.ts index bc88983..0a1c5f3 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -32,7 +32,7 @@ export class CompletionsCache { public updateCached( context: TextDocument, position: Position, - completions: CompletionList + completions: any ) { this._cachedCompletionsFile = context.fileName this._cachedCompletionsPosition = position diff --git a/src/providers/css.ts b/src/providers/css.ts index 499e6f6..050ca98 100644 --- a/src/providers/css.ts +++ b/src/providers/css.ts @@ -113,7 +113,7 @@ export class HTMLStyleCompletionItemProvider implements CompletionItemProvider { completions.isIncomplete = true } - this._cache.updateCached(document, position, completions as CompletionList) + this._cache.updateCached(document, position, completions) return { isIncomplete: completions.isIncomplete, @@ -201,7 +201,7 @@ export class CSSCompletionItemProvider implements CompletionItemProvider { completions.isIncomplete = true } - this._cache.updateCached(document, position, completions as CompletionList) + this._cache.updateCached(document, position, completions) return { isIncomplete: completions.isIncomplete, diff --git a/src/providers/html.ts b/src/providers/html.ts index b7d781c..a145758 100644 --- a/src/providers/html.ts +++ b/src/providers/html.ts @@ -94,7 +94,7 @@ export class HTMLCompletionItemProvider implements CompletionItemProvider { completions.isIncomplete = true } - this._cache.updateCached(document, position, completions as CompletionList) + this._cache.updateCached(document, position, completions) return { isIncomplete: completions.isIncomplete,