rstfilter 0.3.0 → 0.4.0

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: 7748145a8ee9d8b7d736f9aa80f640f34559033cf62d46cc862dde7d20a670b2
4
- data.tar.gz: 77c94519079d2df1ad8dcbc9d5421536b5b40f92e30bee805b9e2007ea65f818
3
+ metadata.gz: daa8ebce99a8413104e64add5ee66e5f613c0e658b3f3beba239fc2f947e6213
4
+ data.tar.gz: 11a2afb17c240bb8d953b7111501d18f460da7442b6479679363a62ea33bba66
5
5
  SHA512:
6
- metadata.gz: 50bb4bbecccddec785a08aedff8a1bffcf11a9d02541e11998677e8d5b7e7979467393d33615e2776fde1c7f0468e8f3cb4ec3fafd3a2200ef1225654867e0b7
7
- data.tar.gz: 1e020aa1db7a99c7ad82eb1c0c941b87c935bf0f603d63bba24c0173ad045232b27981e530367369a0fe8befe7dab81f017736ded1ab78d6790294660bbde1a0
6
+ metadata.gz: 2c22b014632dbc34fdb7bca057294615af8713c56fafb8cc10121f8bf70dc6a802691f8b4aa79600430dc876fd22869980a444453e485665a4b1c12909478f93
7
+ data.tar.gz: 8af43aa24f7ef98ac513433704a8c6c22b3bea03d051adab744ba0342efed7c3af16c4a0e07b63bdf395d12fa4cfc290ccc7170b747a4be8757045d71e4fb1d2
@@ -131,7 +131,7 @@ module RstFilter
131
131
  textDocumentSync: {
132
132
  openClose: true,
133
133
  change: 2, # Incremental
134
- save: true,
134
+ # save: true,
135
135
  },
136
136
 
137
137
  inlineValueProvider: true,
@@ -238,7 +238,7 @@ module RstFilter
238
238
  end
239
239
 
240
240
  def take_record filename
241
- send_notice 'rstfilter/start', {
241
+ send_notice 'rstfilter/started', {
242
242
  uri: filename,
243
243
  }
244
244
  @running[filename] = Thread.new do
@@ -290,12 +290,16 @@ module RstFilter
290
290
  }
291
291
  when 'textDocument/didOpen',
292
292
  'textDocument/didSave'
293
- filename = uri2filename req.dig(:params, :textDocument, :uri)
294
- take_record filename
293
+ #filename = uri2filename req.dig(:params, :textDocument, :uri)
294
+ #take_record filename
295
+ # do nothing
295
296
  when 'textDocument/didClose',
296
297
  'textDocument/didChange'
297
298
  filename = uri2filename req.dig(:params, :textDocument, :uri)
298
299
  clear_record filename
300
+ when 'rstfilter/start'
301
+ filename = req.dig(:params, :path)
302
+ take_record filename
299
303
  when '$/cancelRequest'
300
304
  # ignore
301
305
  when 'exit'
@@ -1,3 +1,3 @@
1
1
  module RstFilter
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rstfilter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-12 00:00:00.000000000 Z
11
+ date: 2022-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser