Skip to content

Commit

Permalink
chore(release): 1.0.1 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot committed Jul 15, 2021
1 parent 521c9c8 commit bad8ebd
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 41 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
## [1.0.1](https://github.com/atom-community/atom-ide-code-format/compare/v1.0.0...v1.0.1) (2021-07-15)


### Bug Fixes

* fix formatting on typing and saving ([51c2f7f](https://github.com/atom-community/atom-ide-code-format/commit/51c2f7f320e4740fc3dbd8e1f2d7e02f9cb52eef))
* fix success check of applyTextEditsToBuffer ([e13720e](https://github.com/atom-community/atom-ide-code-format/commit/e13720e1a66af75140c77dda907d0f1c2993fb6f))
* remove _onWillSaveProvider ([7614553](https://github.com/atom-community/atom-ide-code-format/commit/761455316a61579eb40125a473a0ebca7a5788ad))
* remove featureConfig ([4299de2](https://github.com/atom-community/atom-ide-code-format/commit/4299de2e3746f9c0707a1c342406dff08ed6b57b))
* remove redundant checks ([b2e2bdf](https://github.com/atom-community/atom-ide-code-format/commit/b2e2bdf9b87f52b073f163ff79c3d710a714c208))
* remove rxjs from _formatCodeInTextEditor ([83032f9](https://github.com/atom-community/atom-ide-code-format/commit/83032f95dfeabe3f8ca841682da9956e1f3c5f8a))
* remove rxjs from _formatCodeOnSaveInTextEditor ([4ab7bfa](https://github.com/atom-community/atom-ide-code-format/commit/4ab7bfa898c9c38bb29eab6f10d7c6574a07cdff))
* remove rxjs from _formatCodeOnTypeInTextEditor ([a0d865f](https://github.com/atom-community/atom-ide-code-format/commit/a0d865f995b03bd37734e180f13feac184949324))
* remove rxjs from _handleEvent command case ([a92d37d](https://github.com/atom-community/atom-ide-code-format/commit/a92d37d61bb5339e37ffec15649754717e70fdd4))
* remove rxjs from code-format:format-code ([0795945](https://github.com/atom-community/atom-ide-code-format/commit/07959453d602a5f63cc66877aa23830d37e1d53e))
* remove UniversalDisposable ([83c27d2](https://github.com/atom-community/atom-ide-code-format/commit/83c27d226ca87e70e3cdb057a944b2005f1991ed))
* set format on save to true ([4f5aa64](https://github.com/atom-community/atom-ide-code-format/commit/4f5aa6418331e2358af13275dd7393030c9e8c48))
* update log4js ([dcd97af](https://github.com/atom-community/atom-ide-code-format/commit/dcd97afbdd243f24c189783ffd892a35bca9bf40))
* use atom-ide-base's ProviderRegistry ([16c31a6](https://github.com/atom-community/atom-ide-code-format/commit/16c31a6605a2c68958c59d0837c236943c5094d2))
* use atom-ide-base's TextEdit ([84459d6](https://github.com/atom-community/atom-ide-code-format/commit/84459d67254c1e2cc6c1116f0200adc3d880cbef))
* use event.currentTarget to get editor ([6722c9d](https://github.com/atom-community/atom-ide-code-format/commit/6722c9d7bbf3f311841e08b27392cbeb45787fbc))

# 1.0.0 (2021-07-15)


Expand Down
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.js.map

Large diffs are not rendered by default.

44 changes: 8 additions & 36 deletions dist/src/CodeFormatManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,46 +1,19 @@
import type { TextEditor, TextChange, Disposable } from "atom";
declare type AggregatedTextChange = {
changes: Array<TextChange>;
};
import type { TextEdit } from "@atom-ide-community/nuclide-commons-atom/text-edit";
import type { BusySignalService } from "atom-ide-base";
import { Range, CompositeDisposable, TextEditor, Disposable, BufferStoppedChangingEvent } from "atom";
import type { TextEdit, BusySignalService } from "atom-ide-base";
import type { FileCodeFormatProvider, OnSaveCodeFormatProvider, OnTypeCodeFormatProvider, RangeCodeFormatProvider } from "./types";
import { Range } from "atom";
import ProviderRegistry from "@atom-ide-community/nuclide-commons-atom/ProviderRegistry";
import UniversalDisposable from "@atom-ide-community/nuclide-commons/UniversalDisposable";
import { Observable } from "rxjs-compat/bundles/rxjs-compat.umd.min.js";
import type { Subscription } from "rxjs";
import { ProviderRegistry } from "atom-ide-base/commons-atom/ProviderRegistry";
export declare const SAVE_TIMEOUT = 2500;
declare type FormatEvent = {
type: "command" | "save" | "new-save";
editor: TextEditor;
} | {
type: "type";
editor: TextEditor;
edit: AggregatedTextChange;
};
export default class CodeFormatManager {
_subscriptions: UniversalDisposable;
_subscriptions: CompositeDisposable;
_rangeProviders: ProviderRegistry<RangeCodeFormatProvider>;
_fileProviders: ProviderRegistry<FileCodeFormatProvider>;
_onTypeProviders: ProviderRegistry<OnTypeCodeFormatProvider>;
_onSaveProviders: ProviderRegistry<OnSaveCodeFormatProvider>;
_busySignalService: BusySignalService | undefined | null;
_busySignalService: BusySignalService | undefined;
constructor();
/**
* Subscribe to all formatting events (commands, saves, edits) and dispatch formatters as necessary. By handling all
* events in a central location, we ensure that no buffer runs into race conditions with simultaneous formatters.
*/
_subscribeToEvents(): Subscription;
_handleEvent(event: FormatEvent): Observable<unknown>;
_formatCodeInTextEditor(editor: TextEditor, range?: Range): Observable<Array<TextEdit>>;
_formatCodeOnTypeInTextEditor(editor: TextEditor, aggregatedEvent: AggregatedTextChange): Observable<Array<TextEdit>>;
_onWillSaveProvider(): {
priority: number;
timeout: number;
callback: (editor: TextEditor) => any;
};
_formatCodeOnSaveInTextEditor(editor: TextEditor): Observable<TextEdit>;
_formatCodeInTextEditor(editor: TextEditor, range?: Range): Promise<Array<TextEdit>>;
_formatCodeOnTypeInTextEditor(editor: TextEditor, aggregatedEvent: BufferStoppedChangingEvent): Promise<Array<TextEdit>>;
_formatCodeOnSaveInTextEditor(editor: TextEditor): Promise<TextEdit[]>;
_reportBusy<T>(editor: TextEditor, promise: Promise<T>, revealTooltip?: boolean): Promise<T>;
addRangeProvider(provider: RangeCodeFormatProvider): Disposable;
addFileProvider(provider: FileCodeFormatProvider): Disposable;
Expand All @@ -49,4 +22,3 @@ export default class CodeFormatManager {
consumeBusySignal(busySignalService: BusySignalService): Disposable;
dispose(): void;
}
export {};
2 changes: 1 addition & 1 deletion dist/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { TextEditor, Range, Point } from "atom";
import type { TextEdit } from "@atom-ide-community/nuclide-commons-atom/text-edit";
import type { TextEdit } from "atom-ide-base";
/**
* A brief overview of the different code formatting providers:
*
Expand Down
2 changes: 1 addition & 1 deletion dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Code Formatting for Atom IDE",
"repository": "https://github.com/atom-community/atom-ide-code-format",
"main": "./dist/main.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Provides a code-formatting provider API",
"scripts": {
"format": "prettier --write .",
Expand Down

0 comments on commit bad8ebd

Please sign in to comment.