From 7646e323bc717a67892c6c93ec92f11244bc28fd Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 3 Mar 2023 19:17:20 +0800 Subject: [PATCH] fixed --- package.json | 4 ++-- src/cache.ts | 2 +- src/providers/css.ts | 4 ++-- src/providers/html.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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,