[Extjs 插件]破解 Virtual Stuido Code 的 Sencha Plugin 插件

安装

下载地址:
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 的 Sencha Plugin 插件)