Skip to content

Commit b2d2997

Browse files
committed
Added VERSION to logs (and PEP 8 cleanups)
1 parent 7f3d4f9 commit b2d2997

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

SublimeCodeIntel.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
}
6868
}
6969
"""
70+
71+
VERSION = "2.0"
72+
7073
import os
7174
import re
7275
import sys
@@ -93,7 +96,7 @@
9396
if arch_path not in sys.path:
9497
sys.path.insert(0, arch_path)
9598

96-
from codeintel2.common import *
99+
from codeintel2.common import CodeIntelError, EvalTimeout, LogEvalController, TRG_FORM_CPLN, TRG_FORM_CALLTIP, TRG_FORM_DEFN
97100
from codeintel2.manager import Manager
98101
from codeintel2.citadel import CitadelBuffer
99102
from codeintel2.environment import SimplePrefsEnvironment
@@ -529,7 +532,7 @@ def codeintel_manager(folders_id):
529532
condeintel_log_filename = os.path.join(mgr.db.base_dir, 'codeintel.log')
530533
condeintel_log_file = open(condeintel_log_filename, 'w', 1)
531534
codeintel_log.handlers = [logging.StreamHandler(condeintel_log_file)]
532-
msg = "Starting logging SublimeCodeIntel rev %s (%s) on %s" % (get_revision()[:12], os.stat(__file__)[stat.ST_MTIME], datetime.datetime.now().ctime())
535+
msg = "Starting logging SublimeCodeIntel v%s rev %s (%s) on %s" % (VERSION, get_revision()[:12], os.stat(__file__)[stat.ST_MTIME], datetime.datetime.now().ctime())
533536
print >>condeintel_log_file, "%s\n%s" % (msg, "=" * len(msg))
534537

535538
_ci_mgr_[folders_id] = mgr
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
*/
1111
"codeintel": true,
1212

13-
// An array of language names which are disabled.
13+
/*
14+
Insert functions snippets.
15+
*/
16+
"codeintel_snippets": true,
17+
18+
/*
19+
An array of language names which are disabled.
20+
*/
1421
"codeintel_disabled_languages":
1522
[
1623
],
@@ -23,7 +30,9 @@
2330
*/
2431
"codeintel_live": true,
2532

26-
// An array of language names to disable.
33+
/*
34+
An array of language names to disable.
35+
*/
2736
"codeintel_live_disabled_languages":
2837
[
2938
],

0 commit comments

Comments
 (0)