Skip to content

Commit

Permalink
feat: re-set the position after format (#152)
Browse files Browse the repository at this point in the history
feat: set the position to the start of action line after user trigger
indent action
obsolete now.

Refs: #150

Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll authored Jan 7, 2025
1 parent 201ed5f commit 7f61feb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/editor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ const autoIndentAction = (editor: monaco.editor.IStandaloneCodeEditor, position:
// @ts-ignore
inverseEditOperations => [],
);
editor.setPosition({ lineNumber: startLineNumber + 1, column: 1 });
} catch (err) {
message.error(lang.t('editor.invalidJson'), {
closable: true,
Expand Down

0 comments on commit 7f61feb

Please sign in to comment.