mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
add getOption
This commit is contained in:
@@ -3530,6 +3530,10 @@ namespace FourSlashInterface {
|
||||
public setOption(name: string, value: any): void {
|
||||
(<any>this.state.formatCodeSettings)[name] = value;
|
||||
}
|
||||
|
||||
public getOption(name: keyof ts.FormatCodeSettings) {
|
||||
return this.state.formatCodeSettings[name];
|
||||
}
|
||||
}
|
||||
|
||||
export class Cancellation {
|
||||
|
||||
Reference in New Issue
Block a user