diff options
| author | Veetaha <gerzoh1@gmail.com> | 2020-02-13 23:05:32 +0200 |
|---|---|---|
| committer | Veetaha <gerzoh1@gmail.com> | 2020-02-13 23:05:32 +0200 |
| commit | fd37151ade9948398e863c38418fb4f0d0acdfa7 (patch) | |
| tree | 5381d5a4a688d65aa6ee0ea5aae77e1d301b475a /editors/code/src | |
| parent | 7ad15c396286376c4a439b2dec4ec452b5f28dda (diff) | |
| download | rust-fd37151ade9948398e863c38418fb4f0d0acdfa7.tar.gz rust-fd37151ade9948398e863c38418fb4f0d0acdfa7.zip | |
vscode: reordered config constructor before methods
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/config.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 6c4742464c4..349f80278d1 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -26,16 +26,17 @@ export class Config { private cfg!: vscode.WorkspaceConfiguration; + constructor(private readonly ctx: vscode.ExtensionContext) { + vscode.workspace.onDidChangeConfiguration(this.onConfigChange, this, ctx.subscriptions); + this.refreshConfig(); + } + + private refreshConfig() { this.cfg = vscode.workspace.getConfiguration(Config.rootSection); console.log("Using configuration:", this.cfg); } - constructor(private ctx: vscode.ExtensionContext) { - vscode.workspace.onDidChangeConfiguration(this.onConfigChange, this, ctx.subscriptions); - this.refreshConfig(); - } - async onConfigChange(event: vscode.ConfigurationChangeEvent) { this.refreshConfig(); |
