Skip to content

Commit 75a687b

Browse files
authored
make getCurrentDirectory required (#19303)
1 parent b40e18d commit 75a687b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/harness/unittests/extractTestHelpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ namespace ts {
103103
getScriptVersion: notImplemented,
104104
getScriptSnapshot: notImplemented,
105105
getDefaultLibFileName: notImplemented,
106+
getCurrentDirectory: notImplemented,
106107
};
107108

108109
export function testExtractSymbol(caption: string, text: string, baselineFolder: string, description: DiagnosticMessage) {

src/services/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ namespace ts {
163163
getScriptSnapshot(fileName: string): IScriptSnapshot | undefined;
164164
getLocalizedDiagnosticMessages?(): any;
165165
getCancellationToken?(): HostCancellationToken;
166+
getCurrentDirectory(): string;
166167
getDefaultLibFileName(options: CompilerOptions): string;
167168
log?(s: string): void;
168169
trace?(s: string): void;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3884,6 +3884,7 @@ declare namespace ts {
38843884
getScriptSnapshot(fileName: string): IScriptSnapshot | undefined;
38853885
getLocalizedDiagnosticMessages?(): any;
38863886
getCancellationToken?(): HostCancellationToken;
3887+
getCurrentDirectory(): string;
38873888
getDefaultLibFileName(options: CompilerOptions): string;
38883889
log?(s: string): void;
38893890
trace?(s: string): void;

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3884,6 +3884,7 @@ declare namespace ts {
38843884
getScriptSnapshot(fileName: string): IScriptSnapshot | undefined;
38853885
getLocalizedDiagnosticMessages?(): any;
38863886
getCancellationToken?(): HostCancellationToken;
3887+
getCurrentDirectory(): string;
38873888
getDefaultLibFileName(options: CompilerOptions): string;
38883889
log?(s: string): void;
38893890
trace?(s: string): void;

0 commit comments

Comments
 (0)