Commit Graph

326 Commits

Author SHA1 Message Date
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
Daniel Imms
6d8bd758ef Clarify tests by using existing folders (#235209)
The old src/ case was removed as it was actually wrong when the folder
exists, and that's covered below.
2024-12-08 10:52:26 -05:00
Daniel Imms
e09971e1ed Get terminal-suggest completions working on Windows
- The shell was checked without removing the extension.
- The creationOptions hack to pull the shell type was also not working.
- Added the (terminal-suggest) note to resource completions as well.

Fixes #235272
2024-12-04 06:45:38 -08:00
Megan Rogge
167b384630 fix replacement index for terminal completions (#235172)
fix #235073
2024-12-03 09:59:16 -08:00
Daniel Imms
63540c4a4f Add test fixture and move tests into test/ folder 2024-12-02 12:22:29 -08:00
Daniel Imms
48c0e3eb3a Add fallback to default completions test suite 2024-12-02 12:10:22 -08:00
Daniel Imms
eaad1fd690 Skip failing cwd tests on Linux 2024-12-02 12:02:52 -08:00
Daniel Imms
ecff53c891 Fix order of precedence 2024-12-02 12:00:03 -08:00
Daniel Imms
38d4af02e4 Merge remote-tracking branch 'origin/main' into tyriar/234777 2024-12-02 11:53:55 -08:00
Megan Rogge
f408139c28 only show command/spec suggestions for first on the line (#235005) 2024-12-02 11:51:55 -08:00
Megan Rogge
0657feb3f6 fix more terminal completion issues (#234782) 2024-11-27 22:16:43 +00:00
Daniel Imms
02dd8489f1 Improve path separate support in windows cwd resolving 2024-11-27 12:32:45 -08:00
Daniel Imms
efdc3068be Test resolved cwd as well, fix logic to resolve the folder before last / 2024-11-27 12:13:45 -08:00
Daniel Imms
ce6edbd360 Remove TODO, in the extension resources can't be resolved 2024-11-27 11:36:00 -08:00
Daniel Imms
b3faa14b25 Improve structure of terminal suggest tests
Fixes #234777
2024-11-27 11:30:46 -08:00