Skip to content

Commit a82bd95

Browse files
fixed errors about encoding when opening a file with refactor commands, added info about all=true in .flowconfig file
1 parent 3e72a92 commit a82bd95

28 files changed

+223
-68
lines changed

JavaScript Enhancements.sublime-settings

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"debug_mode": false,
3+
24
"PATH": "",
35
"node_js_custom_path": "node",
46
"npm_custom_path": "npm",

Main.sublime-menu

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,106 @@
33
"caption": "Tools",
44
"id": "tools",
55
"children": [
6+
{
7+
"caption": "JavaScript Refactor",
8+
"id": "refactor",
9+
"children": [
10+
{
11+
"caption": "Converto to arrow function",
12+
"command": "refactor",
13+
"args": {
14+
"case": "convert_to_arrow_function"
15+
}
16+
},
17+
{ "caption": "-" },
18+
{
19+
"caption": "Export",
20+
"children": [
21+
{
22+
"caption": "Function",
23+
"command": "refactor",
24+
"args": {
25+
"case": "export",
26+
"type": "function"
27+
}
28+
},
29+
{
30+
"caption": "Class",
31+
"command": "refactor",
32+
"args": {
33+
"case": "export",
34+
"type": "class"
35+
}
36+
},
37+
{
38+
"caption": "Variable",
39+
"command": "refactor",
40+
"args": {
41+
"case": "export",
42+
"type": "variable"
43+
}
44+
}
45+
]
46+
},
47+
{ "caption": "-" },
48+
{
49+
"caption": "Safe Copy",
50+
"command": "refactor",
51+
"args": {
52+
"case": "safe_copy"
53+
}
54+
},
55+
{
56+
"caption": "Safe Move",
57+
"command": "refactor",
58+
"args": {
59+
"case": "safe_move"
60+
}
61+
},
62+
{
63+
"caption": "Safe Delete",
64+
"command": "refactor",
65+
"args": {
66+
"case": "safe_delete"
67+
}
68+
},
69+
{ "caption": "-" },
70+
{
71+
"caption": "Extract",
72+
"children": [
73+
{
74+
"caption": "Variable",
75+
"command": "refactor",
76+
"args": {
77+
"case": "extract_variable"
78+
}
79+
},
80+
{
81+
"caption": "Field",
82+
"command": "refactor",
83+
"args": {
84+
"case": "extract_field"
85+
}
86+
},
87+
{
88+
"caption": "Parameter",
89+
"command": "refactor",
90+
"args": {
91+
"case": "extract_parameter"
92+
}
93+
},
94+
{ "caption": "-" },
95+
{
96+
"caption": "Method",
97+
"command": "refactor",
98+
"args": {
99+
"case": "extract_method"
100+
}
101+
}
102+
]
103+
}
104+
]
105+
},
6106
{
7107
"caption": "JavaScript Enhancements",
8108
"mnemonic": "J",

0 commit comments

Comments
 (0)