Skip to content

Commit

Permalink
开放“多开模式“,需要VSCode版本>=1.96.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Dec 12, 2024
1 parent 7ed4184 commit 459d286
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
20 changes: 11 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/y3-editor/y3-helper"
},
"engines": {
"vscode": "^1.92.0"
"vscode": "^1.96.0"
},
"categories": [
"Other"
Expand Down Expand Up @@ -444,7 +444,7 @@
"@types/module-alias": "^2.0.4",
"@types/node": "^18.19.18",
"@types/uuid": "^9.0.8",
"@types/vscode": "^1.92.0",
"@types/vscode": "^1.96.0",
"@types/winreg": "^1.2.34",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
Expand Down
3 changes: 1 addition & 2 deletions src/mainMenu/mainMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ class MainMenu {
this.tree = new TreeProvider(mainNode);
this.view = vscode.window.createTreeView('y3-helper.mainMenu', {
treeDataProvider: this.tree,
// 先绕过 VSCode 1.95.0 的 bug
//manageCheckboxStateManually: true,
manageCheckboxStateManually: true,
});
this.view.onDidChangeVisibility(async (e) => {
if (e.visible) {
Expand Down
3 changes: 1 addition & 2 deletions src/mainMenu/pages/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import * as globalScript from '../../globalScript';

function 多开模式() {
let node = new TreeNode('多开模式', {
description: '12月4号编辑器更新后可用',
tooltip: '请手动启动编辑器登录(并选择30天免登录)再使用此功能',
checkboxState: config.multiMode ? vscode.TreeItemCheckboxState.Checked : vscode.TreeItemCheckboxState.Unchecked,
onDidChangeCheckboxState(state) {
Expand Down Expand Up @@ -205,7 +204,7 @@ export class 功能 extends TreeNode {
};
},
}),
//多开模式(),
多开模式(),
启用Tracy(),
切换自定义视图(),
]
Expand Down

0 comments on commit 459d286

Please sign in to comment.