@@ -66,8 +66,6 @@ export function asCompletionList(
6666 } ;
6767}
6868
69- export type RangeReplace = { insert : monaco . IRange ; replace : monaco . IRange } ;
70-
7169export function asCompletionResult (
7270 result : lst . CompletionItem [ ] | null | undefined ,
7371) : monaco . languages . CompletionList {
@@ -85,9 +83,10 @@ export function asCompletionResult(
8583 suggestions,
8684 } ;
8785}
86+
8887export function asCompletionItem (
8988 item : lst . CompletionItem ,
90- defaultRange ? : monaco . IRange ,
89+ defaultRange : monaco . IRange | undefined ,
9190 insertTextReplaceRange ?: monaco . IRange ,
9291) : monaco . languages . CompletionItem {
9392 const textEdit = item . textEdit ;
@@ -96,7 +95,7 @@ export function asCompletionItem(
9695 ? asRange ( textEdit . range )
9796 : textEdit && "insert" in textEdit
9897 ? asRange ( textEdit . insert )
99- : // biome-ignore lint/style/noNonNullAssertion: :shrug:
98+ : // biome-ignore lint/style/noNonNullAssertion: :shrug: #119
10099 insertTextReplaceRange || defaultRange ! ;
101100
102101 const documentation = asDocumentation ( item . documentation ) ;
0 commit comments