Skip to content

Commit 3e72a92

Browse files
Updated flow-bin to 0.65.0, fixed minor bugs, improved refactor commands, moved files into src folder
1 parent e752fc2 commit 3e72a92

File tree

96 files changed

+792
-684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+792
-684
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Working on your first Pull Request? You can learn how from this *free* series, [
1818

1919
Any code change should be submitted as a pull request. The description should explain what the code does and give steps to execute it. If necessary, the description should also contain screenshots showing up the new behaviour.
2020

21-
You can notice that in the main folder of the plugin there is a file named something like `_generated_2018_01_28_at_03_01_29.py`. This file is compiled executing `python3 make/setup.py` and it contains the whole plugin code. So, if you want to make changes/updates to this plugin, don't change this file. Instead change the other files that you can find in the `helper`, `project` and `flow` folders. The `make/_init.py` file contains the main code to boot up the plugin, with various constants.
21+
You can notice that in the main folder of the plugin there is a file named something like `_generated_2018_01_28_at_03_01_29.py`. This file is compiled executing `python3 make/setup.py` and it contains the whole plugin code. So, if you want to make changes/updates to this plugin, don't change this file. Instead change the other files that you can find in the `src` folder. The `src/_init.py` file contains the main code to boot up the plugin, with various constants.
2222

2323
Syntax accepted by `make/setup.py`:
24-
* `${include ./helper/Hook.py}`: with `./` at the beginning of the path, you are pointing to the root path of the plugin folder, like an "absolute path"
25-
* `${include javascript_completions/main.py}`: in this case this is a relative path to the current folder
24+
* `${include ./folder/file.py}`: with `./` at the beginning of the path, you are pointing to the root path of the plugin folder, like an "absolute path"
25+
* `${include folder/file.py}`: in this case this is a relative path to the current folder
2626

2727
With this, you can separate your code in different files that will be added to the final compiled code.
2828

_generated_2018_02_08_at_00_50_09.py renamed to _generated_2018_02_09_at_00_49_58.py

Lines changed: 478 additions & 425 deletions
Large diffs are not rendered by default.

changelog/0.14.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ v0.14.0
1010

1111
## Improvements
1212

13+
- Updated flow-bin to 0.65.0
1314
- Show hint_parameters tooltip on commit_completion and on insert_snippet "()"
1415
- Added JavaScript Refactor commands (added to Context and Side Bar menus):
1516
* Convert a function to an arrow function

make/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
PACKAGE_PATH = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
44

55
pattern = re.compile("^( *)\$\{include (\.\/)?(([\w\-]+\/)*)([\w\-]+\.[\w\-]+)\} *$", re.MULTILINE)
6-
start_from = "make/_init.py"
6+
start_from = os.path.join("src", "_init.py")
77
code = ""
88
last_dir_name = ""
99
with open(os.path.join(PACKAGE_PATH, start_from), encoding="utf-8") as data_file :

make/watch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def runrec(self,src):
1616
x = os.path.join(src, x)
1717
try:
1818
inode = os.stat(x).st_ino
19-
if not inode in self.files and not "_generated_" in x and os.path.isfile(x) and not "node_modules" in x and not "node_binaries" in x and not "vendor" in x and extension == ".py" and filename+extension != "setup.py" and filename+extension != "watch.py" :
19+
if not inode in self.files and not "_generated_" in x and os.path.isfile(x) and not "node_modules" in x and extension == ".py" and filename+extension != "setup.py" and filename+extension != "watch.py" :
2020
self.files[inode] = {
2121
"filename": x,
2222
"st_ctime_ns_cached": os.stat(x).st_ctime_ns,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"flow-bin": "0.64.0",
3+
"flow-bin": "0.65.0",
44
"flow-remove-types": "1.2.3",
55
"flow-typed": "2.2.3",
66
"jsdoc": "3.5.5"

project/npm/Main_disabled.sublime-menu

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)