Commit Graph

71 Commits

Author SHA1 Message Date
Daniel Imms
09e49a5252 Fix duplicate matching and windowsExecutableExtensions setting
Fixes #238285
2025-01-20 03:45:21 -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
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
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
Megan Rogge
bd9530171d add some more tests, fix terminal completion bug (#234696) 2024-11-27 19:01:06 +01:00
Megan Rogge
8eb7fac565 add tests for terminal suggest widget, fix some bugs (#234445) 2024-11-24 10:38:19 -05:00
Megan Rogge
f2fba1b45d improve folder/file terminal completions (#234363) 2024-11-21 21:28:42 +00:00
Megan Rogge
d79858c114 add support for file/folder terminal completions (#234289) 2024-11-21 07:05:55 +05:30
Megan Rogge
a7ba900c98 add kind, kind to icon map 2024-11-19 14:07:54 -05:00
Megan Rogge
944db65a02 fix another bug 2024-11-19 08:25:11 -05:00
Megan Rogge
cd7ce2e5c4 make sure it exists in available commands 2024-11-19 08:14:13 -05:00
Megan Rogge
087130ad5d fix one more bug 2024-11-18 17:19:49 -05:00
Megan Rogge
3bb4ce2a93 fix bug 2024-11-18 16:56:42 -05:00
Megan Rogge
83066f9077 move into activate, rm workspace trust 2024-11-18 16:11:46 -05:00
Megan Rogge
fc51efb871 fix issue 2024-11-18 15:44:05 -05:00
Megan Rogge
412b2bfcb6 apply spec.name 2024-11-18 15:22:59 -05:00
Megan Rogge
e718896c65 modify regex 2024-11-18 10:57:22 -05:00
Megan Rogge
69bf92f0bc when suggestions exist, only show those 2024-11-18 10:49:08 -05:00
Megan Rogge
09bdd51073 get arguments, options mostly working 2024-11-15 18:15:33 -05:00
Megan Rogge
1cc34dc1ba get it working for basic options 2024-11-15 15:25:40 -05:00
Megan Rogge
750a9cb6f8 try something else with tsconfig 2024-11-14 11:05:00 -06:00
Megan Rogge
9edc7ab48b revert change to webpack, try something else 2024-11-13 19:01:40 -06:00
Megan Rogge
499475f2ff pass in cancellation token 2024-11-13 15:53:47 -06:00
Megan Rogge
f918e3e970 get it to work on empty prompt 2024-11-13 15:40:58 -06:00
Megan Rogge
5ce6817a1f command line empty, return '' 2024-11-13 14:47:17 -06:00
Megan Rogge
d6175c3198 cache specs, commands, builtin commands 2024-11-13 09:41:35 -06:00
Megan Rogge
b2223a9386 add spaces 2024-11-13 09:34:27 -06:00
Megan Rogge
bdc92114d7 delete a bunch of code, clean up 2024-11-13 09:33:43 -06:00
Megan Rogge
53df927717 fix suggestion 2024-11-12 17:20:55 -06:00
Megan Rogge
6ad3343ec4 Add trigger chars, get suggestions on space working and lay foundation for file/folder 2024-11-12 17:12:35 -06:00
Megan Rogge
f5cf821fe6 get suggestions to show up no matter where they are on line 2024-11-06 15:58:37 -06:00
Megan Rogge
8fd04a80d6 fix issues where pwsh global completions weren't showing up 2024-11-06 14:06:49 -06:00