Commit Graph

78 Commits

Author SHA1 Message Date
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
Megan Rogge
bd9530171d add some more tests, fix terminal completion bug (#234696) 2024-11-27 19:01:06 +01:00
Megan Rogge
9cce26db61 escape spaces for file/folder completions, simplify tests (#234600) 2024-11-26 19:55:49 +01:00
Megan Rogge
bef0623edd make test spec array, use it to run tests (#234593) 2024-11-25 09:02:51 -08: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
5c5460a43a add icon 2024-11-18 16:58:06 -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
42e05e92aa get icon to show up 2024-11-18 12:29:26 -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