@ansible/ansible-ui-framework 2.4.1911 → 2.4.1913

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +9 -4
  2. package/index.umd.cjs +109 -109
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -43437,11 +43437,16 @@ function $C(e, t, n) {
43437
43437
  if (!i(f))
43438
43438
  return;
43439
43439
  let d;
43440
- r.set(f, f.onDidChangeContent(() => {
43440
+ const h = f.onDidChangeContent(() => {
43441
43441
  clearTimeout(d), d = setTimeout(() => {
43442
43442
  a(f);
43443
43443
  }, 500);
43444
- })), a(f);
43444
+ });
43445
+ r.set(f, {
43446
+ dispose() {
43447
+ clearTimeout(d), h.dispose();
43448
+ }
43449
+ }), a(f);
43445
43450
  }, s = (f) => {
43446
43451
  e.editor.setModelMarkers(f, n.owner, []);
43447
43452
  const d = r.get(f);
@@ -43449,9 +43454,9 @@ function $C(e, t, n) {
43449
43454
  }, l = e.editor.onDidCreateModel(o), c = e.editor.onWillDisposeModel((f) => {
43450
43455
  var d;
43451
43456
  s(f), (d = n.doReset) == null || d.call(n, f);
43452
- }), u = e.editor.onDidChangeModelLanguage((f) => {
43457
+ }), u = e.editor.onDidChangeModelLanguage(({ model: f }) => {
43453
43458
  var d;
43454
- s(f.model), o(f.model), (d = n.doReset) == null || d.call(n, f.model);
43459
+ s(f), o(f), (d = n.doReset) == null || d.call(n, f);
43455
43460
  });
43456
43461
  for (const f of e.editor.getModels())
43457
43462
  o(f);