Skip to content

Commit ceeaead

Browse files
committed
Avoid useless changes
1 parent c0a26e9 commit ceeaead

File tree

12 files changed

+13
-17
lines changed

12 files changed

+13
-17
lines changed

src/harness/client.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ namespace ts.server {
241241
matchKind: entry.matchKind as keyof typeof PatternMatchKind,
242242
isCaseSensitive: entry.isCaseSensitive,
243243
fileName: entry.file,
244-
textSpan: this.decodeSpan(entry)
244+
textSpan: this.decodeSpan(entry),
245245
}));
246246
}
247247

@@ -388,7 +388,7 @@ namespace ts.server {
388388
category: Debug.checkDefined(category, "convertDiagnostic: category should not be undefined"),
389389
code: entry.code,
390390
reportsUnnecessary: entry.reportsUnnecessary,
391-
reportsDeprecated: entry.reportsDeprecated
391+
reportsDeprecated: entry.reportsDeprecated,
392392
};
393393
});
394394
}

src/harness/fourslashImpl.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2982,7 +2982,7 @@ namespace FourSlash {
29822982
fileName: e.range.fileName,
29832983
textSpan: ts.createTextSpanFromRange(e.range),
29842984
containerName: e.containerName || "",
2985-
containerKind: e.containerKind || ts.ScriptElementKind.unknown
2985+
containerKind: e.containerKind || ts.ScriptElementKind.unknown,
29862986
})));
29872987
}
29882988
}

src/harness/fourslashInterfaceImpl.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,6 @@ namespace FourSlashInterface {
16041604
range?: FourSlash.Range;
16051605
code: number;
16061606
reportsUnnecessary?: true;
1607-
16081607
reportsDeprecated?: true;
16091608
}
16101609

src/server/protocol.ts

-1
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,6 @@ namespace ts.server.protocol {
498498
code: number;
499499
/** May store more in future. For now, this will simply be `true` to indicate when a diagnostic is an unused-identifier diagnostic. */
500500
reportsUnnecessary?: {};
501-
502501
reportsDeprecated?: {};
503502
relatedInformation?: DiagnosticRelatedInformation[];
504503
}

src/server/session.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ namespace ts.server {
18641864
kindModifiers: tree.kindModifiers,
18651865
spans: tree.spans.map(span => toProtocolTextSpan(span, scriptInfo)),
18661866
nameSpan: tree.nameSpan && toProtocolTextSpan(tree.nameSpan, scriptInfo),
1867-
childItems: map(tree.childItems, item => this.toLocationNavigationTree(item, scriptInfo)),
1867+
childItems: map(tree.childItems, item => this.toLocationNavigationTree(item, scriptInfo))
18681868
};
18691869
}
18701870

@@ -1891,7 +1891,7 @@ namespace ts.server {
18911891
matchKind: navItem.matchKind,
18921892
file: navItem.fileName,
18931893
start: scriptInfo.positionToLineOffset(navItem.textSpan.start),
1894-
end: scriptInfo.positionToLineOffset(textSpanEnd(navItem.textSpan)),
1894+
end: scriptInfo.positionToLineOffset(textSpanEnd(navItem.textSpan))
18951895
};
18961896
if (navItem.kindModifiers && (navItem.kindModifiers !== "")) {
18971897
bakedItem.kindModifiers = navItem.kindModifiers;
@@ -2229,7 +2229,7 @@ namespace ts.server {
22292229
kindModifiers: item.kindModifiers,
22302230
file: item.file,
22312231
span: toProtocolTextSpan(item.span, scriptInfo),
2232-
selectionSpan: toProtocolTextSpan(item.selectionSpan, scriptInfo),
2232+
selectionSpan: toProtocolTextSpan(item.selectionSpan, scriptInfo)
22332233
};
22342234
}
22352235

src/services/completions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ namespace ts.Completions {
234234
name: tagName.getFullText(sourceFile) + (hasClosingAngleBracket ? "" : ">"),
235235
kind: ScriptElementKind.classElement,
236236
kindModifiers: undefined,
237-
sortText: SortText.LocationPriority
237+
sortText: SortText.LocationPriority,
238238
};
239239
return { isGlobalCompletion: false, isMemberCompletion: true, isNewIdentifierLocation: false, entries: [entry] };
240240
}
@@ -436,7 +436,7 @@ namespace ts.Completions {
436436
hasAction: origin && originIsExport(origin) || undefined,
437437
isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || undefined,
438438
insertText,
439-
replacementSpan
439+
replacementSpan,
440440
};
441441
}
442442

src/services/jsDoc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ namespace ts.JsDoc {
163163
name: tagName,
164164
kind: ScriptElementKind.keyword,
165165
kindModifiers: "",
166-
sortText: "0"
166+
sortText: "0",
167167
};
168168
}));
169169
}

src/services/shims.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,7 @@ namespace ts {
601601
category: string;
602602
code: number;
603603
reportsUnnecessary?: {};
604-
605-
reportsDeprecated?: {}
604+
reportsDeprecated?: {};
606605
}
607606
export function realizeDiagnostics(diagnostics: readonly Diagnostic[], newLine: string): RealizedDiagnostic[] {
608607
return diagnostics.map(d => realizeDiagnostic(d, newLine));

src/testRunner/unittests/tsserver/declarationFileMaps.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ namespace ts.projectSystem {
295295
matchKind: "prefix",
296296
isCaseSensitive: true,
297297
kind: ScriptElementKind.functionElement,
298-
kindModifiers: "export,declare"
298+
kindModifiers: "export,declare",
299299
},
300300
{
301301
...protocolFileSpanFromSubstring({

src/testRunner/unittests/tsserver/helpers.ts

-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ namespace ts.projectSystem {
204204
category: DiagnosticCategory;
205205
code: number;
206206
reportsUnnecessary?: {};
207-
208207
reportsDeprecated?: {};
209208
source?: string;
210209
relatedInformation?: DiagnosticRelatedInformation[];

tests/baselines/reference/api/tsserverlibrary.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3543,7 +3543,7 @@ declare namespace ts {
35433543
/** Gets the JSDoc template tag for the node if present */
35443544
function getJSDocTemplateTag(node: Node): JSDocTemplateTag | undefined;
35453545
/** Gets the JSDoc deprecated tag for the node if present */
3546-
function getJSDocDeprecatedTag(node: Node): JSDocDeprecatedTag | undefined;
3546+
function getJSDocDeprecatedTag(node: Node, noCache?: boolean): JSDocDeprecatedTag | undefined;
35473547
/** Gets the JSDoc type tag for the node if present and valid */
35483548
function getJSDocTypeTag(node: Node): JSDocTypeTag | undefined;
35493549
/**

tests/baselines/reference/api/typescript.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3543,7 +3543,7 @@ declare namespace ts {
35433543
/** Gets the JSDoc template tag for the node if present */
35443544
function getJSDocTemplateTag(node: Node): JSDocTemplateTag | undefined;
35453545
/** Gets the JSDoc deprecated tag for the node if present */
3546-
function getJSDocDeprecatedTag(node: Node): JSDocDeprecatedTag | undefined;
3546+
function getJSDocDeprecatedTag(node: Node, noCache?: boolean): JSDocDeprecatedTag | undefined;
35473547
/** Gets the JSDoc type tag for the node if present and valid */
35483548
function getJSDocTypeTag(node: Node): JSDocTypeTag | undefined;
35493549
/**

0 commit comments

Comments
 (0)