Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ec5b89b

Browse files
authored
Merge pull request #1328 from otreblan/master
Restore command line arguments completion
2 parents 5fd4ade + 29d81c7 commit ec5b89b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-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/__tests__/server.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ describe('server', () => {
8282
"triggerCharacters": [
8383
"$",
8484
"{",
85+
"-",
8586
],
8687
},
8788
"definitionProvider": true,

‎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)

AltStyle によって変換されたページ (->オリジナル) /