[cm6] Remove Galileo code (#14336)
GitOrigin-RevId: 878faff8eea90f508aa94e4471990c31d5d3f0e5
This commit is contained in:
@@ -35,12 +35,6 @@ EditorContext.Provider.propTypes = {
|
||||
showSymbolPalette: PropTypes.bool,
|
||||
toggleSymbolPalette: PropTypes.func,
|
||||
insertSymbol: PropTypes.func,
|
||||
showGalileo: PropTypes.bool,
|
||||
galileoActivated: PropTypes.bool,
|
||||
toggleGalileoPanel: PropTypes.func,
|
||||
toggleGalileo: PropTypes.func,
|
||||
insertGalileoAutocomplete: PropTypes.func,
|
||||
addGalileoReferenceToProject: PropTypes.func,
|
||||
isProjectOwner: PropTypes.bool,
|
||||
isRestrictedTokenMember: PropTypes.bool,
|
||||
permissionsLevel: PropTypes.oneOf(['readOnly', 'readAndWrite', 'owner']),
|
||||
@@ -84,10 +78,6 @@ export function EditorProvider({ children, settings }) {
|
||||
const [permissionsLevel] = useScopeValue('permissionsLevel')
|
||||
const [showSymbolPalette] = useScopeValue('editor.showSymbolPalette')
|
||||
const [toggleSymbolPalette] = useScopeValue('editor.toggleSymbolPalette')
|
||||
const [showGalileo] = useScopeValue('editor.showGalileo')
|
||||
const [galileoActivated] = useScopeValue('editor.galileoActivated')
|
||||
const [toggleGalileoPanel] = useScopeValue('editor.toggleGalileoPanel')
|
||||
const [toggleGalileo] = useScopeValue('editor.toggleGalileo')
|
||||
|
||||
useEffect(() => {
|
||||
if (ide?.socket) {
|
||||
@@ -149,22 +139,6 @@ export function EditorProvider({ children, settings }) {
|
||||
)
|
||||
}, [])
|
||||
|
||||
const insertGalileoAutocomplete = useCallback(suggestion => {
|
||||
window.dispatchEvent(
|
||||
new CustomEvent('editor:insert-galileo-completion', {
|
||||
detail: suggestion,
|
||||
})
|
||||
)
|
||||
}, [])
|
||||
|
||||
const addGalileoReferenceToProject = useCallback((citationKey, bibtex) => {
|
||||
window.dispatchEvent(
|
||||
new CustomEvent('editor:galileo-request-save-reference-in-project', {
|
||||
detail: { citationKey, bibtex },
|
||||
})
|
||||
)
|
||||
}, [])
|
||||
|
||||
const value = useMemo(
|
||||
() => ({
|
||||
cobranding,
|
||||
@@ -177,12 +151,6 @@ export function EditorProvider({ children, settings }) {
|
||||
showSymbolPalette,
|
||||
toggleSymbolPalette,
|
||||
insertSymbol,
|
||||
showGalileo,
|
||||
galileoActivated,
|
||||
toggleGalileoPanel,
|
||||
toggleGalileo,
|
||||
insertGalileoAutocomplete,
|
||||
addGalileoReferenceToProject,
|
||||
}),
|
||||
[
|
||||
cobranding,
|
||||
@@ -195,12 +163,6 @@ export function EditorProvider({ children, settings }) {
|
||||
showSymbolPalette,
|
||||
toggleSymbolPalette,
|
||||
insertSymbol,
|
||||
showGalileo,
|
||||
galileoActivated,
|
||||
toggleGalileoPanel,
|
||||
toggleGalileo,
|
||||
insertGalileoAutocomplete,
|
||||
addGalileoReferenceToProject,
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user