mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
debt: remove any casts (#270074)
This commit is contained in:
@@ -171,7 +171,7 @@ function refreshCompletionProviders(_: vscode.ExtensionContext) {
|
||||
return undefined;
|
||||
}
|
||||
const item = items.items[0];
|
||||
if (!item) {
|
||||
if (!item || !item.insertText) {
|
||||
return undefined;
|
||||
}
|
||||
const range = item.range as vscode.Range;
|
||||
@@ -184,10 +184,8 @@ function refreshCompletionProviders(_: vscode.ExtensionContext) {
|
||||
|
||||
return [
|
||||
{
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
insertText: item.insertText as any,
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
filterText: item.label as any,
|
||||
insertText: item.insertText,
|
||||
filterText: item.label,
|
||||
range
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user