Skip to content

Commit 05f1301

Browse files
Use 'approximation' instead of 'approximate'.
1 parent 54f988c commit 05f1301

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/services/services.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ namespace ts {
15871587
kind: ScriptElementKind.unknown,
15881588
kindModifiers: ScriptElementKindModifier.none,
15891589
textSpan: createTextSpanFromNode(nodeForQuickInfo, sourceFile),
1590-
displayParts: prefixWithApproximate(
1590+
displayParts: prefixWithApproximation(
15911591
typeChecker.runWithCancellationToken(cancellationToken, typeChecker => typeToDisplayParts(typeChecker, type, getContainerNode(nodeForQuickInfo)))
15921592
),
15931593
documentation: type.symbol ? type.symbol.getDocumentationComment(typeChecker) : undefined,
@@ -1602,7 +1602,7 @@ namespace ts {
16021602
kind: symbolKind,
16031603
kindModifiers: SymbolDisplay.getSymbolModifiers(symbol),
16041604
textSpan: createTextSpanFromNode(nodeForQuickInfo, sourceFile),
1605-
displayParts: prefixWithApproximate(displayParts),
1605+
displayParts: prefixWithApproximation(displayParts),
16061606
documentation,
16071607
tags,
16081608
};
@@ -1632,11 +1632,11 @@ namespace ts {
16321632
}
16331633
}
16341634

1635-
function prefixWithApproximate(displayParts: SymbolDisplayPart[]): SymbolDisplayPart[] {
1635+
function prefixWithApproximation(displayParts: SymbolDisplayPart[]): SymbolDisplayPart[] {
16361636
if (languageServiceMode === LanguageServiceMode.Semantic) {
16371637
return displayParts;
16381638
}
1639-
return [textPart("(approximate)"), lineBreakPart(), ...displayParts];
1639+
return [textPart("(approximation)"), spacePart(), ...displayParts];
16401640
}
16411641

16421642
/// Goto definition

src/testRunner/unittests/tsserver/partialSemanticServer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { something } from "something";
3030
return { host, session, file1, file2, file3, something, configFile };
3131
}
3232

33-
it("adds '(approximate)' to the description of quick info", () => {
33+
it("adds '(approximation)' to the description of quick info", () => {
3434
const file: File = {
3535
path: `${tscWatch.projectRoot}/foo.ts`,
3636
content: "export const foo = 100;"
@@ -39,11 +39,11 @@ import { something } from "something";
3939
const session = createSession(host, { serverMode: LanguageServiceMode.PartialSemantic, useSingleInferredProject: true });
4040
openFilesForSession([file], session);
4141
const response = session.executeCommandSeq<protocol.QuickInfoRequest>({
42-
command: ts.server.protocol.CommandTypes.Quickinfo,
42+
command: protocol.CommandTypes.Quickinfo,
4343
arguments: protocolFileLocationFromSubstring(file, "foo"),
4444
}).response as protocol.QuickInfoResponseBody;
4545

46-
assert(stringContainsAt(response.displayString, "(approximate)", 0));
46+
assert(stringContainsAt(response.displayString, "(approximation)", 0));
4747
});
4848

4949
it("open files are added to inferred project even if config file is present and semantic operations succeed", () => {

0 commit comments

Comments
 (0)