diff --git a/ROADMAP.md b/ROADMAP.md index 4eaa19b7..361faed8 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -524,9 +524,9 @@ Since the list is too long, now we just put those already supported options here | ------------------------- | ----------------- | ----------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | | :white_check_mark: :star: | :e[dit] {file} | Edit {file}. | We will open file in a new Tab of current Grouped Editor instead of opening in current tab. | | :white_check_mark: :star: | <ctrl-w> hl | Switching between windows. | As we don't have the concept of Window in VS Code, we are mapping these commands to switching between Grouped Editors. | -| :white_check_mark: | :sp {file} | Split current window in two. | VS Code doesn't support split Window horizontally. | +| :white_check_mark: | :sp {file} | Split current window in two. | VS Code doesn't support split Window horizontally. | | :white_check_mark: :star: | :vsp {file} | Split vertically current window in two. | VS Code only supports three vertical window at most and that's the limitation of this command. | -| :white_check_mark: | :new | Create a new window horizontally and start editing an empty file in it. | VS Code doesn't support split Window horizontally. | +| :white_check_mark: | :new | Create a new window horizontally and start editing an empty file in it. | VS Code doesn't support split Window horizontally. | | :white_check_mark: :star: | :vne[w] | Create a new window vertically and start editing an empty file in it. | VS Code only supports three vertical window at most and that's the limitation of this command. | ## Tabs diff --git a/src/configuration/configuration.ts b/src/configuration/configuration.ts index 9ebc52e1..5cc82bf3 100644 --- a/src/configuration/configuration.ts +++ b/src/configuration/configuration.ts @@ -287,24 +287,14 @@ class Configuration implements IConfiguration { @overlapSetting({ settingName: 'lineNumbers', defaultValue: true, - map: new Map([ - ['on', true], - ['off', false], - ['relative', false], - ['interval', false], - ]), + map: new Map([['on', true], ['off', false], ['relative', false], ['interval', false]]), }) number: boolean; @overlapSetting({ settingName: 'lineNumbers', defaultValue: false, - map: new Map([ - ['on', false], - ['off', false], - ['relative', true], - ['interval', false], - ]), + map: new Map([['on', false], ['off', false], ['relative', true], ['interval', false]]), }) relativenumber: boolean; @@ -374,9 +364,9 @@ function overlapSetting(args: { defaultValue: OptionValue; map?: Map; }) { - return function (target: any, propertyKey: string) { + return function(target: any, propertyKey: string) { Object.defineProperty(target, propertyKey, { - get: function () { + get: function() { if (this['_' + propertyKey] !== undefined) { return this['_' + propertyKey]; } @@ -388,7 +378,7 @@ function overlapSetting(args: { return val; }, - set: function (value) { + set: function(value) { this['_' + propertyKey] = value; if (value === undefined || Globals.isTesting) { diff --git a/src/configuration/remapper.ts b/src/configuration/remapper.ts index 658a884f..3f71a7f9 100644 --- a/src/configuration/remapper.ts +++ b/src/configuration/remapper.ts @@ -107,7 +107,9 @@ export class Remapper implements IRemapper { await vimState.historyTracker.undoAndRemoveChanges( Math.max(0, numCharsToRemove * vimState.allCursors.length) ); - vimState.allCursors = vimState.allCursors.map(x => x.withNewStop(x.stop.getLeft(numCharsToRemove))); + vimState.allCursors = vimState.allCursors.map(x => + x.withNewStop(x.stop.getLeft(numCharsToRemove)) + ); } // We need to remove the keys that were remapped into different keys diff --git a/src/util/historyFile.ts b/src/util/historyFile.ts index 7ce4608b..ca254d26 100644 --- a/src/util/historyFile.ts +++ b/src/util/historyFile.ts @@ -66,9 +66,7 @@ export class HistoryFile { mkdirp.sync(this._historyDir, 0o775); } } catch (err) { - logger.error( - `Failed to create directory. path=${this._historyDir}. err=${err}.` - ); + logger.error(`Failed to create directory. path=${this._historyDir}. err=${err}.`); reject(err); }