pull/4791/head
filip mertens 6 months ago
parent 3866568488
commit e8b6a2fe92
  1. 2
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx
  2. 2
      libs/remix-ui/git/src/lib/gitactions.ts

@ -637,7 +637,7 @@ export const EditorUI = (props: EditorUIProps) => {
// if(diffEditorRef.current && diffEditorRef.current.getModifiedEditor() && !editorRef.current){ // if(diffEditorRef.current && diffEditorRef.current.getModifiedEditor() && !editorRef.current){
// reducerListener(props.plugin, dispatch, monacoRef.current, [diffEditorRef.current.getModifiedEditor()], props.events) // reducerListener(props.plugin, dispatch, monacoRef.current, [diffEditorRef.current.getModifiedEditor()], props.events)
// } // }
if(diffEditorRef.current && diffEditorRef.current.getModifiedEditor() && editorRef.current){ if (diffEditorRef.current && diffEditorRef.current.getModifiedEditor() && editorRef.current){
reducerListener(props.plugin, dispatch, monacoRef.current, [diffEditorRef.current.getModifiedEditor(), editorRef.current], props.events) reducerListener(props.plugin, dispatch, monacoRef.current, [diffEditorRef.current.getModifiedEditor(), editorRef.current], props.events)
} }
} }

@ -218,7 +218,7 @@ export const addall = async (files: fileStatusResult[]) => {
export const add = async (filepath: addInput) => { export const add = async (filepath: addInput) => {
try { try {
if(typeof filepath.filepath === "string") { if (typeof filepath.filepath === "string") {
filepath.filepath = removeSlash(filepath.filepath) filepath.filepath = removeSlash(filepath.filepath)
} }
await plugin.call('dgitApi', 'add', filepath); await plugin.call('dgitApi', 'add', filepath);

Loading…
Cancel
Save