@dao42/d42paas-front 0.6.7 → 0.6.8

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.
@@ -187812,7 +187812,8 @@ const Editor = ({
187812
187812
  containerStyle,
187813
187813
  menuStyle,
187814
187814
  editorStyle,
187815
- serviceWorkerOrigin
187815
+ serviceWorkerOrigin,
187816
+ useLsp
187816
187817
  }) => {
187817
187818
  const divEl = react.exports.useRef(null);
187818
187819
  const file = oTStore((state) => state.doc);
@@ -187973,7 +187974,7 @@ const Editor = ({
187973
187974
  });
187974
187975
  }
187975
187976
  };
187976
- const lspServerInject = (_lan, useLsp) => {
187977
+ const lspServerInject = (_lan, useLsp2 = true) => {
187977
187978
  languages.register({
187978
187979
  id: "ruby",
187979
187980
  extensions: [".rb"],
@@ -187999,7 +188000,7 @@ const Editor = ({
187999
188000
  extensions: [".ts"],
188000
188001
  aliases: ["TypeScript", "ts", "TS", "typescript"]
188001
188002
  });
188002
- if (!useLsp)
188003
+ if (!useLsp2)
188003
188004
  return;
188004
188005
  lib.MonacoServices.install(monaco);
188005
188006
  const {
@@ -188085,9 +188086,6 @@ const Editor = ({
188085
188086
  }
188086
188087
  });
188087
188088
  editorEventBinder();
188088
- const {
188089
- useLsp
188090
- } = oTStore.getState().globalData;
188091
188089
  lspServerInject(INIT_LANGUAGE, useLsp);
188092
188090
  const editorService = editor._codeEditorService;
188093
188091
  const openEditorBase = editorService.openCodeEditor.bind(editorService);
@@ -196649,7 +196647,9 @@ const Index = (props2) => {
196649
196647
  fallback: /* @__PURE__ */ jsx(Skeleton, {
196650
196648
  count: 10
196651
196649
  }),
196652
- children: /* @__PURE__ */ jsx(Editor, {})
196650
+ children: /* @__PURE__ */ jsx(Editor, {
196651
+ useLsp: true
196652
+ })
196653
196653
  }) : null
196654
196654
  }), /* @__PURE__ */ jsxs(RunnerLayout, {
196655
196655
  className: `rounded-sm mr-2.5`,