Skip to content

Commit 1bc124e

Browse files
Bump version to 4.5.4 and LKG
1 parent 1d4ec40 commit 1bc124e

8 files changed

+76
-12
lines changed

lib/tsc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
6969
var ts;
7070
(function (ts) {
7171
ts.versionMajorMinor = "4.5";
72-
ts.version = "4.5.3";
72+
ts.version = "4.5.4";
7373
var NativeCollections;
7474
(function (NativeCollections) {
7575
function tryGetNativeMap() {

lib/tsserver.js

+18-2
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var ts;
100100
// The following is baselined as a literal template type without intervention
101101
/** The version of the TypeScript compiler release */
102102
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
103-
ts.version = "4.5.3";
103+
ts.version = "4.5.4";
104104
/* @internal */
105105
var Comparison;
106106
(function (Comparison) {
@@ -128608,8 +128608,24 @@ var ts;
128608128608
source = CompletionSource.ClassMemberSnippet;
128609128609
}
128610128610
}
128611+
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
128612+
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
128613+
// closed, as in:
128614+
//
128615+
// return <>
128616+
// foo <butto|
128617+
// </>
128618+
//
128619+
// We can detect this case by checking if both:
128620+
//
128621+
// 1. The location is "<", so we are completing immediately after it.
128622+
// 2. The "<" has the same position as its parent, so is not a binary expression.
128611128623
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
128612-
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
128624+
if (kind === "JSX attribute" /* jsxAttribute */
128625+
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
128626+
&& preferences.includeCompletionsWithSnippetText
128627+
&& preferences.jsxAttributeCompletionStyle
128628+
&& preferences.jsxAttributeCompletionStyle !== "none") {
128613128629
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
128614128630
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
128615128631
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

lib/tsserverlibrary.js

+18-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ var ts;
294294
// The following is baselined as a literal template type without intervention
295295
/** The version of the TypeScript compiler release */
296296
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
297-
ts.version = "4.5.3";
297+
ts.version = "4.5.4";
298298
/* @internal */
299299
var Comparison;
300300
(function (Comparison) {
@@ -129190,8 +129190,24 @@ var ts;
129190129190
source = CompletionSource.ClassMemberSnippet;
129191129191
}
129192129192
}
129193+
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
129194+
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
129195+
// closed, as in:
129196+
//
129197+
// return <>
129198+
// foo <butto|
129199+
// </>
129200+
//
129201+
// We can detect this case by checking if both:
129202+
//
129203+
// 1. The location is "<", so we are completing immediately after it.
129204+
// 2. The "<" has the same position as its parent, so is not a binary expression.
129193129205
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
129194-
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
129206+
if (kind === "JSX attribute" /* jsxAttribute */
129207+
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
129208+
&& preferences.includeCompletionsWithSnippetText
129209+
&& preferences.jsxAttributeCompletionStyle
129210+
&& preferences.jsxAttributeCompletionStyle !== "none") {
129195129211
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
129196129212
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
129197129213
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

lib/typescript.js

+18-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ var ts;
294294
// The following is baselined as a literal template type without intervention
295295
/** The version of the TypeScript compiler release */
296296
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
297-
ts.version = "4.5.3";
297+
ts.version = "4.5.4";
298298
/* @internal */
299299
var Comparison;
300300
(function (Comparison) {
@@ -129190,8 +129190,24 @@ var ts;
129190129190
source = CompletionSource.ClassMemberSnippet;
129191129191
}
129192129192
}
129193+
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
129194+
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
129195+
// closed, as in:
129196+
//
129197+
// return <>
129198+
// foo <butto|
129199+
// </>
129200+
//
129201+
// We can detect this case by checking if both:
129202+
//
129203+
// 1. The location is "<", so we are completing immediately after it.
129204+
// 2. The "<" has the same position as its parent, so is not a binary expression.
129193129205
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
129194-
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
129206+
if (kind === "JSX attribute" /* jsxAttribute */
129207+
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
129208+
&& preferences.includeCompletionsWithSnippetText
129209+
&& preferences.jsxAttributeCompletionStyle
129210+
&& preferences.jsxAttributeCompletionStyle !== "none") {
129195129211
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
129196129212
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
129197129213
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

lib/typescriptServices.js

+18-2
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ var ts;
294294
// The following is baselined as a literal template type without intervention
295295
/** The version of the TypeScript compiler release */
296296
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
297-
ts.version = "4.5.3";
297+
ts.version = "4.5.4";
298298
/* @internal */
299299
var Comparison;
300300
(function (Comparison) {
@@ -129190,8 +129190,24 @@ var ts;
129190129190
source = CompletionSource.ClassMemberSnippet;
129191129191
}
129192129192
}
129193+
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
129194+
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
129195+
// closed, as in:
129196+
//
129197+
// return <>
129198+
// foo <butto|
129199+
// </>
129200+
//
129201+
// We can detect this case by checking if both:
129202+
//
129203+
// 1. The location is "<", so we are completing immediately after it.
129204+
// 2. The "<" has the same position as its parent, so is not a binary expression.
129193129205
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
129194-
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
129206+
if (kind === "JSX attribute" /* jsxAttribute */
129207+
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
129208+
&& preferences.includeCompletionsWithSnippetText
129209+
&& preferences.jsxAttributeCompletionStyle
129210+
&& preferences.jsxAttributeCompletionStyle !== "none") {
129195129211
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
129196129212
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
129197129213
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

lib/typingsInstaller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var ts;
8989
// The following is baselined as a literal template type without intervention
9090
/** The version of the TypeScript compiler release */
9191
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
92-
ts.version = "4.5.3";
92+
ts.version = "4.5.4";
9393
/* @internal */
9494
var Comparison;
9595
(function (Comparison) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript",
33
"author": "Microsoft Corp.",
44
"homepage": "https://www.typescriptlang.org/",
5-
"version": "4.5.3",
5+
"version": "4.5.4",
66
"license": "Apache-2.0",
77
"description": "TypeScript is a language for application scale JavaScript development",
88
"keywords": [

src/compiler/corePublic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace ts {
55
// The following is baselined as a literal template type without intervention
66
/** The version of the TypeScript compiler release */
77
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
8-
export const version = "4.5.3" as string;
8+
export const version = "4.5.4" as string;
99

1010
/**
1111
* Type of objects whose values are all of the same type.

0 commit comments

Comments
 (0)