Skip to content

Commit 1c97840

Browse files
chore(release): 1.0.2 [skip ci]
1 parent 3e2f213 commit 1c97840

File tree

7 files changed

+18
-7
lines changed

7 files changed

+18
-7
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [1.0.2](https://github.com/atom-community/atom-ide-code-format/compare/v1.0.1...v1.0.2) (2021-07-15)
2+
3+
4+
### Bug Fixes
5+
6+
* fix and optimize _formatCodeInTextEditor ([2607425](https://github.com/atom-community/atom-ide-code-format/commit/2607425a8516718d67c9506fc8e233852e194c7e))
7+
* optimize _formatCodeOnTypeInTextEditor ([16009d4](https://github.com/atom-community/atom-ide-code-format/commit/16009d4b247129ca599ce16165866d35aade1ba1))
8+
* set save on type to false ([29b83d3](https://github.com/atom-community/atom-ide-code-format/commit/29b83d354dbdc5f2a5ff44e31e285e899c60f60c))
9+
110
## [1.0.1](https://github.com/atom-community/atom-ide-code-format/compare/v1.0.0...v1.0.1) (2021-07-15)
211

312

dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/CodeFormatManager.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Range, CompositeDisposable, TextEditor, Disposable, BufferStoppedChangi
22
import type { TextEdit, BusySignalService } from "atom-ide-base";
33
import type { FileCodeFormatProvider, OnSaveCodeFormatProvider, OnTypeCodeFormatProvider, RangeCodeFormatProvider } from "./types";
44
import { ProviderRegistry } from "atom-ide-base/commons-atom/ProviderRegistry";
5-
export declare const SAVE_TIMEOUT = 2500;
5+
export declare const SAVE_TIMEOUT = 500;
66
export default class CodeFormatManager {
77
_subscriptions: CompositeDisposable;
88
_rangeProviders: ProviderRegistry<RangeCodeFormatProvider>;
@@ -11,8 +11,8 @@ export default class CodeFormatManager {
1111
_onSaveProviders: ProviderRegistry<OnSaveCodeFormatProvider>;
1212
_busySignalService: BusySignalService | undefined;
1313
constructor();
14-
_formatCodeInTextEditor(editor: TextEditor, range?: Range): Promise<Array<TextEdit>>;
15-
_formatCodeOnTypeInTextEditor(editor: TextEditor, aggregatedEvent: BufferStoppedChangingEvent): Promise<Array<TextEdit>>;
14+
_formatCodeInTextEditor(editor: TextEditor, selectionRange?: Range): Promise<Array<TextEdit>>;
15+
_formatCodeOnTypeInTextEditor(editor: TextEditor, { changes }: BufferStoppedChangingEvent): Promise<Array<TextEdit>>;
1616
_formatCodeOnSaveInTextEditor(editor: TextEditor): Promise<TextEdit[]>;
1717
_reportBusy<T>(editor: TextEditor, promise: Promise<T>, revealTooltip?: boolean): Promise<T>;
1818
addRangeProvider(provider: RangeCodeFormatProvider): Disposable;

dist/src/utils.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/** A faster vresion of lodash.debounce */
2+
export declare function debounce<T extends (...args: any[]) => void>(func: T, wait: number): T;

dist/tsconfig.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Code Formatting for Atom IDE",
44
"repository": "https://github.com/atom-community/atom-ide-code-format",
55
"main": "./dist/main.js",
6-
"version": "1.0.1",
6+
"version": "1.0.2",
77
"description": "Provides a code-formatting provider API",
88
"scripts": {
99
"format": "prettier --write .",

0 commit comments

Comments
 (0)