Skip to content

Commit 22e244e

Browse files
committed
fix: aliases as completions
1 parent 535dd62 commit 22e244e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/electron-ipc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@commas/electron-ipc",
33
"private": true,
44
"version": "0.1.0",
5-
"main": "index.js",
5+
"main": "index.ts",
66
"author": "commas",
77
"license": "ISC"
88
}

src/main/utils/completion.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,10 @@ const getCommandRawCompletions = memoizeAsync(async () => {
344344
getAllCommands(),
345345
getCommandAliases(),
346346
])
347-
return uniq(commands).sort().map<CommandCompletion>(item => ({
347+
return uniq([
348+
...commands,
349+
...Object.keys(aliases),
350+
]).sort().map<CommandCompletion>(item => ({
348351
type: 'command',
349352
query: '',
350353
value: item,

0 commit comments

Comments
 (0)