Skip to content

Commit af244fb

Browse files
authored
Merge pull request #308 from glennsarti/prep-1.2.0
(GH-309) Prepare 1.2.0 release
2 parents 4ef1a57 + f322284 commit af244fb

File tree

9 files changed

+22
-7
lines changed

9 files changed

+22
-7
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
66

77
## Unreleased
88

9+
## 1.2.0 - 2021-05-26
10+
11+
### Added
12+
13+
- ([GH-306](https://github.com/puppetlabs/puppet-editor-services/issues/306)) Add a code folding range provider for Manifests
14+
15+
### Fixed
16+
17+
- ([GH-300](https://github.com/puppetlabs/puppet-editor-services/issues/300)) Return nil for bad hover requests
18+
- ([Commit](https://github.com/puppetlabs/puppet-editor-services/commit/b9a0d98f377e8a7b083a285e88cb538b6a9c45b1)) FixedP typo ([Juan vStone](https://github.com/vStone))
19+
20+
921
## 1.1.0 - 2021-01-27
1022

1123
### Added

lib/puppet-languageserver/static_data/bolt-boltlib.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"functions":[{"key":"ctrl::sleep","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Sleeps for specified number of seconds.","function_version":4,"signatures":[{"key":"ctrl::sleep(Numeric $period)","doc":"Sleeps for specified number of seconds.","return_types":["Undef"],"parameters":[{"name":"period","doc":"Time to sleep (in seconds)","types":["Numeric"],"signature_key_offset":20,"signature_key_length":7}]}]},{"key":"ctrl::do_until","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Repeat the block until it returns a truthy value. Returns the value.","function_version":4,"signatures":[{"key":"ctrl::do_until(Optional[Hash[String[1], Any]] $options, Callable &$block)","doc":"Repeat the block until it returns a truthy value. Returns the value.","return_types":["Any"],"parameters":[{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Any]]"],"signature_key_offset":46,"signature_key_length":8},{"name":"&block","doc":"","types":["Callable"],"signature_key_offset":65,"signature_key_length":7}]}]}]}
1+
{"functions":[{"key":"ctrl::sleep","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Sleeps for specified number of seconds.","function_version":4,"signatures":[{"key":"ctrl::sleep(Numeric $period)","doc":"Sleeps for specified number of seconds.","return_types":["Undef"],"parameters":[{"name":"period","doc":"Time to sleep (in seconds)","types":["Numeric"],"signature_key_offset":20,"signature_key_length":7}]}]},{"key":"ctrl::do_until","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Repeat the block until it returns a truthy value. Returns the value.","function_version":4,"signatures":[{"key":"ctrl::do_until(Optional[Hash[String[1], Any]] $options, Callable &$block)","doc":"Repeat the block until it returns a truthy value. Returns the value.","return_types":["nil"],"parameters":[{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Any]]"],"signature_key_offset":46,"signature_key_length":8},{"name":"&block","doc":"The code block to repeat.","types":["Callable"],"signature_key_offset":65,"signature_key_length":7}]}]}]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"functions":[{"key":"file::read","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Read a file on localhost and return its contents using ruby's `File.read`. This will\nonly read files on the machine you run Bolt on.","function_version":4,"signatures":[{"key":"file::read(String $filename)","doc":"Read a file on localhost and return its contents using ruby's `File.read`. This will\nonly read files on the machine you run Bolt on.","return_types":["String"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":18,"signature_key_length":9}]}]},{"key":"file::readable","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a local file is readable using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files on the\nmachine you run Bolt on.","function_version":4,"signatures":[{"key":"file::readable(String $filename)","doc":"Check if a local file is readable using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files on the\nmachine you run Bolt on.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":22,"signature_key_length":9}]}]},{"key":"file::exists","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a local file exists using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files that\nare on the machine Bolt is run on.","function_version":4,"signatures":[{"key":"file::exists(String $filename)","doc":"Check if a local file exists using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files that\nare on the machine Bolt is run on.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String"],"signature_key_offset":20,"signature_key_length":9}]}]},{"key":"file::join","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Join file paths using ruby's `File.join()` function.","function_version":4,"signatures":[{"key":"file::join(String *$paths)","doc":"Join file paths using ruby's `File.join()` function.","return_types":["String"],"parameters":[{"name":"*paths","doc":"The paths to join.","types":["String"],"signature_key_offset":18,"signature_key_length":7}]}]},{"key":"file::write","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Write a string to a file on localhost using ruby's `File.write`. This will\nonly write files to the machine you run Bolt on. Use `write_file()` to write\nto remote targets.","function_version":4,"signatures":[{"key":"file::write(String $filename, String $content)","doc":"Write a string to a file on localhost using ruby's `File.write`. This will\nonly write files to the machine you run Bolt on. Use `write_file()` to write\nto remote targets.","return_types":["Undef"],"parameters":[{"name":"filename","doc":"Absolute path.","types":["String"],"signature_key_offset":19,"signature_key_length":9},{"name":"content","doc":"File content to write.","types":["String"],"signature_key_offset":37,"signature_key_length":8}]}]}]}
1+
{"functions":[{"key":"file::read","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Read a file on localhost and return its contents using ruby's `File.read`. This will\nonly read files on the machine you run Bolt on.","function_version":4,"signatures":[{"key":"file::read(String[1] $filename)","doc":"Read a file on localhost and return its contents using ruby's `File.read`. This will\nonly read files on the machine you run Bolt on.","return_types":["String"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String[1]"],"signature_key_offset":21,"signature_key_length":9}]}]},{"key":"file::readable","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a local file is readable using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files on the\nmachine you run Bolt on.","function_version":4,"signatures":[{"key":"file::readable(String[1] $filename)","doc":"Check if a local file is readable using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files on the\nmachine you run Bolt on.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String[1]"],"signature_key_offset":25,"signature_key_length":9}]}]},{"key":"file::exists","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Check if a local file exists using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files that\nare on the machine Bolt is run on.","function_version":4,"signatures":[{"key":"file::exists(String[1] $filename)","doc":"Check if a local file exists using Puppet's\n`Puppet::Parser::Files.find_file()` function. This will only check files that\nare on the machine Bolt is run on.","return_types":["Boolean"],"parameters":[{"name":"filename","doc":"Absolute path or Puppet file path.","types":["String[1]"],"signature_key_offset":23,"signature_key_length":9}]}]},{"key":"file::join","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Join file paths using ruby's `File.join()` function.","function_version":4,"signatures":[{"key":"file::join(String *$paths)","doc":"Join file paths using ruby's `File.join()` function.","return_types":["String"],"parameters":[{"name":"*paths","doc":"The paths to join.","types":["String"],"signature_key_offset":18,"signature_key_length":7}]}]},{"key":"file::write","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Write a string to a file on localhost using ruby's `File.write`. This will\nonly write files to the machine you run Bolt on. Use `write_file()` to write\nto remote targets.","function_version":4,"signatures":[{"key":"file::write(String $filename, String $content)","doc":"Write a string to a file on localhost using ruby's `File.write`. This will\nonly write files to the machine you run Bolt on. Use `write_file()` to write\nto remote targets.","return_types":["Undef"],"parameters":[{"name":"filename","doc":"Absolute path.","types":["String"],"signature_key_offset":19,"signature_key_length":9},{"name":"content","doc":"File content to write.","types":["String"],"signature_key_offset":37,"signature_key_length":8}]}]}]}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"functions":[{"key":"prompt","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Display a prompt and wait for a response.\n\n> **Note:** Not available in apply block","function_version":4,"signatures":[{"key":"prompt(String $prompt, Optional[Hash[String[1], Any]] $options)","doc":"Display a prompt and wait for a response.\n\n> **Note:** Not available in apply block","return_types":["Variant[String, Sensitive]"],"parameters":[{"name":"prompt","doc":"The prompt to display.","types":["String"],"signature_key_offset":14,"signature_key_length":7},{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Any]]"],"signature_key_offset":54,"signature_key_length":8}]}]}]}
1+
{"functions":[{"key":"prompt::menu","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Display a menu prompt and wait for a response. Continues to prompt\nuntil an option from the menu is selected.\n\n> **Note:** Not available in apply block","function_version":4,"signatures":[{"key":"prompt::menu(String $prompt, Array[Variant[Target, Data]] $menu, Optional[Hash[String[1], Variant[Target, Data]]] $options)","doc":"Select from a list of options.","return_types":["Variant[Target, Data]"],"parameters":[{"name":"prompt","doc":"The prompt to display.","types":["String"],"signature_key_offset":20,"signature_key_length":7},{"name":"menu","doc":"A list of options to choose from.","types":["Array[Variant[Target, Data]]"],"signature_key_offset":58,"signature_key_length":5},{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Variant[Target, Data]]]"],"signature_key_offset":114,"signature_key_length":8}]},{"key":"prompt::menu(String $prompt, Hash[String[1], Variant[Target, Data]] $menu, Optional[Hash[String[1], Variant[Target, Data]]] $options)","doc":"Select from a list of options with custom inputs.","return_types":["Variant[TargetSpec, Data]"],"parameters":[{"name":"prompt","doc":"The prompt to display.","types":["String"],"signature_key_offset":20,"signature_key_length":7},{"name":"menu","doc":"A hash of options to choose from, where keys are the input used to select a value.","types":["Hash[String[1], Variant[Target, Data]]"],"signature_key_offset":68,"signature_key_length":5},{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Variant[Target, Data]]]"],"signature_key_offset":124,"signature_key_length":8}]}]},{"key":"prompt","calling_source":null,"source":null,"line":null,"char":null,"length":null,"doc":"Display a prompt and wait for a response.\n\n> **Note:** Not available in apply block","function_version":4,"signatures":[{"key":"prompt(String $prompt, Optional[Hash[String[1], Any]] $options)","doc":"Display a prompt and wait for a response.\n\n> **Note:** Not available in apply block","return_types":["Variant[String, Sensitive]"],"parameters":[{"name":"prompt","doc":"The prompt to display.","types":["String"],"signature_key_offset":14,"signature_key_length":7},{"name":"options","doc":"A hash of additional options.","types":["Optional[Hash[String[1], Any]]"],"signature_key_offset":54,"signature_key_length":8}]}]}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

lib/puppet_editor_services/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module PuppetEditorServices
4-
PUPPETEDITORSERVICESVERSION = '1.1.0' unless defined? PUPPETEDITORSERVICESVERSION
4+
PUPPETEDITORSERVICESVERSION = '1.2.0' unless defined? PUPPETEDITORSERVICESVERSION
55

66
# @api public
77
#

tools/How_to_release.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
* Modify `lib/puppet_editor_services/version.rb` with the new version number
88

9+
* Run the Bolt Introspection script with the latest Bolt version ([link](https://rubygems.org/gems/bolt))
10+
911
2. Once merged get the commit id of the preparation
1012

1113
3. Tag the commit

tools/bolt_introspect/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ This should regenerate all of the bolt files in `/lib/puppet-languageserver/stat
2222
2323
| Component | Version |
2424
| --------------- | ------- |
25-
| Bolt | 2.42.0 |
26-
| Editor Services | 1.1.0 |
25+
| Bolt | 3.8.1 |
26+
| Editor Services | 1.2.0 |

0 commit comments

Comments
 (0)