Skip to content

Commit

Permalink
Merge branch 'hotfix-v0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
eternalphane committed Dec 10, 2018
2 parents 09f613e + 1ff86c6 commit 935be47
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to the "tsfmt-vscode" extension will be documented in this f

## [Unreleased]

## [v0.3.1] 2018-12-10
- Fix #1 (Typos)
- Merge #2 (Register for tsx)

## [v0.3.0] 2018-12-09
- Fix #1 (Add Configuration for notification)

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tsfmt-vscode",
"displayName": "tsfmt - TypeScript Formatter",
"description": "VSCode extension for TypeScript Formatter (tsfmt)",
"version": "0.3.0",
"version": "0.3.1",
"publisher": "eternalphane",
"author": "Zongyuan Zuo <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -58,7 +58,7 @@
"disabled"
],
"default": "enabled",
"description": "Whether or not show notifications. This does not affect `tsfmt.logLevel`"
"description": "Whether or not to show notifications. This does not affect `tsfmt.logLevel`"
},
"tsfmt.tsconfig.configPath": {
"type": [
Expand Down
2 changes: 1 addition & 1 deletion src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function logLevel(): 'error' | 'warning' | 'information' {
}

export function showNotification(): boolean {
return workspace.getConfiguration('tsfmt').get('notification') || true;
return 'enabled' === workspace.getConfiguration('tsfmt').get('notification');
}

export function tsconfigConfigPath(): string | null {
Expand Down
2 changes: 2 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export function activate(context: ExtensionContext): void {
context.subscriptions.push(
languages.registerDocumentFormattingEditProvider('typescript', provider),
languages.registerDocumentRangeFormattingEditProvider('typescript', provider),
languages.registerDocumentFormattingEditProvider('typescriptreact', provider),
languages.registerDocumentRangeFormattingEditProvider('typescriptreact', provider),
MessageHelper
);
}
Expand Down
1 change: 1 addition & 0 deletions test_workspace/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"typescript.tsdk": "node_modules\\typescript\\lib",
"tsfmt.logLevel": "information",
"tsfmt.notification": "disabled",
"tsfmt.tslint.autoFix": "enabled",
"tsfmt.tslint.configPath": "my_tslint.json"
}

0 comments on commit 935be47

Please sign in to comment.