mbeditor 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87f1238b8d3d09661d74c224711427832fdc1dd5cb3a714bc144bc8fb527ebc9
4
- data.tar.gz: 9925f093f7abd3305def9efa3c7407f0daa0cb4ad0e4989ab03f970f52fa426f
3
+ metadata.gz: caf178914c2be95307a23ee24744dabd50f12c8597c69eddf814f63895e17433
4
+ data.tar.gz: 0353fc7e791cf1fff4c739fddf59d0a1ba8259353a4147b738824275c4bca55f
5
5
  SHA512:
6
- metadata.gz: 04adda24a44677546707a0b024c109cac1b171e6ac436eea005c09b529ec55f7df18cce8753f4f570287922c89b2fa75b2cf3b2ed6290450dfc60fee48d80bad
7
- data.tar.gz: 4c4b2e9e731882058901d2df8a72ea25a510a5b1c04d8a57e5b2af5c81a30ee1b76982f6b019b81b2452f407395ca1d9a11655b4617e5ea458021b19c614d3eb
6
+ metadata.gz: 772a81a73df9b7ca2bd517193ee0178fb9843ea934c7bbc05157e84794596c62b98f34dbfa50004e2c8ee1abeda1e121e8936350826b1a213031952c1ef10563
7
+ data.tar.gz: 705bc59cb210934c909b35819d41c98ecd3e858a153a25efa6587e530c51faa0821aa39932c155c4860c7335a0c70d7f06302e4c6a5b7cb7f1214911bb1f7fbe
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.3.8] - 2026-04-16
9
+
10
+ ### Fixed
11
+ - Prevented Emmet's custom Tab action from intercepting selected text, so multi-line selections are no longer replaced when pressing Tab/Shift+Tab in markup editors.
12
+
13
+ ### Added
14
+ - Added a system regression test to ensure multi-line selections in JSX are not collapsed by the Emmet Tab integration.
15
+
8
16
  ## [0.3.7] - 2026-04-16
9
17
 
10
18
  ### Fixed
@@ -197,12 +197,12 @@
197
197
  id: 'mbeditor.emmet.expandAbbreviation',
198
198
  label: 'Emmet: Expand Abbreviation',
199
199
  keybindings: [window.monaco.KeyCode.Tab],
200
- precondition: '!suggestWidgetVisible && !parameterHintsVisible',
200
+ precondition: '!suggestWidgetVisible && !parameterHintsVisible && !editorHasSelection',
201
201
  run: function(editor) {
202
202
  var selection = editor.getSelection();
203
- // Only expand when the selection is collapsed (no range selected)
203
+ // Selection indentation should use Monaco defaults, not Emmet expansion.
204
204
  if (!selection.isEmpty()) {
205
- editor.trigger('keyboard', 'type', { text: '\t' });
205
+ editor.trigger('keyboard', 'editor.action.indentLines', null);
206
206
  return;
207
207
  }
208
208
  var pos = editor.getPosition();
@@ -1,3 +1,3 @@
1
1
  module Mbeditor
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mbeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Noonan