rbrisita / codio-sui

A media format for VS Code to record and playback the process of programming.
GNU Affero General Public License v3.0
10 stars 3 forks source link

Handle Split Editors #113

Closed rbrisita closed 2 years ago

rbrisita commented 2 years ago

Drag and drop file to the edge of editor to create a split editor. onDidChangeActiveTextEditor executes and viewColumn is incremented.

TextEditor.show

ViewColumn

window.onDidChangeTextEditorViewColumn

https://code.visualstudio.com/api/references/vscode-api#TextEditorViewColumnChangeEvent

https://code.visualstudio.com/api/references/vscode-api#ViewColumn

window.showTextDocument contains a viewColumn parameter.

rbrisita commented 2 years ago

Look into View: Split editor command.

rbrisita commented 2 years ago

onDidChangeTextEditorViewColumn is broken. Rather it only fires when a text editor's viewColumn changes to or from 3.

rbrisita commented 2 years ago

Implemented with explained trade-offs.