Closed rbrisita closed 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.
Look into View: Split editor command.
View: Split editor
onDidChangeTextEditorViewColumn is broken. Rather it only fires when a text editor's viewColumn changes to or from 3.
viewColumn
Implemented with explained trade-offs.
Drag and drop file to the edge of editor to create a split editor. onDidChangeActiveTextEditor executes and viewColumn is incremented.
TextEditor.showViewColumn
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.