Commit Graph

373 Commits

Author SHA1 Message Date
Megan Rogge
94e7fe385c add terminal completion debug logs (#242517)
fix #242076
2025-03-04 00:00:44 +01:00
Megan Rogge
12dafaf7b5 fix terminal suggest bug where unexpected completions are returned (#242363) 2025-03-03 22:56:30 +00:00
meganrogge
acbcb2b7ec update comment 2025-02-27 11:09:47 -06:00
Daniel Imms
8b0f80c492 Merge pull request #242117 from microsoft/tyriar/241702_2
Remove cwd fallback, ensuring we don't suggest non-existent folders
2025-02-26 13:37:11 -08:00
Daniel Imms
c25c5e8612 Remove cwd fallback, ensuring we don't suggest non-existent folders
Fixes #241702
2025-02-26 13:09:49 -08:00
Daniel Imms
5090a351b1 Make option item kind check stricter
Fixes #241825
2025-02-26 12:38:20 -08:00
Megan Rogge
2dbfd1e50a save zsh builtin command descriptions to ts file vs json (#241967) 2025-02-25 23:54:35 +01:00
Megan Rogge
42c5863214 remove info log (#241671) 2025-02-24 06:40:09 -08:00
Daniel Imms
57109e1039 Merge pull request #241395 from microsoft/tyriar/241392
Differentiate flags/options, add option value type
2025-02-23 20:59:07 -08:00
Daniel Imms
0ce83659a3 Merge pull request #241584 from microsoft/tyriar/set_location
Add set-location spec for pwsh
2025-02-23 20:57:45 -08:00
Daniel Imms
2e43cb8fe6 Merge pull request #241582 from microsoft/tyriar/reduce
Reduce changes in fig specs
2025-02-23 20:56:08 -08:00
Daniel Imms
7cc14fc51c Handle no environment reporting properly
We need to differentiate undefined (no env reporting ever) and an empty
environment (env was reported, but maybe incomplete).

Fixes #241504
2025-02-22 08:33:48 -08:00
Daniel Imms
42f728419c Clean up adding items and classifying options and option values 2025-02-22 08:02:17 -08:00
Daniel Imms
edfcc410ed Correct flag -> method completion kind 2025-02-22 07:43:53 -08:00
Daniel Imms
f26d973b5a Merge remote-tracking branch 'origin/main' into tyriar/241392 2025-02-22 07:42:16 -08:00
Daniel Imms
2a96971a95 Explain cd -/+ in set-location better 2025-02-22 07:27:46 -08:00
Daniel Imms
29b0e1fe3a Add set-location spec for pwsh
Without this, there are no file/folder completions when the quickSuggestions
setting has unknown as off (default).

Fixes #241583
2025-02-22 07:26:18 -08:00
Daniel Imms
3331655f53 Replace imports on update-specs 2025-02-22 06:50:27 -08:00
Daniel Imms
08bdd93450 Add python3 spec 2025-02-22 06:50:22 -08:00
Megan Rogge
cde4b9f62c Merge pull request #241543 from microsoft/merogge/filepaths
add `fileExtensions` to terminal completion resource request config
2025-02-22 15:29:26 +01:00
Daniel Imms
cfd8f54e65 Merge remote-tracking branch 'origin/tyriar/239706' into tyriar/241392 2025-02-21 09:50:45 -08:00
Megan Rogge
b1368c3fe1 rm a log in generators (#241396) 2025-02-20 22:47:45 +01:00
Daniel Imms
a536cedb50 Merge remote-tracking branch 'origin/main' into tyriar/241392 2025-02-20 13:02:58 -08:00
Daniel Imms
b49aaf3634 Differentiate flags/options, add option value type
This also fixes an issue where option values stopped working recently.

Fixes #241392
2025-02-20 13:00:13 -08:00
Megan Rogge
28903d1a47 add tests for script/custom generators (#241376) 2025-02-20 20:23:30 +01:00
Anthony Kim
f99c5c64bc Expose shell's environment - fish shell (#240971)
* start working on fish, save progress, still lots TODO

* modify proposed.terminalShellEnv.d.ts

* remember we dont have acccess to nonce in .fish script

* save progress, adding isTrusted

* two arrays approach in fish

* provide EnvClear for fish, other shell as well.

* fix tests

* REMOVE TWO ARRAYS METHOD, always send all env

* remove deprecated comments

* remove junk get ready for review

* dont import vscode in terminal/common/capabilities.ts

* take feedback => pass in Clear as part of EnvSingleStart

* add env clear argument to SI.zsh

* update one more place to prevent vscode import

* mandatory flag description?? discuss this

* make things right
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* comment out test code

* use mapsStrictEqualIgnoreOrder instead of equals

* ready to go
2025-02-20 19:42:48 +01:00
Megan Rogge
1e2f34a9a5 ensure zsh version >= last version used to generate zsh command descriptions (#241357)
fix #241235
2025-02-20 16:55:45 +01:00
Daniel Imms
0c45832d09 Merge remote-tracking branch 'origin/main' into tyriar/241128__better_parse 2025-02-20 06:05:11 -08:00
Daniel Imms
002798ac49 Add missing short descriptions 2025-02-20 06:04:48 -08:00
Daniel Imms
f6569ac921 Detect more command format cases: 2025-02-20 05:51:05 -08:00
Daniel Imms
f07376dcff Improve formatting of backtick single quote code blocks 2025-02-20 05:44:32 -08:00
Megan Rogge
5ffa9a30cb use builtin over spec if it has more command properties (#241238)
fix #241220

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-02-20 00:09:37 +01:00
Daniel Imms
d8eccebbc9 Merge remote-tracking branch 'origin/merogge/markdown-string' into tyriar/241128__better_parse 2025-02-19 14:08:52 -08:00
meganrogge
bed98fd7ed use markdown string in zsh/bash 2025-02-19 16:07:53 -06:00
Daniel Imms
2112c13627 Return documentation as a markdown string 2025-02-19 11:40:37 -08:00
Daniel Imms
bf9d645830 Regen and remove log 2025-02-19 11:38:49 -08:00
Daniel Imms
1112d5ffa6 Use pacdoc to convert man to markdown 2025-02-19 11:25:54 -08:00
Daniel Imms
d0370c1027 Null command -> No effect 2025-02-19 10:16:12 -08:00
Daniel Imms
fb77d99dff Update cache 2025-02-19 09:49:03 -08:00
Daniel Imms
ba568fd26c Fill in zsh short descriptions
Fixes #241128
2025-02-19 09:48:12 -08:00
Megan Rogge
780e17b48f fix duplicate suggestion bug (#241225)
fix #241224
2025-02-19 18:12:40 +01:00
Megan Rogge
edac0c5a27 ensure spec commands show up before misc ones (#240724)
fix #239977
2025-02-19 02:58:47 +01:00
Daniel Imms
17411566af Allow boolean quickSuggestions during transition 2025-02-15 04:34:23 -08:00
Daniel Imms
250fd8bbb0 Expand terminal suggest quickSuggestions setting
This moves from a simple boolean to an object that allows customizing whether
completions are provided for commands and arguments, and whether fallback
suggestions are allowed.

The default is on for commands and arguments and off for unknown (fallback).

Fixes #240226
Fixes #239978
2025-02-15 04:23:11 -08:00
Megan Rogge
6a627b0918 ensure unique capture group names for terminal suggest aliases regex (#240813)
fix #240786

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-02-14 09:00:07 -08:00
Megan Rogge
2b4ca40a0c only trigger generators for completions once (#240721)
fix #240394
2025-02-13 22:45:09 +01:00
Daniel Imms
8ad7a1522b Correct cgmanifest link 2025-02-11 11:15:26 -08:00
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