Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

## Unreleased

## 1.2.0 - 2021-05-26

### Added

- ([GH-306](https://github.com/puppetlabs/puppet-editor-services/issues/306)) Add a code folding range provider for Manifests

### Fixed

- ([GH-300](https://github.com/puppetlabs/puppet-editor-services/issues/300)) Return nil for bad hover requests
- ([Commit](https://github.com/puppetlabs/puppet-editor-services/commit/b9a0d98f377e8a7b083a285e88cb538b6a9c45b1)) FixedP typo ([Juan vStone](https://github.com/vStone))


## 1.1.0 - 2021-01-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet-languageserver/static_data/bolt-boltlib.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/puppet-languageserver/static_data/bolt-ctrl.json
Original file line number Diff line number Diff line change
@@ -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}]}]}]}
{"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}]}]}]}
2 changes: 1 addition & 1 deletion lib/puppet-languageserver/static_data/bolt-file.json
Original file line number Diff line number Diff line change
@@ -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}]}]}]}
{"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}]}]}]}
2 changes: 1 addition & 1 deletion lib/puppet-languageserver/static_data/bolt-prompt.json
Original file line number Diff line number Diff line change
@@ -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}]}]}]}
{"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}]}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion lib/puppet_editor_services/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module PuppetEditorServices
PUPPETEDITORSERVICESVERSION = '1.1.0' unless defined? PUPPETEDITORSERVICESVERSION
PUPPETEDITORSERVICESVERSION = '1.2.0' unless defined? PUPPETEDITORSERVICESVERSION

# @api public
#
Expand Down
2 changes: 2 additions & 0 deletions tools/How_to_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

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

* Run the Bolt Introspection script with the latest Bolt version ([link](https://rubygems.org/gems/bolt))

2. Once merged get the commit id of the preparation

3. Tag the commit
Expand Down
4 changes: 2 additions & 2 deletions tools/bolt_introspect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ This should regenerate all of the bolt files in `/lib/puppet-languageserver/stat

| Component | Version |
| --------------- | ------- |
| Bolt | 2.42.0 |
| Editor Services | 1.1.0 |
| Bolt | 3.8.1 |
| Editor Services | 1.2.0 |