Skip to content

Commit

Permalink
feat: add auto name derive for use (useful for react & composition-…
Browse files Browse the repository at this point in the history
…api)
  • Loading branch information
zardoy committed Apr 11, 2022
1 parent 6557bd6 commit dee9cb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/tweakTsSuggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const expressionParsers: Array<(expr: string) => string | void> = [
expr => {
const dotIndex = expr.indexOf('.')
if (dotIndex !== -1) expr = expr.slice(dotIndex + 1)
const match = /(get|read|create|retrieve|modify|update)(.+)\(/.exec(expr)?.[1]
const match = /(get|read|create|retrieve|modify|update|use)(.+)\(/.exec(expr)?.[1]
if (!match) return
return match[0]!.toLowerCase() + match.slice(1)
},
Expand Down

0 comments on commit dee9cb2

Please sign in to comment.