Comments (5)
@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.
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.
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.
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.
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)
- Can the yaml worker be used to validate a yaml against a schema? HOT 1
- Apply Monaco YAML validation schema on specific Monaco editor instances HOT 2
- How to get the values of a aymbol which is an array type? HOT 2
- Can I use setDiagnosticsOptions for multiple schemas that are fetched lazily? HOT 1
- Autocomplete initializes the value with null instead of it's optional values HOT 3
- Requesting example for react-monaco-editor HOT 1
- Global CSS cannot be imported from within node_modules HOT 5
- How to test the demos with a locally-modified version of `yaml-language-server`? HOT 2
- Error: path3.basename is not a function HOT 2
- how to use `yaml` as an embedded language HOT 4
- Autompletion not working in Example HOT 2
- support prettier v3 HOT 2
- configureyaml is not working with @monaco-editor/react HOT 12
- References fail to resolve when using locally defined schema with `enableSchemaRequest` set to false HOT 1
- Ability to tweak autocompletion HOT 1
- monaco-yaml在销毁的时候调用dispose()后控制台报错 HOT 1
- [ BUG ] Next.JS 14.1 Can't load worker file HOT 1
- [ NEED HELP ] window is not defined on NextJS 14.1.0 HOT 3
- How to load with @monaco-editor/loader? HOT 1
- Does this library is support with monaco editor AMD version HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-yaml.