@dao42/d42paas-front 0.6.15 → 0.6.16
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.
- package/dist/DaoPaaS.es.js +6 -4
- package/dist/DaoPaaS.umd.js +76 -76
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -187822,10 +187822,11 @@ const Editor = ({
|
|
|
187822
187822
|
serviceWorkerOrigin,
|
|
187823
187823
|
useLsp
|
|
187824
187824
|
}) => {
|
|
187825
|
+
const [lspInited, setlspInited] = react.exports.useState(false);
|
|
187826
|
+
const [client2, setClient] = react.exports.useState(new IoClient(0));
|
|
187825
187827
|
const divEl = react.exports.useRef(null);
|
|
187826
187828
|
const file = oTStore((state) => state.doc);
|
|
187827
187829
|
const setFromServer = oTStore((state) => state.setFromServer);
|
|
187828
|
-
const [client2, setClient] = react.exports.useState(new IoClient(0));
|
|
187829
187830
|
const OTSTATE = oTStore((state) => state);
|
|
187830
187831
|
const USERLISTSTORE = userListStore((state) => state);
|
|
187831
187832
|
const setPosition = useValue((state) => state.setPosition);
|
|
@@ -188011,8 +188012,9 @@ const Editor = ({
|
|
|
188011
188012
|
lspUrl,
|
|
188012
188013
|
ticket
|
|
188013
188014
|
} = oTStore.getState().dockerInfo;
|
|
188014
|
-
if (!useLsp2 || !lspUrl)
|
|
188015
|
+
if (!useLsp2 || !lspUrl || lspInited)
|
|
188015
188016
|
return;
|
|
188017
|
+
setlspInited(true);
|
|
188016
188018
|
lib.MonacoServices.install(monaco);
|
|
188017
188019
|
if (!lspUrl)
|
|
188018
188020
|
return;
|
|
@@ -188094,7 +188096,7 @@ const Editor = ({
|
|
|
188094
188096
|
}
|
|
188095
188097
|
});
|
|
188096
188098
|
editorEventBinder();
|
|
188097
|
-
lspServerInject(INIT_LANGUAGE,
|
|
188099
|
+
lspServerInject(INIT_LANGUAGE, false);
|
|
188098
188100
|
const editorService = editor._codeEditorService;
|
|
188099
188101
|
const openEditorBase = editorService.openCodeEditor.bind(editorService);
|
|
188100
188102
|
editorService.openCodeEditor = async (input, source, workspacePath) => {
|
|
@@ -188341,7 +188343,7 @@ const Editor = ({
|
|
|
188341
188343
|
}, [file == null ? void 0 : file.path]);
|
|
188342
188344
|
react.exports.useEffect(() => {
|
|
188343
188345
|
lspServerInject("", useLsp);
|
|
188344
|
-
}, [useLsp, OTSTATE.dockerInfo]);
|
|
188346
|
+
}, [useLsp, OTSTATE.dockerInfo, lspInited]);
|
|
188345
188347
|
react.exports.useEffect(() => {
|
|
188346
188348
|
const {
|
|
188347
188349
|
usersDelta,
|