不完美支持:当子窗口激活时,点击主窗口状态栏能够正确弹出快速拾取菜单
This commit is contained in:
parent
762859f9e6
commit
2efac06999
@ -23,6 +23,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 1.0.11
|
||||||
|
|
||||||
|
### Improvement
|
||||||
|
|
||||||
|
- Imperfect support: When a sub window is activated, clicking on the status bar of the main window can correctly bring up the QuickPick menu. 不完美支持:当子窗口激活时,点击主窗口状态栏能够正确弹出快速拾取菜单
|
||||||
|
|
||||||
## 1.0.10
|
## 1.0.10
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
@ -59,7 +65,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Fix bug: The infobox showed `editor is undefined` when the current active TAB was not an editor
|
- Fix bug: The infobox showed `editor is undefined` when the current active TAB was not an editor
|
||||||
|
|
||||||
|
|
||||||
## 1.0.4
|
## 1.0.4
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -57,8 +57,17 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
*/
|
*/
|
||||||
vscode.window.onDidChangeActiveTextEditor(event => {
|
vscode.window.onDidChangeActiveTextEditor(event => {
|
||||||
console.log('onDidChangeActiveTextEditor', event);
|
console.log('onDidChangeActiveTextEditor', event);
|
||||||
// 判断是否展示状态栏按钮
|
|
||||||
updateStatusBarItemVisable(selectTextLength);
|
// 小窗中编辑器选中后,不做其他点击鼠标点击操作,直接点击主窗口任务栏[变量转换]按钮
|
||||||
|
// 能够在主窗口 QuickPick 中对小窗中所选文字进行转换操作 (不太完美的兼容)
|
||||||
|
let textEditor = vscode.window.activeTextEditor;
|
||||||
|
if (textEditor) {
|
||||||
|
const selections = textEditor.selections;
|
||||||
|
onTextEditorSelectionChangeCallback(textEditor, selections);
|
||||||
|
} else { // 进入 else 的场景举例: 从[代码编辑器]切换到[设置页]
|
||||||
|
// 判断是否展示状态栏按钮
|
||||||
|
updateStatusBarItemVisable(selectTextLength);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user