Skip to content
Snippets Groups Projects

[#1922] Suggest restarting when LIGO path is changed

Merged [#1922] Suggest restarting when LIGO path is changed
All threads resolved!
Merged Konstantin Ivanov requested to merge martoon/#1922-restart-on-ligo-path-update into dev
All threads resolved!

Motivation and Context

When LIGO path changes in settings, LSP does not account for that until VSCode is restarted.

This MR fixes it via adding a suggestion to reload VSCode when LIGO path is changed. There are other possible options, see commits descriptions for my thoughts and motivation.

As a separate MR we will have to care about making restarting uniform. Currently, all the functions in updateLigo.ts, and RestartServer command assume that for restart it is sufficient to do languageClient.stop(); languageClient.start(), and now we know it is not sufficient. Whenever we do the restart, we should make sure that it grabs the new path to LIGO.

Related issues

Resolves partially #1922 (closed).

:white_check_mark: Checklist for the LIGO Language Server

  • I checked whether I need to update the README.md file for the plugin and did so if necessary:
    • If I implemented a new LSP request, I added it to the list of supported features that may be disabled
    • If I implemented a new LSP method, I added it to the list of supported functionality
  • I checked that my changes work in Emacs, Vim, and Visual Studio Code
  • (Before merging) The commit history is squashed and prettified, and follows the Serokell commit policy, or the MR is set to squash the commits

Description

Component

  • compiler
  • website
  • webide
  • vscode-plugin
  • debugger

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Performance improvement (non-breaking change that improves performance)
  • None (change with no changelog)

Changelog

When changing LIGO path in settings, a suggestion will pop up to restart VSCode.

Checklist:

  • Changes follow the existing coding style (use dune @fmt to check).
  • Tests for the changes have been added (for bug fixes / feature). Should I add some tests here?
  • Documentation has been updated.
  • Changelog description has been added (if appropriate).
  • Start titles under ## Changelog section with #### (if appropriate).
  • There is no image or uploaded file in changelog
  • Examples in changed behaviour have been added to the changelog (for breaking change / feature).
Edited by Konstantin Ivanov

Merge request reports

Merge train pipeline #1159487876 passed with warnings

Merge train pipeline passed with warnings for d22fdaac

Approved by

Merged by Konstantin IvanovKonstantin Ivanov 1 year ago (Jan 31, 2024 5:28pm UTC)

Merge details

  • Changes merged into dev with a1660910.
  • Deleted the source branch.
  • Auto-merge enabled

Pipeline #1159513418 passed

Pipeline passed for a1660910 on dev

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Heitor Toledo Lassarote de Paula
  • Heitor Toledo Lassarote de Paula
    • Resolved by Heitor Toledo Lassarote de Paula

      I see ExTester tests failed. This is an incredibly finicky tool that is painful to set up and maintain but it's the only alternative to test the UI. If you need help with it, let me know.

      First of all, retry those jobs. I don't think it will help, but sometimes it does.

      If that doesn't work, I suggest running those tests locally and seeing if any unexpected UI elements pop up. Check if the tests try to change some configuration or something. If so, you might need to adapt the tests to press "Do nothing"/"Cancel".

  • Konstantin Ivanov changed title from [#1922 (closed)] {-Extract name of ligoBinaryPath option-} to [#1922 (closed)] Suggest restarting when LIGO path is changed

    changed title from [#1922 (closed)] {-Extract name of ligoBinaryPath option-} to [#1922 (closed)] Suggest restarting when LIGO path is changed

  • Konstantin Ivanov added 2 commits

    added 2 commits

    Compare with previous version

  • Konstantin Ivanov marked this merge request as draft from cd48850b

    marked this merge request as draft from cd48850b

  • Heitor Toledo Lassarote de Paula
  • Konstantin Ivanov added 5 commits

    added 5 commits

    Compare with previous version

  • resolved all threads

  • Heitor Toledo Lassarote de Paula approved this merge request

    approved this merge request

  • added 1 commit

    Compare with previous version

  • Konstantin Ivanov marked this merge request as ready

    marked this merge request as ready

  • Sorokin-Anton approved this merge request

    approved this merge request

  • Sorokin-Anton
  • Sorokin-Anton resolved all threads

    resolved all threads

  • Sorokin-Anton resolved all threads

    resolved all threads

  • mentioned in commit 6e9a4580

  • Laurent Canis added 2 commits

    added 2 commits

    Compare with previous version

  • Edited by Ligo Lang
  • Konstantin Ivanov enabled automatic add to merge train when the pipeline for 05ab3b34 succeeds

    enabled automatic add to merge train when the pipeline for 05ab3b34 succeeds

  • Konstantin Ivanov started a merge train

    started a merge train

  • mentioned in commit a1660910

  • mentioned in issue #1922 (closed)

  • Please register or sign in to reply
    Loading