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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0568c96d6a39d5c6db14e2259b5cdf3cd39bfaf5f2a4368ce060de4c803c0c96'
4
- data.tar.gz: d820c5f0c0d6394893a907999d4fdbd0f3a90b4821380c20598e9251d29852e6
3
+ metadata.gz: 7af0aaa9c4c7b0dd2bae9104603131370d976133d866e3d7760c4b2fa581e694
4
+ data.tar.gz: eb1421e3b07c1f06e427073bb72d55138eda935e2269874f5727eecb035a00fb
5
5
  SHA512:
6
- metadata.gz: 8f4f17d938d9f7f462f3db8aff1e48f8bf4118ab66bf40b35abd9b38ea3585014a0d8d372277e5589e9697043946b0e646193e4d7413c55fcf490d6065494203
7
- data.tar.gz: d7ece354f2e50faa86b65ed4a62c14f97dc74550fb81326142b8932f8c58deb2da40679a34e1869183e15ab4a90e939fb0041c44c63a5149b8234c82058481b0
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))
@@ -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
- start_type_check(request, last_request: nil, start_progress: request.total > 10)
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
- start_type_check(
525
- request,
526
- last_request: current_type_check_request,
527
- start_progress: request.total > 10
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
- start_type_check(
592
- request,
593
- last_request: current_type_check_request,
594
- start_progress: true
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
@@ -1,3 +1,3 @@
1
1
  module Steep
2
- VERSION = "0.43.0"
2
+ VERSION = "0.43.1"
3
3
  end
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.0
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-03-30 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser