Commit e5027bd
committed
feat(Sky): Include active view column in editor state push to Mountain
The `sky:editor:activeChanged` and `sky:editor:selectionChanged` IPC payloads were hardcoded to `viewColumn: 1`, causing extensions querying `window.activeTextEditor.viewColumn` to always receive column 1 regardless of the actual editor group position.
Add a `GetViewColumn()` helper that reads `EditorGroups.activeGroup.index` (0-based) and converts to the 1-based view column expected by the VS Code extension API. The helper safely falls back to 1 when the EditorGroups service isn't yet available.
Extensions relying on the active editor's view column now receive the correct value matching the editor's position in the group layout.1 parent 47d08be commit e5027bd
1 file changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
127 | 141 | | |
128 | 142 | | |
129 | 143 | | |
| |||
132 | 146 | | |
133 | 147 | | |
134 | 148 | | |
135 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
| |||
150 | 170 | | |
151 | 171 | | |
152 | 172 | | |
153 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
154 | 180 | | |
155 | 181 | | |
156 | 182 | | |
| |||
0 commit comments