Skip to content

Commit 9df8694

Browse files
author
John Towers
committed
Merge branch 'release/0.0.7'
2 parents 5b8a9b2 + b49ab1d commit 9df8694

File tree

5 files changed

+21
-10
lines changed

5 files changed

+21
-10
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ Sublime Text 3 plugin to provide integration with the Salesforce DX CLI
33

44
## Instructions
55
1. Install the [DX CLI](https://developer.salesforce.com/tools/sfdxcli)
6-
2. Run `Package Control: Install Package` from the command palette in Sublime and search for 'dxmate' or clone this package into your Packages directory
6+
2. Run `Package Control: Install Package` from the command palette in Sublime and search for 'dxmate'
7+
3. In the command pallette run `Package Control: Satisfy Dependencies`
78

89
## Features
910
Supports most useful CLI commands including:

dependencies.json

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
"*": {
2-
"*": [
3-
"mdpopups"
4-
]
5-
}
1+
{
2+
"*": {
3+
">=3124": [
4+
"pygments",
5+
"python-markdown",
6+
"mdpopups",
7+
"python-jinja2",
8+
"markupsafe",
9+
"pymdownx",
10+
"pyyaml"
11+
]
12+
}
13+
}

lib/languageServer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import sublime_plugin
2525
import os
2626
import subprocess
27-
from .util import *
2827
from .event_hub import EventHub
2928
from .client import Client
3029
import threading
@@ -36,6 +35,7 @@
3635
from urllib.request import url2pathname
3736
from .request import Request
3837
from .notification import Notification
38+
from .util import *
3939
client = None
4040

4141

lib/printer.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import unicodedata
44
import time
55
import json
6-
import MavensMate.config as config
76
from .threads import ThreadTracker
8-
7+
from .util import *
98
def write_to_active_printer(message, show=True):
109
active_window_id = sublime.active_window().id()
1110
p = PanelPrinter.get(active_window_id)
@@ -132,7 +131,7 @@ def scroll_to_bottom(self):
132131
sublime.set_timeout(lambda : self.panel.show(size, True), 2)
133132

134133
def write_callback(self):
135-
if config.sublime_version >= 3000:
134+
if sublime_version >= 3000:
136135
found = False
137136
for key in self.strings.keys():
138137
if len(self.strings[key]):

lib/util.py

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
import re
1313
settings = None
1414

15+
global sublime_version
16+
sublime_version = int(float(sublime.version()))
17+
1518
def load_settings():
1619
return sublime.load_settings('dxmate.sublime-settings')
1720

0 commit comments

Comments
 (0)