Skip to content

Commit f361ed1

Browse files
committed
fixes: merge issue in test baselines, linter
1 parent daa4b1f commit f361ed1

File tree

6 files changed

+10
-828
lines changed

6 files changed

+10
-828
lines changed

src/compiler/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ namespace ts {
11521152
export function convertToRelativePath(absoluteOrRelativePath: string, basePath: string, getCanonicalFileName: (path: string) => string): string {
11531153
return !isRootedDiskPath(absoluteOrRelativePath)
11541154
? absoluteOrRelativePath
1155-
: getRelativePathToDirectoryOrUrl(basePath, absoluteOrRelativePath, basePath, getCanonicalFileName, /* isAbsolutePathAnUrl */ false);
1155+
: getRelativePathToDirectoryOrUrl(basePath, absoluteOrRelativePath, basePath, getCanonicalFileName, /*isAbsolutePathAnUrl*/ false);
11561156
}
11571157

11581158
function normalizedPathComponents(path: string, rootLength: number) {

src/server/session.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ namespace ts.server {
11161116
private getNavigateToItems(args: protocol.NavtoRequestArgs, simplifiedResult: boolean): protocol.NavtoItem[] | NavigateToItem[] {
11171117
const projects = this.getProjects(args);
11181118

1119-
const fileName = args.currentFileOnly ? args.file && normalizeSlashes(args.file) : undefined
1119+
const fileName = args.currentFileOnly ? args.file && normalizeSlashes(args.file) : undefined;
11201120
if (simplifiedResult) {
11211121
return combineProjectOutput(
11221122
projects,
@@ -1329,8 +1329,8 @@ namespace ts.server {
13291329
return this.requiredResponse(this.getTypeDefinition(request.arguments));
13301330
},
13311331
[CommandNames.Implementation]: (request: protocol.Request) => {
1332-
return this.requiredResponse(this.getImplementation(request.arguments))
1333-
},
1332+
return this.requiredResponse(this.getImplementation(request.arguments));
1333+
},
13341334
[CommandNames.References]: (request: protocol.FileLocationRequest) => {
13351335
return this.requiredResponse(this.getReferences(request.arguments, /*simplifiedResult*/ true));
13361336
},

src/services/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ namespace ts {
152152
* LS host can optionally implement these methods to support automatic updating when new type libraries are installed
153153
*/
154154
getTypeRootsVersion?(): number;
155-
155+
156156
/*
157157
* LS host can optionally implement this method if it wants to be completely in charge of module name resolution.
158158
* if implementation is omitted then language service will use built-in module resolution logic and get answers to

tests/baselines/reference/arrayBestCommonTypes.types

+4-4
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ module EmptyTypes {
257257
>base : base
258258
>[{ x: true, y: new derived() }, { x: false, y: new base() }] : ({ x: true; y: derived; } | { x: false; y: base; })[]
259259
>{ x: true, y: new derived() } : { x: true; y: derived; }
260-
>x : true
260+
>x : boolean
261261
>true : true
262262
>y : derived
263263
>new derived() : derived
264264
>derived : typeof derived
265265
>{ x: false, y: new base() } : { x: false; y: base; }
266-
>x : false
266+
>x : boolean
267267
>false : false
268268
>y : base
269269
>new base() : base
@@ -660,13 +660,13 @@ module NonEmptyTypes {
660660
>base : base
661661
>[{ x: true, y: new derived() }, { x: false, y: new base() }] : ({ x: true; y: derived; } | { x: false; y: base; })[]
662662
>{ x: true, y: new derived() } : { x: true; y: derived; }
663-
>x : true
663+
>x : boolean
664664
>true : true
665665
>y : derived
666666
>new derived() : derived
667667
>derived : typeof derived
668668
>{ x: false, y: new base() } : { x: false; y: base; }
669-
>x : false
669+
>x : boolean
670670
>false : false
671671
>y : base
672672
>new base() : base

0 commit comments

Comments
 (0)