美文网首页Extjs
[Extjs 插件]破解 Virtual Stuido Code

[Extjs 插件]破解 Virtual Stuido Code

作者: w_w_wei | 来源:发表于2018-03-15 14:29 被阅读96次

    安装

    下载地址:
    Extjs plugin 1.0.1 for Virtual Studio Code

    在VSCode 扩展页,点击右上角的"...", 从 VSIX 安装。选择senchaVScode-1.0.1.vsix

    破解

    文件:C:\Users\Administrator\.vscode\extensions\Sencha.vscode-extjs-1.0.1\out\src\LicenseManager.js

    找到函数 loadLicense 171行,

    #原代码如下
    loadLicense() {
            return this.manager.verify().then(() => {
                const licenses = this.manager.getProductLicenses()
                    .filter(license => license.signature)
                    .map(license => this.createLicenseObject(license));
                this.license = licenses.find(l => l.active && l.full) ||
                    licenses.find(l => l.active) ||
                    licenses[0]; // default to the first license
                if (!this.license || !this.license.active || !this.license.full) {
                    statusBarActivation.show();
                }
                licenseJson = this.license && this.license.data;
            });
        }
    
    #修改为
    loadLicense() {
            return this.manager.verify().then(() => {
                this.licence = {
                    active: true,
                    full: true,
                    data: {}
                }
                licenseJson = this.license && this.license.data;
            });
        }
    

    相关文章

      网友评论

        本文标题:[Extjs 插件]破解 Virtual Stuido Code

        本文链接:https://www.haomeiwen.com/subject/ryrhqftx.html