后代选择,例如 scope = text.html source.js 用于匹配 html 文档中的 JavaScript 代码 分组选择,例如 scope = string, comment 用于匹配字符串或备注 插件开发者可以自定义 scope 也可以选择复用 TextMate 内置的许多 scope ,包括 comment、constant、entity、invalid、keyword 等,完整列表请查阅 官网。 settings 属性...
分组选择,例如scope = string, comment用于匹配字符串或备注 插件开发者可以自定义 scope 也可以选择复用 TextMate 内置的许多 scope ,包括 comment、constant、entity、invalid、keyword 等,完整列表请查阅 官网。 settings属性则用于设置该 token 的表现样式,支持foreground、background、bold、italic、underline 等样式属性。
分组选择,例如scope = string, comment用于匹配字符串或备注 插件开发者可以自定义 scope 也可以选择复用 TextMate 内置的许多 scope ,包括 comment、constant、entity、invalid、keyword 等,完整列表请查阅 官网。 settings属性则用于设置该 token 的表现样式,支持foreground、background、bold、italic、underline 等样式属性。
//禁止在 setTimeout 或 setInterval 中传入字符串,如 setTimeout('alert("Hi!")', 100);'no-implied-eval':'error',//禁止在类之外的地方使用 this//@off this 的使用很灵活,事件回调中可以表示当前元素,函数也可以先用 this,等以后被调用的时候再 call'no-invalid-this':'off',//禁止使用 __itera...
const invalidLanguages: string[] = [] const validLanguages = targets.filter((language) => { if (!allLanguages.includes(language)) { invalidLanguages.push(language) return false } return true }) if (invalidLanguages.length) window.showWarningMessage(`These language configurations are illegal: ${...
"no-invalid-regexp": 2,//禁止无效的正则表达式 "no-invalid-this": 2,//禁止无效的this,只能用在构造器,类,对象字面量 "no-irregular-whitespace": 2,//不能有不规则的空格 "no-iterator": 2,//禁止使用__iterator__ 属性 "no-label-var": 2,//label名不能与var声明的变量名相同 ...
[2,'functions'],'no-invalid-regexp':2,'no-irregular-whitespace':2,'no-iterator':2,'no-label-var':2,'no-labels': [2, {'allowLoop':false,'allowSwitch':false}],'no-lone-blocks':2,'no-mixed-spaces-and-tabs':2,'no-multi-spaces':2,'no-multi-str':2,'no-multiple-empty-lines'...
console.length=500 console.lines=4 console.output.file=stdout.txt editor.antialias=true editor.caret.blink=true editor.code_folding=false editor.divider.size=2 editor.external=false editor.font=Monospaced,plain,12 editor.indent=true editor.invalid=false editor.keys.alternative_cut_copy_paste=true ed...
// validForOldPackages: errors.length === 0, // warnings: warnings, // errors: errors //} if (!result.validForNewPackages) { // 说明有抛出error或者warning console.error(chalk.red(`Invalid project name: "${name}"`)) result.errors && result.errors.forEach(err => { // 打印所有的er...
length], // 验证输入内容是否合法,返回 null 表示验证成功 validateInput(value) { return isValidFile(basename, ext, value, true) ? null : INVALID_TEST_FILE_WARNING_MESSAGE; }, }); // 取消输入,返回结果为空 if (!userInputPath) { return; } }; 更多vscode api 使用参见 官方文档。 发布...