fixed
parent
e3be6889ac
commit
7646e323bc
|
@ -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": {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue