Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1bcb491

Browse filesBrowse files
committed
Thread typesMapLocation down to the ProjectService
Fixes microsoft#22607
1 parent cd5b9fa commit 1bcb491
Copy full SHA for 1bcb491

3 files changed

+4Lines changed: 4 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/server/session.ts‎

Copy file name to clipboardExpand all lines: src/server/session.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ namespace ts.server {
490490
globalPlugins?: ReadonlyArray<string>;
491491
pluginProbeLocations?: ReadonlyArray<string>;
492492
allowLocalPluginLoads?: boolean;
493+
typesMapLocation?: string;
493494
}
494495

495496
export class Session implements EventSender {
@@ -550,6 +551,7 @@ namespace ts.server {
550551
globalPlugins: opts.globalPlugins,
551552
pluginProbeLocations: opts.pluginProbeLocations,
552553
allowLocalPluginLoads: opts.allowLocalPluginLoads,
554+
typesMapLocation: opts.typesMapLocation,
553555
syntaxOnly: opts.syntaxOnly,
554556
};
555557
this.projectService = new ProjectService(settings);
Collapse file

‎src/tsserver/server.ts‎

Copy file name to clipboardExpand all lines: src/tsserver/server.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ namespace ts.server {
510510
globalPlugins,
511511
pluginProbeLocations,
512512
allowLocalPluginLoads,
513+
typesMapLocation,
513514
});
514515

515516
this.eventPort = eventPort;
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8667,6 +8667,7 @@ declare namespace ts.server {
86678667
globalPlugins?: ReadonlyArray<string>;
86688668
pluginProbeLocations?: ReadonlyArray<string>;
86698669
allowLocalPluginLoads?: boolean;
8670+
typesMapLocation?: string;
86708671
}
86718672
class Session implements EventSender {
86728673
private readonly gcTimer;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.