Commit Graph

326 Commits

Author SHA1 Message Date
Daniel Imms
52efdd765a Merge pull request #240135 from microsoft/tyriar/239515__fig_generators
Integrate with fig's generator code
2025-02-10 14:20:19 -08:00
Megan Rogge
3e5674c608 filter out builtin . as we provide it in resolveResources (#240287)
fix #234362
2025-02-10 22:59:45 +01:00
Daniel Imms
0d8104a311 Merge remote-tracking branch 'origin/main' into tyriar/239515__fig_generators 2025-02-10 13:32:21 -08:00
Daniel Imms
5dc187602c Bring hasCurrentArg back 2025-02-10 13:28:49 -08:00
Megan Rogge
14b1516869 do not allow duplicate flags (#240292) 2025-02-10 22:22:53 +01:00
Daniel Imms
a182f1fdee Merge branch 'main' into tyriar/239515__fig_generators 2025-02-10 13:02:31 -08:00
Megan Rogge
331d7defed uncomment test cases (#240285)
fix #239713
2025-02-10 11:29:02 -08:00
Daniel Imms
015b23f485 Merge remote-tracking branch 'origin/main' into tyriar/239515__fig_generators 2025-02-10 08:33:03 -08:00
Megan Rogge
397e48745c don't request files/folders when on an arg for terminal suggest (#240257)
fix #240033
2025-02-10 16:33:46 +01:00
Daniel Imms
ce523e8520 Merge branch 'main' into tyriar/239515__fig_generators 2025-02-10 06:56:26 -08:00
Daniel Imms
c2e0bcbc86 Merge pull request #240094 from microsoft/tyriar/239022_tilde_completions
Terminal suggest: Tilde relative path support, share logic between absolute/relative
2025-02-10 06:27:33 -08:00
Daniel Imms
c40c7e52de Add brew spec 2025-02-10 05:32:13 -08:00
Daniel Imms
23b9790313 Add executable bit to terminal-suggest scripts 2025-02-10 05:30:30 -08:00
Daniel Imms
fc8285a7e4 Pass env in shell context to generators 2025-02-09 09:10:26 -08:00
Daniel Imms
148fd5164a Move more dealing with fig into figInterface.ts 2025-02-09 08:35:20 -08:00
Daniel Imms
06f5342e22 Pull most of dealing with fig into separate file 2025-02-09 08:26:59 -08:00
Daniel Imms
3769b1f4ba Get custom generators working 2025-02-09 08:05:13 -08:00
Daniel Imms
d4d0883aea Integrate with fig's script generator code
Part of #239519
Fixes #240131
2025-02-09 07:31:46 -08:00
Daniel Imms
a83c032c03 Remove tilde test from cd spec 2025-02-09 05:47:54 -08:00
Daniel Imms
7f07efc83f Add more fig specs
Fixes #239515
2025-02-08 14:24:21 -08:00
Daniel Imms
e964419838 Move simple tilde completion into TerminalCompletionService 2025-02-08 11:07:54 -08:00
Megan Rogge
6dbde2a3ed leverage Fig's shell parser, add git spec (#240001)
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-02-08 15:40:33 +00:00
Megan Rogge
e6c77857a7 define pathSeparator in ext host for terminal suggest (#239540) 2025-02-06 20:39:25 +00:00
Daniel Imms
2035725aca Add generic fig tests
Part of #239515
2025-02-05 10:50:04 -08:00
Daniel Imms
a563227a21 Use fig on windows regardless of file extension
Fixes #237598
2025-02-05 07:23:03 -08:00
Daniel Imms
b1cf1fd151 rmdir and touch fig spec tests 2025-02-05 05:27:12 -08:00
Daniel Imms
bf3a0f0e89 rm fig spec tests, allow multiple template requests
Fixes #239606
2025-02-05 05:18:03 -08:00
Daniel Imms
77f6745f42 mkdir fig spec tests 2025-02-04 07:04:49 -08:00
Daniel Imms
ad0173f59a echo fig spec tests 2025-02-04 07:00:38 -08:00
Daniel Imms
4e364a5c7b Add issue references 2025-02-04 06:51:27 -08:00
Daniel Imms
6d43829c8d ls spec unit tests 2025-02-04 06:39:02 -08:00
Daniel Imms
d35f9482c0 Move tests fig spec tests into folder per spec
Part of #239515
2025-02-04 06:23:06 -08:00
Megan Rogge
81cbef2ccb return files/folder completions unless specific options / args are provided (#239384)
Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-02-03 23:33:54 +01:00
Daniel Imms
16c8cfecf6 Merge branch 'main' into tyriar/239396_speedup__fig_alias_def 2025-02-03 07:57:56 -08:00
Daniel Imms
65bcaaf218 Merge pull request #239398 from microsoft/tyriar/239396_speedup
Optimize getCommandsInPath, restore cache, clean up cache lifecycle, add test
2025-02-03 07:56:21 -08:00
Daniel Imms
4f587d78c2 Pull alias parsing into helper 2025-02-02 05:18:45 -08:00
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