Skip to content

Commit

Permalink
Fix #155 Add '-' as a completion trigger character
Browse files Browse the repository at this point in the history
Instruction flags all start with a '--' so '-' has been added as a
completion trigger character. This should hopefully make the editing
experience better by not forcing the user to have to manually invoke
content assist.

Signed-off-by: Remy Suen <[email protected]>
  • Loading branch information
rcjsuen committed Aug 21, 2017
1 parent fe7d9c5 commit c000f46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
### Added
- textDocument/completion
- COPY's --from build stage flag ([#148](https://github.com/rcjsuen/dockerfile-language-server-nodejs/issues/148))
- add '-' as a trigger character to suggest instruction flags ([#155](https://github.com/rcjsuen/dockerfile-language-server-nodejs/issues/155))
- textDocument/hover
- COPY's --from build stage flag ([#150](https://github.com/rcjsuen/dockerfile-language-server-nodejs/issues/150))
- textDocument/publishDiagnostics
Expand Down
3 changes: 2 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ connection.onInitialize((params): InitializeResult => {
triggerCharacters: [
'=',
' ',
'$'
'$',
'-',
]
},
executeCommandProvider: {
Expand Down

0 comments on commit c000f46

Please sign in to comment.