多行显示tabs,并减小tabs大小
// app\out\vs\workbench\workbench.desktop.maincss 添加:
.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-container>.tab {
height: 26px !important;
}
.monaco-workbench .part.editor>.content .editor-group-container>.title .editor-actions {
height: 26px !important;
}
.monaco-workbench .part.editor>.content .editor-group-container>.title .editor-actions .action-label, .monaco-workbench .part.editor>.content .editor-group-container>.title .title-actions .action-label {
height: 26px !important;
}
.tabs-and-actions-container > .monaco-scrollable-element {
height: auto !important;
}
.tabs-and-actions-container > .monaco-scrollable-element > .tabs-container {
height: auto !important;
flex-wrap: wrap;
}
将新打开Tab的放到最后,目前vscode是将新打开的tab页放在激活tab后面
// app\out\vs\workbench\workbench.desktop.main.js 文件
targetIndex = indexOfActive + 1; // 改为 targetIndex = this.editors.length
vscode关闭完整性检查,不然会提示vscode已经损坏请重新安装啥的,也可以重新计算相关文件的MD5等
isPure: isPure, // 改为 isPure: true,
重新计算文件完整性MD5 参考:https://github.com/lehni/vscode-fix-checksums/blob/master/extension.js
// 文件 product.json "checksums": {} 之间的内容
// 计算方法:取自上述参考文件,以后有空再写一个CPP工具
function computeChecksum(file) {
var contents = fs.readFileSync(file)
return crypto
.createHash('md5')
.update(contents)
.digest('base64')
.replace(/=+$/, '')
}