Skip to content

Commit

Permalink
Update pygls to 0.10 (#18)
Browse files Browse the repository at this point in the history
* Update pygls to 0.10
* Add 'verbose' flag
  • Loading branch information
muffinmad authored Mar 30, 2021
1 parent ade5367 commit db3dd2c
Show file tree
Hide file tree
Showing 7 changed files with 203 additions and 172 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# NEWS

## 1.13

- Use pygls 0.10.2
- Faster document changes builder

## 1.12

- Use Jedi v0.18
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Yet another Jedi Python language server
## Requirements

- Python >= 3.6
- pygls ~= 0.9
- pygls >= 0.10.2,<0.11
- Jedi >= 0.18
- pyflakes ~= 2.2
- pycodestyle ~= 2.5
Expand Down
9 changes: 9 additions & 0 deletions anakinls/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def main():
help='Print version and exit'
)

parser.add_argument(
'-v', action='store_true',
help='Verbose output'
)

args = parser.parse_args()

if args.version:
Expand All @@ -59,6 +64,10 @@ def main():
'''))
return

if args.v:
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('pygls.protocol').setLevel(logging.DEBUG)

if args.tcp:
server.start_tcp(args.host, args.port)
else:
Expand Down
Loading

0 comments on commit db3dd2c

Please sign in to comment.