Skip to content

Commit 4b4f250

Browse files
committed
fix(server): Restore command line arguments completion
1 parent 5fd4ade commit 4b4f250

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scripts": {
44
"clean": "rm -rf *.log */*.log */out node_modules vscode-client/node_modules server/node_modules",
55
"preinstall": "npx only-allow pnpm",
6-
"compile": "tsc -b",
6+
"compile": "tsc -b && cp server/src/get-options.sh server/out/",
77
"watch": "tsc -b -w",
88
"lint": "pnpm lint:bail --fix",
99
"lint:bail": "eslint . --ext js,ts,tsx --cache",

server/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default class BashServer {
121121
textDocumentSync: LSP.TextDocumentSyncKind.Full,
122122
completionProvider: {
123123
resolveProvider: true,
124-
triggerCharacters: ['$', '{'],
124+
triggerCharacters: ['$', '{', '-'],
125125
},
126126
hoverProvider: true,
127127
documentHighlightProvider: true,
@@ -950,7 +950,7 @@ function getMarkdownContent(documentation: string, language?: string): LSP.Marku
950950
}
951951

952952
export function getCommandOptions(name: string, word: string): string[] {
953-
const options = spawnSync(path.join(__dirname, '../src/get-options.sh'), [name, word])
953+
const options = spawnSync(path.join(__dirname, './get-options.sh'), [name, word])
954954

955955
if (options.status !== 0) {
956956
return []

0 commit comments

Comments
 (0)