steep 1.8.1 → 1.8.2

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: 1619c69c7c85bbe5f0dffc4826aabf3e5a4ffa46c4eba61bab5a47ef29957d65
4
- data.tar.gz: 25540890ecd3d6b7dfa2cd280c65da59b7ec65e520942fa09175908d3bfe124a
3
+ metadata.gz: 6f40f4acb0e71a6cfd2b751297f2fc1a9cd18a87545d24cec51c0da5f1e9792e
4
+ data.tar.gz: 947ea73b078a7c1b9dc37e2855a6e483d1bbc919414b97226a3393bf92cb6bf8
5
5
  SHA512:
6
- metadata.gz: 3715058e9bf76839a0072e3f5e01fbcce25913e0a23b03ae645644b8c88f0f5160264ce3aa989c391a3b81ee04c7104670f0c77ce3c8192a847909c6f4e8fa9d
7
- data.tar.gz: 759e541a4444b02c2c86a8adbab2c606e667010c427146d4e74a61d422ddd55ce70ef30953d1ad94a7f1afea0a216f9e6198ffab71693b0bb7370819cc52707e
6
+ metadata.gz: b146bd6a93a59b5ec7a3029b061fc352c1e93c9bd87cfac89783b9a54175f076bc208a6f94adc32fa2a1802fdc94a422f1c64fbca555eb5ad93481ce7ff88b5d
7
+ data.tar.gz: d746bee9df6ab60f43811ec81a415348927bde046cba2cf7b2dd5e4204438e9dc317456ed9d61358fbbfe22125c569451687b9d528b17d1792e470e29dac43c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.8.2 (2024-10-24)
4
+
5
+ ### Language server
6
+
7
+ * Ignore `didChangeWatchedFiles notification` for open files ([#1290](https://github.com/soutaro/steep/pull/1290))
8
+
3
9
  ## 1.8.1 (2024-10-08)
4
10
 
5
11
  ### Language server
@@ -702,13 +702,17 @@ module Steep
702
702
  end
703
703
 
704
704
  when "workspace/didChangeWatchedFiles"
705
+ updated_watched_files = [] #: Array[Pathname]
706
+
705
707
  message[:params][:changes].each do |change|
706
708
  uri = change[:uri]
707
709
  type = change[:type]
708
710
 
709
- path = PathHelper.to_pathname(uri) or next
711
+ path = PathHelper.to_pathname!(uri)
710
712
 
711
713
  unless controller.priority_paths.include?(path)
714
+ updated_watched_files << path
715
+
712
716
  controller.push_changes(path)
713
717
 
714
718
  case type
@@ -720,10 +724,16 @@ module Steep
720
724
  end
721
725
 
722
726
  content or raise
727
+
723
728
  broadcast_notification(CustomMethods::FileReset.notification({ uri: uri, content: content }))
724
729
  end
725
730
  end
726
731
 
732
+ if updated_watched_files.empty?
733
+ Steep.logger.info { "Exit from workspace/didChangeWatchedFiles notification because all of the changed files are already open" }
734
+ return
735
+ end
736
+
727
737
  if typecheck_automatically
728
738
  start_type_checking_queue.execute do
729
739
  job_queue.push(
data/lib/steep/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Steep
2
- VERSION = "1.8.1"
2
+ VERSION = "1.8.2"
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: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soutaro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-08 00:00:00.000000000 Z
11
+ date: 2024-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -410,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
410
  - !ruby/object:Gem::Version
411
411
  version: '0'
412
412
  requirements: []
413
- rubygems_version: 3.5.17
413
+ rubygems_version: 3.5.11
414
414
  signing_key:
415
415
  specification_version: 4
416
416
  summary: Gradual Typing for Ruby