Commit Graph

240 Commits

Author SHA1 Message Date
Daniel Imms
c4cf1864d2 Resolve fig spec against alias definition command 2025-02-02 05:15:25 -08:00
Daniel Imms
521e89838a Don't show fig information for aliases
Fixes #239425
2025-02-02 04:40:31 -08:00
Daniel Imms
53790287ce Improve names on PathExecutableCache 2025-02-02 04:27:47 -08:00
Daniel Imms
af8504c3ac Add test to prevent future simple cache breakages 2025-02-01 06:04:08 -08:00
Daniel Imms
9131925b74 Move path exe logic into class 2025-02-01 05:56:14 -08:00
Daniel Imms
7a9f62939d Move path exe logic into own file 2025-02-01 05:45:21 -08:00
Daniel Imms
fafd6b594a Optimize getCommandsInPath, restore cache
Changes:

- Fix cache mechanism as pathValue never got stored
- Cache labels instead of returning empty set
- Walking each directory in separate promise and await via Promise.all
- Don't create a promise on Windows when checking exe

Fixes #239396
2025-02-01 05:17:57 -08:00
Daniel Imms
9f753c77d9 Simplify terminal suggest token variable
Follow up on #239344
2025-02-01 04:42:12 -08:00
Daniel Imms
9d7b589913 Remove arrow from alias detail 2025-01-31 14:40:12 -08:00
Daniel Imms
4c3914f8b7 Merge remote-tracking branch 'origin/main' into tyriar/aliases 2025-01-31 14:38:15 -08:00
Daniel Imms
9802b18139 Make other command types consistent, polish abnormal alias types 2025-01-31 14:35:40 -08:00
Daniel Imms
c69d72c515 Correct non-definition entries 2025-01-31 14:05:57 -08:00
Daniel Imms
92f0b764f8 Polish format of aliases 2025-01-31 14:04:33 -08:00
Megan Rogge
0baef06236 ensure space after command before providing options (#239378)
fix #239249
2025-01-31 23:03:21 +01:00
Daniel Imms
6540b40a3d Set kind for all pwsh commands, handle aliases without resolved 2025-01-31 13:28:18 -08:00
Daniel Imms
fee91cbff5 Share exec/spawn code between shells 2025-01-31 13:07:11 -08:00
Daniel Imms
735fde9116 Move pwsh logic into own file 2025-01-31 12:52:34 -08:00
Daniel Imms
a1f8e8d54e Use a map over a switch statement 2025-01-31 10:35:51 -08:00
Daniel Imms
7e1c4edb76 Remove compile warning 2025-01-31 10:30:20 -08:00
Daniel Imms
02734d254f Async fish and aliases 2025-01-31 10:29:06 -08:00
Daniel Imms
1908c617e8 zsh aliases 2025-01-31 10:24:50 -08:00
Daniel Imms
da74a77c39 Move bash logic into own file 2025-01-31 10:09:30 -08:00
Daniel Imms
999cf4704b Pull in bash aliases, add alias kind
Part of #239028
2025-01-31 09:56:24 -08:00
Daniel Imms
63c8c15571 Pass token type into getCompletionItemsFromSpecs tests 2025-01-31 09:04:43 -08:00
Daniel Imms
9add868cda Add very basic tokenizer for command line
Fixes #239018
2025-01-31 08:30:51 -08:00
Megan Rogge
a0a4332e9a only return options if no args are provided (#239247)
fix #237598
2025-01-30 19:33:32 +00:00
Megan Rogge
7f434da1e8 Revert "rm webpack config from terminal-suggest" (#238981)
Revert "rm webpack config from terminal-suggest (#238874)"

This reverts commit b54c554bb2.
2025-01-28 17:30:46 +01:00
Megan Rogge
b54c554bb2 rm webpack config from terminal-suggest (#238874) 2025-01-27 13:21:15 -06:00
Megan Rogge
19e5c5853e cleanup suggest settings (#238709) 2025-01-24 14:26:51 -08:00
Megan Rogge
eefe484351 Add ~/ completion (#238727)
part of #234352
2025-01-24 23:24:25 +01:00
Megan Rogge
29d525c1d3 use terminalShellType for terminal suggest (#238381) 2025-01-23 16:11:23 -06:00
Megan Rogge
69ce98f0d4 show spec info w priority over path (#238408) 2025-01-22 04:45:23 -08:00
Megan Rogge
ac0f552f56 Add documentation to completion item (#238391) 2025-01-21 14:03:42 -06:00
Daniel Imms
10e86c4a08 Merge branch 'main' into tyriar/238181 2025-01-21 08:08:14 -08:00
Daniel Imms
0000f9dffe Add details for pwsh globals via get-command
Fixes #238181
2025-01-20 04:30:51 -08:00
Daniel Imms
09e49a5252 Fix duplicate matching and windowsExecutableExtensions setting
Fixes #238285
2025-01-20 03:45:21 -08:00
Megan Rogge
58145651f7 use type vs object (#238187)
use object type instead
2025-01-19 08:02:50 -08:00
Megan Rogge
c2c7ab5a88 add suggest setting WindowsExecutableExtensions, default values (#238155) 2025-01-17 13:05:33 -08:00
Megan Rogge
cff1a6a703 add path to details for executable terminal suggestions, prevent duplication (#238080) 2025-01-17 19:26:37 +00:00
Megan Rogge
f1b4bb8d76 check if windows file is executable (#238142)
fix #237596
2025-01-17 18:20:10 +01:00
Daniel Imms
55c35c836f Automate some pulling completions from upstream 2025-01-10 07:13:17 -08:00
Daniel Imms
7bfaf73501 Use terminal shell env when resolving commands in path (#237588)
---------

Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Co-authored-by: Anthony Kim <62267334+anthonykim1@users.noreply.github.com>
2025-01-10 15:05:34 +01:00
Megan Rogge
4a8978f7de clean up terminal suggest code, fix bugs (#237599) 2025-01-09 21:31:20 +00:00
Daniel Imms
cbfd8ab513 Cache builtin commands and get all global commands for pwsh
This should make things quite a bit faster for expensive fetching of
commands. This also caches empty builtin commands so it's not attempted
every time.

Fixes #236097
Part of #235024
2024-12-19 02:50:44 -08:00
Megan Rogge
b4c9953da4 request folders/files when appropriate (#236370)
fix #236368
2024-12-17 09:10:39 -08:00
Daniel Imms
f776d0611e Fill pwsh commands via Get-Command
Fixes #235024
2024-12-17 04:09:17 -08:00
Megan Rogge
e678c2e0c8 don't filter available commands in the extension (#236101) 2024-12-16 20:43:40 +01:00
Megan Rogge
466eb0be75 fix replacement index,length for terminal completions (#236260)
fix bugs
2024-12-16 19:24:42 +00:00
Megan Rogge
afd3f0abf0 Check whether commands are executable before including them in terminal suggestions (#235997) 2024-12-13 21:19:39 +01:00
Megan Rogge
1bf794adda change condition for adding terminal completion executables (#235994)
fix #235082
2024-12-12 12:13:41 -08:00