steep 0.43.0 → 0.43.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/steep/server/master.rb +18 -18
- data/lib/steep/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7af0aaa9c4c7b0dd2bae9104603131370d976133d866e3d7760c4b2fa581e694
|
4
|
+
data.tar.gz: eb1421e3b07c1f06e427073bb72d55138eda935e2269874f5727eecb035a00fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 815776632903ca2679af4ae7e7b4a22fa4388956b56706b862f21d76bea6edbbb928d8423504a99a352db71bf7d777e1148a57fe803b582814f1f1526cc45358
|
7
|
+
data.tar.gz: 70839258fe699f8b246b66cf5e865cb33a9231b5d34e12b40f880bc6b3c50566fe53e0df74645785a3bf1091cbbe34ad4e216ac9d37fdcc3bb3ef32532ab5363
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 0.43.1 (2021-04-01)
|
6
|
+
|
7
|
+
* Fix LSP `textDocument/didSave` notification handling ([#368](https://github.com/soutaro/steep/issues/368))
|
8
|
+
|
5
9
|
## 0.43.0 (2021-03-30)
|
6
10
|
|
7
11
|
* LSP responsiveness improvements ([\#352](https://github.com/soutaro/steep/issues/352))
|
data/lib/steep/server/master.rb
CHANGED
@@ -509,8 +509,9 @@ module Steep
|
|
509
509
|
|
510
510
|
when "initialized"
|
511
511
|
if typecheck_automatically
|
512
|
-
request = controller.make_request(include_unchanged: true)
|
513
|
-
|
512
|
+
if request = controller.make_request(include_unchanged: true)
|
513
|
+
start_type_check(request, last_request: nil, start_progress: request.total > 10)
|
514
|
+
end
|
514
515
|
end
|
515
516
|
|
516
517
|
when "textDocument/didChange"
|
@@ -520,12 +521,13 @@ module Steep
|
|
520
521
|
|
521
522
|
when "textDocument/didSave"
|
522
523
|
if typecheck_automatically
|
523
|
-
request = controller.make_request(last_request: current_type_check_request)
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
524
|
+
if request = controller.make_request(last_request: current_type_check_request)
|
525
|
+
start_type_check(
|
526
|
+
request,
|
527
|
+
last_request: current_type_check_request,
|
528
|
+
start_progress: request.total > 10
|
529
|
+
)
|
530
|
+
end
|
529
531
|
end
|
530
532
|
|
531
533
|
when "textDocument/didOpen"
|
@@ -588,11 +590,14 @@ module Steep
|
|
588
590
|
last_request: current_type_check_request,
|
589
591
|
include_unchanged: true
|
590
592
|
)
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
593
|
+
|
594
|
+
if request
|
595
|
+
start_type_check(
|
596
|
+
request,
|
597
|
+
last_request: current_type_check_request,
|
598
|
+
start_progress: true
|
599
|
+
)
|
600
|
+
end
|
596
601
|
|
597
602
|
when "shutdown"
|
598
603
|
result_controller << group_request do |group|
|
@@ -637,11 +642,6 @@ module Steep
|
|
637
642
|
|
638
643
|
def start_type_check(request, last_request:, start_progress:)
|
639
644
|
Steep.logger.tagged "#start_type_check(#{request.guid}, #{last_request&.guid}" do
|
640
|
-
unless request
|
641
|
-
Steep.logger.info "Skip start type checking"
|
642
|
-
return
|
643
|
-
end
|
644
|
-
|
645
645
|
if last_request
|
646
646
|
Steep.logger.info "Cancelling last request"
|
647
647
|
|
data/lib/steep/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steep
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.43.
|
4
|
+
version: 0.43.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soutaro Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|