@@ -64,8 +64,8 @@ export const MethodRow = ({
6464 const target = e . target as HTMLSelectElement ;
6565
6666 onChange ( externalApiUsage , {
67- // If there are no arguments, we will default to "this", which is Argument[-1]
68- input : argumentsList . length === 0 ? "Argument[-1 ]" : "Argument[0]" ,
67+ // If there are no arguments, we will default to "Argument[this]"
68+ input : argumentsList . length === 0 ? "Argument[this ]" : "Argument[0]" ,
6969 output : "ReturnType" ,
7070 kind : "value" ,
7171 ...modeledMethod ,
@@ -167,9 +167,7 @@ export const MethodRow = ({
167167 { modeledMethod ?. type &&
168168 [ "sink" , "summary" ] . includes ( modeledMethod ?. type ) && (
169169 < Dropdown value = { modeledMethod ?. input } onInput = { handleInputInput } >
170- < VSCodeOption value = "Argument[-1]" >
171- Argument[-1]: this
172- </ VSCodeOption >
170+ < VSCodeOption value = "Argument[this]" > Argument[this]</ VSCodeOption >
173171 { argumentsList . map ( ( argument , index ) => (
174172 < VSCodeOption key = { argument } value = { `Argument[${ index } ]` } >
175173 Argument[{ index } ]: { argument }
@@ -183,9 +181,7 @@ export const MethodRow = ({
183181 [ "source" , "summary" ] . includes ( modeledMethod ?. type ) && (
184182 < Dropdown value = { modeledMethod ?. output } onInput = { handleOutputInput } >
185183 < VSCodeOption value = "ReturnValue" > ReturnValue</ VSCodeOption >
186- < VSCodeOption value = "Argument[-1]" >
187- Argument[-1]: this
188- </ VSCodeOption >
184+ < VSCodeOption value = "Argument[this]" > Argument[this]</ VSCodeOption >
189185 { argumentsList . map ( ( argument , index ) => (
190186 < VSCodeOption key = { argument } value = { `Argument[${ index } ]` } >
191187 Argument[{ index } ]: { argument }
0 commit comments