Skip to content

Commit

Permalink
Don't indirect through _namespaces in tsserver/typingsInstaller (#57829)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Mar 20, 2024
1 parent 7d50455 commit dc113f8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/tsserver/_namespaces/ts.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/tsserver/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ts from "./_namespaces/ts";
import * as ts from "../typescript/typescript";

/** @internal */
export function getLogLevel(level: string | undefined) {
Expand Down
4 changes: 2 additions & 2 deletions src/tsserver/nodeServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import {
validateLocaleAndSetLanguage,
versionMajorMinor,
WatchOptions,
} from "./_namespaces/ts";
import * as ts from "./_namespaces/ts";
} from "../typescript/typescript";
import * as ts from "../typescript/typescript";
import {
getLogLevel,
StartInput,
Expand Down
2 changes: 1 addition & 1 deletion src/tsserver/server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as ts from "./_namespaces/ts";
import * as ts from "../typescript/typescript";
import {
StartInput,
} from "./common";
Expand Down
1 change: 0 additions & 1 deletion src/typingsInstaller/_namespaces/ts.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/typingsInstaller/nodeTypingsInstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
sys,
toPath,
version,
} from "./_namespaces/ts";
import * as ts from "./_namespaces/ts";
} from "../typescript/typescript";
import * as ts from "../typescript/typescript";

class FileLog implements ts.server.typingsInstaller.Log {
constructor(private logFile: string | undefined) {
Expand Down

0 comments on commit dc113f8

Please sign in to comment.