Skip to content

Commit 6b48f3b

Browse files
committed
cancel getOption
1 parent ebf46a7 commit 6b48f3b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/harness/fourslash.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3530,10 +3530,6 @@ namespace FourSlashInterface {
35303530
public setOption(name: keyof ts.FormatCodeSettings, value: any): void {
35313531
this.state.formatCodeSettings[name] = value;
35323532
}
3533-
3534-
public getOption(name: keyof ts.FormatCodeSettings) {
3535-
return this.state.formatCodeSettings[name];
3536-
}
35373533
}
35383534

35393535
export class Cancellation {

tests/cases/fourslash/fourslash.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,7 @@ declare namespace FourSlashInterface {
294294
setFormatOptions(options: FormatCodeOptions): any;
295295
selection(startMarker: string, endMarker: string): void;
296296
onType(posMarker: string, key: string): void;
297-
setOption(name: string, value: number): void;
298-
setOption(name: string, value: string): void;
299-
setOption(name: string, value: boolean): void;
300-
getOption(name: string): number|string|boolean;
297+
setOption(name: string, value: number | string | boolean): void;
301298
}
302299
class cancellation {
303300
resetCancelled(): void;

0 commit comments

Comments
 (0)