Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/editor/EditorManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ define(function (require, exports, module) {

// Set up event dispatching
EventDispatcher.makeEventDispatcher(exports);
EventDispatcher.setLeakThresholdForEvent(EVENT_ACTIVE_EDITOR_CHANGED, 25);
EventDispatcher.setLeakThresholdForEvent(EVENT_ACTIVE_EDITOR_CHANGED, 30);

// File-based preferences handling
exports.on(EVENT_ACTIVE_EDITOR_CHANGED, function (e, current) {
Expand Down
5 changes: 5 additions & 0 deletions src/extensions/default/Git/src/GutterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ define(function (require, exports) {

function _cursorActivity(_evt, editor){
// this is to prevent a gutter gap in the active line if there is no color on this line.
if (editor.hasSelection()){
// we dont show the gutter gap color when there is a selection. also adding dummy gutter is expensive
// and make test selection with cursor choppy
return;
}
_addDummyGutterMarkerIfNotExist(editor._codeMirror, editor.getCursorPos().line);
}

Expand Down
5 changes: 5 additions & 0 deletions src/extensionsIntegrated/CSSColorPreview/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ define(function (require, exports, module) {

function _cursorActivity(_evt, editor){
// this is to prevent a gutter gap in the active line if there is no color on this line.
if(editor.hasSelection()){
// we dont show the gutter gap color when there is a selection. also adding dummy gutter is expensive
// and make test selection with cursor choppy
return;
}
_addDummyGutterMarkerIfNotExist(editor, editor.getCursorPos().line);
if(editor._currentlyColorMarkedLine){
editor.clearAllMarks(COLOR_MARK_NAME);
Expand Down
4 changes: 3 additions & 1 deletion src/extensionsIntegrated/HtmlTagSyncEdit/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ define(function (require, exports, module) {

function cursorActivity() {
const cursor = activeEditor.getCursorPos();
if(activeEditor.hasMultipleCursors()){
const sel = activeEditor.getSelection();
const multiLineSelection = sel.start.line !== sel.end.line;
if(activeEditor.hasMultipleCursors() || multiLineSelection){
clearRenameMarkers();
return;
}
Expand Down
Loading