File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -234,16 +234,19 @@ export default class BashServer {
234
234
} ,
235
235
} ) )
236
236
237
- const programCompletions = this . executables . list ( ) . map ( ( s : string ) => {
238
- return {
239
- label : s ,
240
- kind : LSP . SymbolKind . Function ,
241
- data : {
242
- name : s ,
243
- type : CompletionItemDataType . Executable ,
244
- } ,
245
- }
246
- } )
237
+ const programCompletions = this . executables
238
+ . list ( )
239
+ . filter ( executable => ! Builtins . isBuiltin ( executable ) )
240
+ . map ( executable => {
241
+ return {
242
+ label : executable ,
243
+ kind : LSP . SymbolKind . Function ,
244
+ data : {
245
+ name : executable ,
246
+ type : CompletionItemDataType . Executable ,
247
+ } ,
248
+ }
249
+ } )
247
250
248
251
const builtinsCompletions = Builtins . LIST . map ( builtin => ( {
249
252
label : builtin ,
@@ -254,7 +257,6 @@ export default class BashServer {
254
257
} ,
255
258
} ) )
256
259
257
- // TODO: we have duplicates here (e.g. echo is both a builtin AND have a man page)
258
260
const allCompletions = [
259
261
...reservedWordsCompletions ,
260
262
...symbolCompletions ,
You can’t perform that action at this time.
0 commit comments