Code Monkey home page Code Monkey logo

Comments (5)

patrickshipe avatar patrickshipe commented on July 20, 2024

@remcohaszing it seems that this PR broke this: #99

The JSON worker does the same thing - when the diagnostics options change, we must kill the worker so it restarts with the right options (e.g. schemas). Since we removed this handler, the worker never stops and the changes to not take effect. I added logging to the stopWorker handler in the monaco-yaml 3.0 and confirmed that this callback is called when I update schemas with setDiagnosticsOptions.

from monaco-yaml.

patrickshipe avatar patrickshipe commented on July 20, 2024

It seems that "unloading a language" is different from restarting the worker when settings change - since this event chain is being fired from within the plugin when setDiagnosticsOptions is called.

from monaco-yaml.

patrickshipe avatar patrickshipe commented on July 20, 2024

Sorry for the repeat comments - I put a PR together to restore this, but I do not have permissions in this repo. Happy to share if you would like!

from monaco-yaml.

remcohaszing avatar remcohaszing commented on July 20, 2024

Hi @patrickshipe. Thanks for identifying and diagnosing this problem. I think I found the problem as well, but I want to give you a chance to propose your fix. :)

In order to make a change in a repository on GitHub you don’t have permission on, you’ll need to:

  • fork it
  • clone your fork
  • create a new branch
  • make changes to your cloned fork
  • push the branch to your fork
  • make a pull request from your fork to this repository

For more info see the GitHub’s Fork a repo

I’m looking forward to your fix!

from monaco-yaml.

patrickshipe avatar patrickshipe commented on July 20, 2024

Thank you for the tips @remcohaszing - first time using GitHub to contribute to an outside project! PR created: #109

from monaco-yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.