Skip to content

Commit

Permalink
rename variables
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <oorel@redhat.com>
  • Loading branch information
olexii4 authored and akosyakov committed Sep 24, 2019
1 parent 6ee80c7 commit aa8a423
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/common/quick-open-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export namespace QuickOpenOptions {
export interface Resolved {
readonly enabled: boolean;

readonly trim: boolean;
/** `true` means that input of quick open widget will be trimmed by default. */
readonly trimInput: boolean;
readonly prefix: string;
readonly placeholder: string;
readonly ignoreFocusOut: boolean;
Expand Down Expand Up @@ -63,7 +64,7 @@ export namespace QuickOpenOptions {
export const defaultOptions: Resolved = Object.freeze({
enabled: true,

trim: true,
trimInput: true,
prefix: '',
placeholder: '',
ignoreFocusOut: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/monaco/src/browser/monaco-quick-open-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class MonacoQuickOpenControllerOptsImpl implements MonacoQuickOpenControl
if (this.options.skipPrefix) {
lookFor = lookFor.substr(this.options.skipPrefix);
}
if (this.options.trim) {
if (this.options.trimInput) {
lookFor = lookFor.trim();
}
const { fuzzyMatchLabel, fuzzyMatchDescription, fuzzyMatchDetail } = this.options;
Expand Down

0 comments on commit aa8a423

Please sign in to comment.