master
yutent 2023-03-03 19:17:20 +08:00
parent e3be6889ac
commit 7646e323bc
4 changed files with 6 additions and 6 deletions

View File

@ -112,9 +112,9 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@types/node": "7.0.43", "@types/node": "^18.14.5",
"@types/vscode": "^1.22.0", "@types/vscode": "^1.22.0",
"typescript": "^3.2.2", "typescript": "^4.9.5",
"vscode-languageserver-types": "^3.6.0" "vscode-languageserver-types": "^3.6.0"
}, },
"dependencies": { "dependencies": {

View File

@ -32,7 +32,7 @@ export class CompletionsCache {
public updateCached( public updateCached(
context: TextDocument, context: TextDocument,
position: Position, position: Position,
completions: CompletionList completions: any
) { ) {
this._cachedCompletionsFile = context.fileName this._cachedCompletionsFile = context.fileName
this._cachedCompletionsPosition = position this._cachedCompletionsPosition = position

View File

@ -113,7 +113,7 @@ export class HTMLStyleCompletionItemProvider implements CompletionItemProvider {
completions.isIncomplete = true completions.isIncomplete = true
} }
this._cache.updateCached(document, position, completions as CompletionList) this._cache.updateCached(document, position, completions)
return { return {
isIncomplete: completions.isIncomplete, isIncomplete: completions.isIncomplete,
@ -201,7 +201,7 @@ export class CSSCompletionItemProvider implements CompletionItemProvider {
completions.isIncomplete = true completions.isIncomplete = true
} }
this._cache.updateCached(document, position, completions as CompletionList) this._cache.updateCached(document, position, completions)
return { return {
isIncomplete: completions.isIncomplete, isIncomplete: completions.isIncomplete,

View File

@ -94,7 +94,7 @@ export class HTMLCompletionItemProvider implements CompletionItemProvider {
completions.isIncomplete = true completions.isIncomplete = true
} }
this._cache.updateCached(document, position, completions as CompletionList) this._cache.updateCached(document, position, completions)
return { return {
isIncomplete: completions.isIncomplete, isIncomplete: completions.isIncomplete,