-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathpackage.json
More file actions
1042 lines (1042 loc) · 37 KB
/
Copy pathpackage.json
File metadata and controls
1042 lines (1042 loc) · 37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"name": "elixir-ls",
"displayName": "ElixirLS: Elixir support and debugger",
"homepage": "https://github.com/elixir-lsp/elixir-ls",
"repository": {
"type": "git",
"url": "https://github.com/elixir-lsp/vscode-elixir-ls.git"
},
"icon": "images/logo.png",
"description": "Elixir support with debugger, autocomplete, and more - Powered by ElixirLS.",
"author": "The Elixir community",
"license": "MIT",
"publisher": "JakeBecker",
"version": "0.31.1",
"engines": {
"vscode": "^1.105.0"
},
"sponsor": {
"url": "https://github.com/sponsors/elixir-lsp"
},
"categories": [
"Programming Languages",
"Debuggers",
"Linters",
"Testing",
"Formatters"
],
"keywords": [
"elixir",
"mix",
"dialyzer",
"multi-root ready"
],
"activationEvents": [
"onLanguage:phoenix-heex",
"onLanguage:surface",
"workspaceContains:mix.exs",
"onDebugResolve:elixir"
],
"main": "./out/extension.js",
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "ElixirLS compiles the project and runs Mix tasks, which executes code from the project and all of its dependencies (including compile-time code such as macros, mix.exs, and dependency build scripts). Only trust workspaces whose project and dependency sources you trust."
},
"virtualWorkspaces": {
"supported": false,
"description": "ElixirLS requires access to Mix and the project files on a real filesystem."
}
},
"contributes": {
"semanticTokenTypes": [
{
"id": "atom",
"superType": "enumMember",
"description": "Elixir atom literal"
},
{
"id": "attribute",
"superType": "property",
"description": "Elixir module attribute name"
},
{
"id": "typespec",
"superType": "function",
"description": "Function name inside an Elixir @spec/@callback"
},
{
"id": "sigil",
"superType": "macro",
"description": "Elixir sigil head (~r, ~w, ~FOO)"
},
{
"id": "capture",
"superType": "variable",
"description": "Elixir capture argument or function capture"
}
],
"semanticTokenScopes": [
{
"language": "elixir",
"scopes": {
"atom": [
"constant.language.symbol.elixir",
"constant.language.symbol.single-quoted.elixir",
"constant.language.symbol.double-quoted.elixir"
],
"attribute": [
"variable.other.constant.elixir"
],
"sigil": [
"punctuation.definition.string.begin.elixir",
"punctuation.section.regexp.begin.elixir"
],
"capture": [
"variable.other.anonymous.elixir",
"entity.name.function.call.capture.elixir"
],
"typespec": [
"entity.name.function.typespec.elixir"
],
"type": [
"entity.name.function.typespec.elixir"
],
"function": [
"entity.name.function.elixir",
"entity.name.function.call.local.elixir",
"entity.name.function.call.local.pipe.elixir"
],
"method": [
"entity.name.function.call.dot.elixir"
],
"class": [
"entity.name.type.module.elixir"
],
"namespace": [
"entity.name.type.module.elixir"
],
"property": [
"constant.language.symbol.elixir"
],
"number": [
"constant.numeric.elixir"
]
}
}
],
"mcpServerDefinitionProviders": [
{
"id": "elixirLS.mcp",
"label": "ElixirLS"
}
],
"walkthroughs": [
{
"id": "elixirLSGettingStarted",
"title": "Get Started with ElixirLS",
"description": "Set up Elixir language support, testing, and debugging.",
"steps": [
{
"id": "installElixir",
"title": "Install Elixir & Erlang/OTP",
"description": "ElixirLS uses the Elixir and OTP installed on your machine.\n[Open the Elixir install guide](https://elixir-lang.org/install.html)",
"media": {
"markdown": "walkthroughs/install-elixir.md"
},
"completionEvents": [
"onLink:https://elixir-lang.org/install.html"
]
},
{
"id": "openProject",
"title": "Open a Mix project",
"description": "Open a folder containing a mix.exs file to start ElixirLS.\n[Open Folder](command:workbench.action.files.openFolder)",
"media": {
"markdown": "walkthroughs/open-project.md"
},
"completionEvents": [
"onContext:elixirLS.activated"
]
},
{
"id": "configure",
"title": "Configure ElixirLS",
"description": "Tune project directory, Mix env, and more.\n[Open ElixirLS Settings](command:workbench.action.openSettings?%22elixirLS%22)",
"media": {
"markdown": "walkthroughs/configure.md"
},
"completionEvents": [
"onCommand:workbench.action.openSettings"
]
},
{
"id": "runTests",
"title": "Run and debug tests",
"description": "Run your ExUnit tests from the Test Explorer.\n[Open Testing](command:workbench.view.testing)",
"media": {
"markdown": "walkthroughs/run-tests.md"
},
"completionEvents": [
"onCommand:workbench.view.testing"
]
},
{
"id": "debug",
"title": "Debug your code",
"description": "Set breakpoints and step through Mix tasks and tests.\n[Open Run and Debug](command:workbench.view.debug)",
"media": {
"markdown": "walkthroughs/debug.md"
},
"completionEvents": [
"onCommand:workbench.view.debug"
]
},
{
"id": "dialyzer",
"title": "Enable Dialyzer (optional)",
"description": "Get incremental type analysis as you work.\n[Open Dialyzer Settings](command:workbench.action.openSettings?%22elixirLS.dialyzer%22)",
"media": {
"markdown": "walkthroughs/dialyzer.md"
},
"completionEvents": [
"onSettingChanged:elixirLS.dialyzerEnabled"
]
}
]
}
],
"configurationDefaults": {
"[elixir]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.wordBasedSuggestions": "off",
"editor.formatOnType": true,
"editor.trimAutoWhitespace": false,
"editor.snippetSuggestions": "inline",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
},
"[eex]": {
"editor.trimAutoWhitespace": false,
"editor.snippetSuggestions": "inline",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
},
"[html-eex]": {
"editor.trimAutoWhitespace": false,
"editor.snippetSuggestions": "inline",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
}
},
"configuration": {
"title": "ElixirLS",
"properties": {
"elixirLS.autoBuild": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Trigger ElixirLS build when code is saved"
},
"elixirLS.dialyzerEnabled": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Run ElixirLS's rapid Dialyzer when code is saved"
},
"elixirLS.dialyzerWarnOpts": {
"scope": "resource",
"description": "Dialyzer options to enable or disable warnings - See Dialyzer's documentation for options",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"no_return",
"no_unused",
"no_unknown",
"no_improper_lists",
"no_fun_app",
"no_match",
"no_opaque",
"no_fail_call",
"no_contracts",
"no_behaviours",
"no_undefined_callbacks",
"unmatched_returns",
"error_handling",
"no_missing_calls",
"specdiffs",
"overspecs",
"underspecs",
"no_underspecs",
"extra_return",
"no_extra_return",
"missing_return",
"no_missing_return",
"unknown",
"overlapping_contract",
"opaque_union",
"no_opaque_union"
]
},
"default": []
},
"elixirLS.dialyzerFormat": {
"scope": "resource",
"description": "Formatter to use for Dialyzer warnings",
"type": "string",
"enum": [
"dialyzer",
"dialyxir_short",
"dialyxir_long"
],
"markdownEnumDescriptions": [
"Original Dialyzer format",
"Same as `mix dialyzer --format short`",
"Same as `mix dialyzer --format long`"
],
"default": "dialyxir_long"
},
"elixirLS.envVariables": {
"scope": "resource",
"type": "object",
"description": "Environment variables to use for compilation",
"minLength": 0
},
"elixirLS.mixEnv": {
"scope": "resource",
"type": "string",
"description": "Mix environment to use for compilation",
"default": "test",
"minLength": 1
},
"elixirLS.mixTarget": {
"scope": "resource",
"type": "string",
"description": "Mix target to use for compilation",
"minLength": 0
},
"elixirLS.projectDir": {
"scope": "resource",
"type": "string",
"description": "Subdirectory containing Mix project if not in the project root",
"minLength": 0,
"default": ""
},
"elixirLS.stdlibSrcDir": {
"scope": "resource",
"type": "string",
"description": "Subdirectory where the Elixir stdlib resides to allow for source code lookup. E.g. /home/youruser/.asdf/installs/elixir/1.18.2",
"minLength": 0,
"default": ""
},
"elixirLS.useCurrentRootFolderAsProjectDir": {
"scope": "resource",
"type": "boolean",
"description": "Don't try to look for mix.exs in parent directories",
"default": false
},
"elixirLS.fetchDeps": {
"scope": "resource",
"type": "boolean",
"description": "Automatically fetch project dependencies when compiling.",
"default": false
},
"elixirLS.suggestSpecs": {
"scope": "resource",
"type": "boolean",
"description": "Suggest @spec annotations inline using Dialyzer's inferred success typings (Requires Dialyzer).",
"default": true
},
"elixirLS.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the Elixir language server."
},
"elixirLS.autoInsertRequiredAlias": {
"scope": "window",
"type": "boolean",
"description": "Enable auto-insert required alias. This is true (enabled) by default.",
"default": true
},
"elixirLS.signatureAfterComplete": {
"scope": "resource",
"type": "boolean",
"description": "Show signature help after confirming autocomplete.",
"default": true
},
"elixirLS.enableTestLenses": {
"scope": "resource",
"type": "boolean",
"description": "Show code lenses to run tests in terminal.",
"default": false
},
"elixirLS.additionalWatchedExtensions": {
"scope": "resource",
"type": "array",
"description": "Additional file types capable of triggering a build on change",
"uniqueItems": true,
"items": {
"type": "string"
},
"default": []
},
"elixirLS.languageServerOverridePath": {
"scope": "resource",
"type": "string",
"description": "Absolute path to alternative ElixirLS release that will override the packaged release",
"minLength": 0
},
"elixirLS.dotFormatter": {
"scope": "resource",
"type": "string",
"description": "Path to a custom .formatter.exs file used when formatting documents",
"minLength": 0
},
"elixirLS.mcpEnabled": {
"scope": "resource",
"type": "boolean",
"description": "Enable or disable the MCP server",
"default": false
},
"elixirLS.mcpPort": {
"scope": "resource",
"type": "integer",
"description": "Set a specific port for the MCP server. If not set, uses `3789 + hash(workspace_path)` for predictable port assignment per workspace",
"default": 0
}
}
},
"languages": [
{
"id": "elixir",
"aliases": [
"Elixir",
"elixir"
],
"extensions": [
".ex",
".exs"
],
"filenames": [
"mix.lock"
],
"configuration": "./elixir-language-configuration.json"
},
{
"id": "eex",
"aliases": [
"Embedded Elixir",
"EEx",
"eex"
],
"extensions": [
".eex",
".leex"
],
"configuration": "./eex-language-configuration.json"
},
{
"id": "html-eex",
"aliases": [
"HTML (Embedded Elixir)",
"HTML (EEx)"
],
"extensions": [
".html.eex",
".html.leex"
],
"configuration": "./eex-language-configuration.json"
}
],
"grammars": [
{
"language": "elixir",
"scopeName": "source.elixir",
"path": "./syntaxes/elixir.json",
"unbalancedBracketScopes": [
"keyword.operator.bitwise.elixir",
"keyword.operator.other.unbalanced.elixir",
"constant.language.symbol.elixir",
"constant.language.symbol.single-quoted.elixir",
"constant.language.symbol.double-quoted.elixir",
"entity.name.function.call.dot.elixir"
],
"embeddedLanguages": {
"comment.documentation.heredoc.elixir": "markdown"
}
},
{
"language": "eex",
"scopeName": "text.elixir",
"path": "./syntaxes/eex.json"
},
{
"language": "html-eex",
"scopeName": "text.html.elixir",
"path": "./syntaxes/html-eex.json"
}
],
"breakpoints": [
{
"language": "elixir"
}
],
"debuggers": [
{
"type": "mix_task",
"label": "Mix Task",
"windows": {
"program": "debug_adapter.bat"
},
"linux": {
"program": "debug_adapter.sh"
},
"osx": {
"program": "debug_adapter.sh"
},
"languages": [
"elixir"
],
"configurationAttributes": {
"launch": {
"required": [
"projectDir"
],
"properties": {
"task": {
"type": "string",
"description": "Mix task name (without arguments)",
"default": "run"
},
"taskArgs": {
"type": "array",
"description": "List of arguments for task",
"default": [],
"items": {
"type": "string"
}
},
"env": {
"type": "object",
"description": "Environment variables to set before debugging - You may want to set MIX_ENV in here."
},
"debugAutoInterpretAllModules": {
"type": "boolean",
"description": "When debugging, interpret all files. Note: Only interpreted files will be part of the debugging stack traces. However this has a performance impact on large repositories, so if debugging is too slow, disable debugAutoInterpretFiles and use debugInterpretModulesPatterns to specify which files to interpret.",
"default": true
},
"debugInterpretModulesPatterns": {
"type": "array",
"description": "The modules to interpret when debugging - For details of interpreting, see the :int module in Erlang. Only modules that are interpreted will show up in the debugger stacktrace. An example of a pattern is: \"MyApp.*\", which will interpret all modules that begin with \"MyApp.\"",
"items": {
"type": "string",
"minLength": 1
}
},
"projectDir": {
"type": "string",
"description": "Project root directory (usually the workspace root)",
"default": "${workspaceRoot}"
},
"startApps": {
"type": "boolean",
"description": "Run apps.start before requiring files. This should be set to true for Phoenix tests, but false in most other cases.",
"default": false
},
"excludeModules": {
"type": "array",
"description": "Names of modules not to interpret - If a module contains NIFs, you should exclude it. Examples: Some.Module, :erlang_module",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
"requireFiles": {
"type": "array",
"description": "Paths for any .exs files to interpret before debugging in the order they should be loaded. Accepts path wildcards.",
"items": {
"type": "string"
}
},
"stackTraceMode": {
"type": "string",
"description": "Option passed to :int.stack_trace/1. See https://www.erlang.org/doc/man/int#stack_trace-1 for details",
"enum": [
"all",
"no_tail",
"false"
],
"default": "no_tail"
},
"exitAfterTaskReturns": {
"type": "boolean",
"description": "Should the debug session stop when mix task returns. Tasks that return early while the code continues running asynchronously require `false` setting.",
"default": true
},
"breakOnDbg": {
"type": "boolean",
"description": "Should the debugger break on Kernel.dbg/2 macro.",
"default": true
}
}
},
"attach": {
"required": [
"projectDir",
"remoteNode"
],
"properties": {
"remoteNode": {
"type": "string",
"description": "Remote OTP node to connect to"
},
"env": {
"type": "object",
"description": "Environment variables to set before debugging - You may want to set MIX_ENV in here."
},
"debugAutoInterpretAllModules": {
"type": "boolean",
"description": "When debugging, interpret all files. Note: Only interpreted files will be part of the debugging stack traces. However this has a performance impact on large repositories, so if debugging is too slow, disable debugAutoInterpretFiles and use debugInterpretModulesPatterns to specify which files to interpret.",
"default": true
},
"debugInterpretModulesPatterns": {
"type": "array",
"description": "The modules to interpret when debugging - For details of interpreting, see the :int module in Erlang. Only modules that are interpreted will show up in the debugger stacktrace. An example of a pattern is: \"MyApp.*\", which will interpret all modules that begin with \"MyApp.\"",
"items": {
"type": "string",
"minLength": 1
}
},
"projectDir": {
"type": "string",
"description": "Project root directory (usually the workspace root)",
"default": "${workspaceRoot}"
},
"excludeModules": {
"type": "array",
"description": "Names of modules not to interpret - If a module contains NIFs, you should exclude it. Examples: Some.Module, :erlang_module",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
"stackTraceMode": {
"type": "string",
"description": "Option passed to :int.stack_trace/1. See https://www.erlang.org/doc/man/int#stack_trace-1 for details",
"enum": [
"all",
"no_tail",
"false"
],
"default": "no_tail"
}
}
}
},
"initialConfigurations": [
{
"type": "mix_task",
"name": "mix (Default task)",
"request": "launch",
"projectDir": "${workspaceRoot}"
},
{
"type": "mix_task",
"name": "mix test",
"request": "launch",
"task": "test",
"taskArgs": [
"--trace"
],
"startApps": true,
"projectDir": "${workspaceRoot}",
"requireFiles": [
"test/**/test_helper.exs",
"test/**/*_test.exs"
]
}
],
"configurationSnippets": [
{
"label": "Elixir Mix",
"description": "Launch a Mix task",
"body": {
"type": "mix_task",
"request": "launch",
"name": "mix ${1:task}",
"task": "${1:task}",
"taskArgs": [],
"projectDir": "^\"\\${workspaceRoot}\""
}
}
]
}
],
"problemMatchers": [
{
"name": "mixCompileError",
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"severity": "error",
"pattern": {
"regexp": "^\\*\\* \\((\\w+)\\) (.*):(\\d+): (.*)$",
"file": 2,
"location": 3,
"message": 0
}
},
{
"name": "mixCompileWarning",
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"severity": "warning",
"pattern": [
{
"regexp": "^warning: (.*)$",
"message": 1
},
{
"regexp": "^ (.*):(\\d+)(.*)$",
"file": 1,
"location": 2,
"message": 3
}
]
},
{
"name": "mixTestFailure",
"owner": "elixir",
"fileLocation": [
"relative",
"${workspaceRoot}"
],
"severity": "warning",
"pattern": [
{
"regexp": "^\\s*\\d+\\) (.*)$",
"message": 1
},
{
"regexp": "^\\s*(.*):(\\d+)$",
"file": 1,
"location": 2
}
]
}
],
"commands": [
{
"category": "Elixir",
"command": "extension.copyDebugInfo",
"title": "Copy ElixirLS Debug Info"
},
{
"category": "Elixir",
"command": "extension.expandMacro",
"title": "Expand macro"
},
{
"category": "Elixir",
"command": "extension.restart",
"title": "Restart language server"
},
{
"category": "Elixir",
"command": "extension.mixClean",
"title": "Trigger mix clean in language server"
},
{
"category": "Elixir",
"command": "extension.mixCleanIncludeDeps",
"title": "Trigger mix clean --deps in language server"
},
{
"category": "Elixir",
"command": "extension.toPipe",
"title": "Transform function call to pipe operator"
},
{
"category": "Elixir",
"command": "extension.fromPipe",
"title": "Transform pipe operator to function call"
}
],
"menus": {
"commandPalette": [
{
"category": "Elixir",
"command": "extension.copyDebugInfo",
"when": "editorLangId == elixir || editorLangId == eex || editorLangId == html-eex"
},
{
"category": "Elixir",
"command": "extension.expandMacro",
"when": "editorLangId == elixir || editorLangId == eex || editorLangId == html-eex"
},
{
"category": "Elixir",
"command": "extension.restart",
"when": "editorLangId == elixir || editorLangId == eex || editorLangId == html-eex"
},
{
"category": "Elixir",
"command": "extension.mixClean",
"when": "editorLangId == elixir || editorLangId == eex || editorLangId == html-eex"
},
{
"category": "Elixir",
"command": "extension.mixCleanIncludeDeps",
"when": "editorLangId == elixir || editorLangId == eex || editorLangId == html-eex"
},
{
"category": "Elixir",
"command": "extension.toPipe",
"when": "editorLangId == elixir || editorLangId == eex || editorLangId == html-eex"
},
{
"category": "Elixir",
"command": "extension.fromPipe",
"when": "editorLangId == elixir || editorLangId == eex || editorLangId == html-eex"
}
]
},
"taskDefinitions": [
{
"type": "mix",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "The Mix task"
}
}
}
],
"languageModelTools": [
{
"name": "elixir-definition",
"displayName": "Elixir Definition Lookup",
"modelDescription": "Find and retrieve the source code definition of Elixir/Erlang symbols including modules, functions, types, macros, and callbacks. Returns the actual source code with file location and line numbers for precise code inspection.",
"userDescription": "Look up the source definition of an Elixir or Erlang symbol (module, function, type, macro, or callback).",
"icon": "$(go-to-file)",
"tags": [
"elixir"
],
"canBeReferencedInPrompt": true,
"toolReferenceName": "elixir-definition",
"inputSchema": {
"type": "object",
"required": [
"symbol"
],
"properties": {
"symbol": {
"type": "string",
"description": "The symbol to find definition for. Supports: modules ('MyModule', 'GenServer'), functions ('MyModule.function', 'String.split/2'), types ('@type my_type'), macros ('defmacro'), Erlang modules (':gen_server'), Erlang functions (':lists.map/2'). Use qualified names (Module.function) for best results."
},
"file": {
"type": "string",
"description": "Optional absolute file path to specify which workspace to search. If not provided, uses the active editor's workspace or the first available workspace."
}
}
}
},
{
"name": "elixir-environment",
"displayName": "Elixir Environment Lookup",
"modelDescription": "Get comprehensive environment information at a specific code location including current module/function context, available aliases, imports, requires, variables in scope with their inferred types, module attributes, implemented behaviours, and all definitions in the file. Essential for understanding code context and available symbols.",
"userDescription": "Inspect the Elixir context at a code location: aliases, imports, requires, variables in scope, and inferred types.",
"icon": "$(symbol-namespace)",
"tags": [
"elixir"
],
"canBeReferencedInPrompt": true,
"toolReferenceName": "elixir-environment",
"inputSchema": {
"type": "object",
"required": [
"location"
],
"properties": {
"location": {
"type": "string",
"description": "Location in the code to analyze context. Formats: 'file.ex:line:column', 'file.ex:line', 'lib/my_module.ex:25:10', 'file:///absolute/path/file.ex:10:5'. Use specific line/column for better variable scope and context analysis. Line numbers start at 1."
}
}
}
},
{
"name": "elixir-module-dependencies",
"displayName": "Elixir Module Dependencies",
"modelDescription": "Analyze comprehensive module dependency relationships including direct/reverse dependencies, transitive dependencies, compile-time vs runtime dependencies, imports, aliases, requires, function calls, and struct expansions. Critical for understanding code architecture, impact analysis, and refactoring decisions.",
"userDescription": "Analyze an Elixir module's dependencies and dependents, including compile-time vs runtime relationships.",
"icon": "$(references)",
"tags": [
"elixir"
],
"canBeReferencedInPrompt": true,
"toolReferenceName": "elixir-module-dependencies",
"inputSchema": {
"type": "object",
"required": [
"module"
],
"properties": {
"module": {
"type": "string",
"description": "The module name to analyze dependencies for. Supports Elixir modules ('MyApp.MyModule', 'GenServer', 'Enum') and Erlang modules (':gen_server', ':ets'). Returns categorized dependency breakdown showing what the module depends on and what depends on it."
},
"file": {
"type": "string",
"description": "Optional absolute file path to specify which workspace to analyze. If not provided, uses the active editor's workspace or the first available workspace."
}
}
}
},
{
"name": "elixir-docs",
"displayName": "Elixir Documentation Aggregator",
"modelDescription": "Aggregate and return comprehensive documentation for multiple Elixir modules, functions, types, callbacks, or attributes in a single efficient request. Supports both module-level documentation (with function/type listings) and specific symbol documentation with examples and usage patterns.",
"userDescription": "Fetch documentation for Elixir modules, functions, types, callbacks, and attributes.",
"icon": "$(book)",
"tags": [
"elixir"
],
"canBeReferencedInPrompt": true,
"toolReferenceName": "elixir-docs",
"inputSchema": {
"type": "object",
"required": [
"modules"
],
"properties": {
"modules": {
"type": "array",
"description": "List of symbols to get documentation for. Supports: modules ('Enum', 'GenServer'), functions ('String.split/2', 'Enum.map'), types ('Enum.t/0', 'GenServer.on_start/0'), callbacks ('GenServer.handle_call', 'Application.start'), attributes ('@moduledoc', '@doc'). Mix different symbol types for comprehensive API understanding.",
"items": {
"type": "string"
}
},
"file": {
"type": "string",
"description": "Optional absolute file path to specify which workspace to query. If not provided, uses the active editor's workspace or the first available workspace."
}
}
}
},
{
"name": "elixir-implementation-finder",
"displayName": "Elixir Implementation Finder",
"modelDescription": "Find all concrete implementations of Elixir behaviours, protocols, callbacks, and delegated functions across the entire codebase. Essential for discovering how abstract interfaces are implemented and understanding polymorphic behavior patterns.",
"userDescription": "Find implementations of Elixir behaviours, protocols, and callbacks across the codebase.",
"icon": "$(symbol-interface)",
"tags": [
"elixir"
],
"canBeReferencedInPrompt": true,
"toolReferenceName": "elixir-implementation-finder",
"inputSchema": {
"type": "object",
"required": [
"symbol"
],
"properties": {
"symbol": {
"type": "string",
"description": "The symbol to find implementations for. Supports: behaviours ('GenServer', 'Application', 'Supervisor'), protocols ('Enumerable', 'Inspect', 'String.Chars'), callbacks ('GenServer.handle_call', 'Application.start'), functions with @impl annotations. Returns file locations and implementation signatures."
},
"file": {
"type": "string",
"description": "Optional absolute file path to specify which workspace to search. If not provided, uses the active editor's workspace or the first available workspace."
}
}
}
},
{
"name": "elixir-types",
"displayName": "Elixir Type Information",
"modelDescription": "Extract comprehensive type information from Elixir modules including @type definitions, @spec annotations, @callback specifications, and Dialyzer inferred contracts. Essential for understanding module interfaces, type safety, function signatures, and behaviour contracts.",
"userDescription": "Get type specs, callbacks, and Dialyzer contracts for an Elixir module.",
"icon": "$(symbol-class)",
"tags": [
"elixir"
],
"canBeReferencedInPrompt": true,
"toolReferenceName": "elixir-types",
"inputSchema": {
"type": "object",
"required": [
"module"
],
"properties": {
"module": {
"type": "string",
"description": "The module name to analyze type information for. Supports Elixir modules ('GenServer', 'MyApp.MyModule', 'Enum') and Erlang modules (':gen_server', ':ets'). Returns detailed type specifications, function signatures, callback definitions, and custom types with their documentation."
},
"file": {
"type": "string",
"description": "Optional absolute file path to specify which workspace to analyze. If not provided, uses the active editor's workspace or the first available workspace."