add getOption

This commit is contained in:
Kagami Sascha Rosylight
2016-12-22 12:33:50 +09:00
parent f65c865957
commit 273a0dbdfe
3 changed files with 13 additions and 6 deletions

View File

@@ -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 {