|
|
@ -61,13 +61,11 @@ export const CompilerContainer = (props: CompilerContainerProps) => { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
api.setAppParameter('configFilePath', "/compiler_config.json") |
|
|
|
api.setAppParameter('configFilePath', "/compiler_config.json") |
|
|
|
api.setAppParameter('useFileConfiguration', false) |
|
|
|
|
|
|
|
setShowFilePathInput(false) |
|
|
|
setShowFilePathInput(false) |
|
|
|
}, [workspaceName]) |
|
|
|
}, [workspaceName]) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
const listener = (event) => { |
|
|
|
const listener = (event) => { |
|
|
|
console.log("mouse event ", event) |
|
|
|
|
|
|
|
if (configFilePathInput.current !== event.target) { |
|
|
|
if (configFilePathInput.current !== event.target) { |
|
|
|
setShowFilePathInput(false) |
|
|
|
setShowFilePathInput(false) |
|
|
|
return; |
|
|
|
return; |
|
|
@ -194,9 +192,9 @@ export const CompilerContainer = (props: CompilerContainerProps) => { |
|
|
|
|
|
|
|
|
|
|
|
const toggleConfigType = () => { |
|
|
|
const toggleConfigType = () => { |
|
|
|
setState(prevState => { |
|
|
|
setState(prevState => { |
|
|
|
|
|
|
|
api.setAppParameter('useFileConfiguration', !state.useFileConfiguration) |
|
|
|
return { ...prevState, useFileConfiguration: !state.useFileConfiguration } |
|
|
|
return { ...prevState, useFileConfiguration: !state.useFileConfiguration } |
|
|
|
}) |
|
|
|
}) |
|
|
|
api.setAppParameter('useFileConfiguration', state.useFileConfiguration) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const openFile = async () => { |
|
|
|
const openFile = async () => { |
|
|
|