提交 46e5ddde 编写于 作者: M Matt Bierner 提交者: GitHub

Bump Monaco to TS 2.1.4 (#18413)

Fixes #18393
上级 1e94f414
......@@ -90,8 +90,8 @@ var NoUnexternalizedStringsRuleWalker = (function (_super) {
return;
}
if (doubleQuoted && (!callInfo || callInfo.argIndex === -1 || !this.signatures[functionName])) {
var s = node.getText();
var replacement = new Lint.Replacement(node.getStart(), node.getWidth(), "nls.localize('KEY-" + s.substring(1, s.length - 1) + "', " + s + ")");
var s_1 = node.getText();
var replacement = new Lint.Replacement(node.getStart(), node.getWidth(), "nls.localize('KEY-" + s_1.substring(1, s_1.length - 1) + "', " + s_1 + ")");
var fix = new Lint.Fix("Unexternalitzed string", [replacement]);
this.addFailure(this.createFailure(node.getStart(), node.getWidth(), "Unexternalized string found: " + node.getText(), fix));
return;
......
......@@ -195,7 +195,7 @@ function format(text:string): string {
// Apply the edits on the input code
return applyEdits(text, edits);
function getRuleProvider(options: ts.FormatCodeOptions) {
function getRuleProvider(options: ts.FormatCodeSettings) {
// Share this between multiple formatters using the same options.
// This represents the bulk of the space the formatter uses.
let ruleProvider = new (<any>ts).formatting.RulesProvider();
......@@ -215,7 +215,7 @@ function format(text:string): string {
return result;
}
function getDefaultOptions(): ts.FormatCodeOptions {
function getDefaultOptions(): ts.FormatCodeSettings {
return {
indentSize: 4,
tabSize: 4,
......
......@@ -43,7 +43,7 @@
"sinon": "^1.17.2",
"source-map": "^0.4.4",
"tslint": "^3.3.0",
"typescript": "^2.0.3",
"typescript": "^2.1.4",
"typescript-formatter": "3.1.0",
"underscore": "^1.8.2",
"vinyl": "^0.4.5",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册