mirror of
https://github.com/Silverquark/dance.git
synced 2024-08-16 22:30:55 +03:00
misc: fix style, eslint config
This commit is contained in:
parent
e57f9515bd
commit
54fccd56d4
@ -37,7 +37,10 @@ module.exports = {
|
||||
"VariableDeclarator": "first",
|
||||
"flatTernaryExpressions": true,
|
||||
"offsetTernaryExpressions": true,
|
||||
"ignoredNodes": ["TemplateLiteral *"],
|
||||
"ignoredNodes": [
|
||||
"TemplateLiteral *",
|
||||
"VariableDeclaration VariableDeclarator:first-child ObjectExpression",
|
||||
],
|
||||
}],
|
||||
"curly": ["error", "all"],
|
||||
"dot-location": ["error", "property"],
|
||||
|
@ -130,7 +130,7 @@ export class RegistersView implements vscode.TreeDataProvider<TreeItem> {
|
||||
return {
|
||||
dispose: () => {
|
||||
for (const item of this._documentToItemMap.values()) {
|
||||
item.dispose()
|
||||
item.dispose();
|
||||
}
|
||||
|
||||
for (const item of this._registerToItemMap.values()) {
|
||||
|
@ -515,7 +515,9 @@ export abstract class RegisterSet implements vscode.Disposable {
|
||||
* The read-only "#" (`hash`) register, mapped to the indices of the current
|
||||
* selections.
|
||||
*/
|
||||
public readonly hash = new SpecialRegister("#", "symbol-numeric",
|
||||
public readonly hash = new SpecialRegister(
|
||||
"#",
|
||||
"symbol-numeric",
|
||||
() => Promise.resolve(activeEditor().selections.map((_, i) => i.toString())),
|
||||
undefined,
|
||||
(fire) => vscode.window.onDidChangeTextEditorSelection(fire),
|
||||
|
Loading…
Reference in New Issue
Block a user