Skip to content

Commit 882396a

Browse files
committed
Add triggerReason to getApplicableRefactors invocation
Should help with refactors discoverability
1 parent 75b320d commit 882396a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/main/atom/commands/refactorCode.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ async function getApplicabeRefactors(
9191
pointOrRange: protocol.FileLocationOrRangeRequestArgs,
9292
) {
9393
try {
94-
return await client.execute("getApplicableRefactors", pointOrRange)
94+
return await client.execute("getApplicableRefactors", {
95+
triggerReason: "invoked",
96+
...pointOrRange,
97+
})
9598
} catch {
9699
return undefined
97100
}

0 commit comments

Comments
 (0)