mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Remove unused property
This commit is contained in:
@@ -12,21 +12,11 @@ import FileConfigurationManager from './fileConfigurationManager';
|
||||
|
||||
|
||||
class TypeScriptFormattingProvider implements vscode.DocumentRangeFormattingEditProvider, vscode.OnTypeFormattingEditProvider {
|
||||
private enabled: boolean = true;
|
||||
|
||||
public constructor(
|
||||
private readonly client: ITypeScriptServiceClient,
|
||||
private readonly formattingOptionsManager: FileConfigurationManager
|
||||
) { }
|
||||
|
||||
public updateConfiguration(config: vscode.WorkspaceConfiguration): void {
|
||||
this.enabled = config.get('format.enable', true);
|
||||
}
|
||||
|
||||
public isEnabled(): boolean {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
private async doFormat(
|
||||
document: vscode.TextDocument,
|
||||
options: vscode.FormattingOptions,
|
||||
|
||||
Reference in New Issue
Block a user