mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 02:47:30 +08:00
退出时保存光标位置
This commit is contained in:
@@ -176,6 +176,13 @@ export default {
|
||||
setEditorLanguage(language) {
|
||||
monaco.editor.setModelLanguage(this.rawEditor.getModel(), language);
|
||||
},
|
||||
getCursorPosition() {
|
||||
return this.rawEditor.getPosition();
|
||||
},
|
||||
setCursorPosition(pos) {
|
||||
if (!pos) return;
|
||||
this.rawEditor.setPosition(pos);
|
||||
},
|
||||
repacleEditorSelection(text) {
|
||||
var selection = this.rawEditor.getSelection();
|
||||
var range = new monaco.Range(
|
||||
|
||||
Reference in New Issue
Block a user