Skip to content

Commit

Permalink
fix(lib): typos
Browse files Browse the repository at this point in the history
  • Loading branch information
varp committed Dec 1, 2017
1 parent 3f6cb49 commit f4e9242
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 29 deletions.
72 changes: 44 additions & 28 deletions Nodejs.sublime-completions
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@
},
{
"trigger": "require.resolve",
"contents": "require.resolve(${1:request});$0"
"contents": "require.resolve(${1:request}, ${2:options});$0"
},
{
"trigger": "assert.fail",
Expand Down Expand Up @@ -613,6 +613,18 @@
"trigger": "console.countReset",
"contents": "console.countReset();$0"
},
{
"trigger": "console.group",
"contents": "console.group();$0"
},
{
"trigger": "console.groupCollapsed",
"contents": "console.groupCollapsed();$0"
},
{
"trigger": "console.groupEnd",
"contents": "console.groupEnd();$0"
},
{
"trigger": "console.Console",
"contents": "console.Console(${1:stdout}, ${2:stderr}, ${3:ignoreErrors}, ${4:=}, ${5:true});$0"
Expand All @@ -629,18 +641,6 @@
"trigger": "console.table",
"contents": "console.table();$0"
},
{
"trigger": "console.group",
"contents": "console.group();$0"
},
{
"trigger": "console.groupCollapsed",
"contents": "console.groupCollapsed();$0"
},
{
"trigger": "console.groupEnd",
"contents": "console.groupEnd();$0"
},
{
"trigger": "console.markTimeline",
"contents": "console.markTimeline();$0"
Expand All @@ -665,6 +665,10 @@
"trigger": "console.timeStamp",
"contents": "console.timeStamp();$0"
},
{
"trigger": "console.context",
"contents": "console.context();$0"
},
{
"trigger": "crypto._toBuf",
"contents": "crypto._toBuf(${1:str}, ${2:encoding});$0"
Expand Down Expand Up @@ -769,6 +773,10 @@
"trigger": "crypto.DiffieHellmanGroup",
"contents": "crypto.DiffieHellmanGroup(${1:name});$0"
},
{
"trigger": "crypto.ECDH",
"contents": "crypto.ECDH(${1:curve});$0"
},
{
"trigger": "crypto.createECDH",
"contents": "crypto.createECDH(${1:curve});$0"
Expand Down Expand Up @@ -1213,6 +1221,14 @@
"trigger": "fs.mkdtempSync",
"contents": "fs.mkdtempSync(${1:prefix}, ${2:options});$0"
},
{
"trigger": "fs.copyFile",
"contents": "fs.copyFile(${1:src}, ${2:dest}, ${3:flags}, ${4:callback});$0"
},
{
"trigger": "fs.copyFileSync",
"contents": "fs.copyFileSync(${1:src}, ${2:dest}, ${3:flags});$0"
},
{
"trigger": "fs.createReadStream",
"contents": "fs.createReadStream(${1:path}, ${2:options});$0"
Expand Down Expand Up @@ -1277,6 +1293,10 @@
"trigger": "http.request",
"contents": "http.request(${1:options}, ${2:cb});$0"
},
{
"trigger": "https.Agent",
"contents": "https.Agent(${1:options});$0"
},
{
"trigger": "https.Server",
"contents": "https.Server(${1:opts}, ${2:requestListener});$0"
Expand All @@ -1286,17 +1306,13 @@
"contents": "https.createServer(${1:opts}, ${2:requestListener});$0"
},
{
"trigger": "https.Agent",
"contents": "https.Agent(${1:options});$0"
"trigger": "https.get",
"contents": "https.get(${1:options}, ${2:cb});$0"
},
{
"trigger": "https.request",
"contents": "https.request(${1:options}, ${2:cb});$0"
},
{
"trigger": "https.get",
"contents": "https.get(${1:options}, ${2:cb});$0"
},
{
"trigger": "module.wrap",
"contents": "module.wrap(${1:script});$0"
Expand All @@ -1323,7 +1339,7 @@
},
{
"trigger": "module._resolveFilename",
"contents": "module._resolveFilename(${1:request}, ${2:parent}, ${3:isMain});$0"
"contents": "module._resolveFilename(${1:request}, ${2:parent}, ${3:isMain}, ${4:options});$0"
},
{
"trigger": "module.runMain",
Expand Down Expand Up @@ -1619,7 +1635,7 @@
},
{
"trigger": "stream._isUint8Array",
"contents": "stream._isUint8Array();$0"
"contents": "stream._isUint8Array(${1:value});$0"
},
{
"trigger": "stream._uint8ArrayToBuffer",
Expand Down Expand Up @@ -1809,6 +1825,10 @@
"trigger": "util.isBoolean",
"contents": "util.isBoolean(${1:arg});$0"
},
{
"trigger": "util.isBuffer",
"contents": "util.isBuffer(${1:b});$0"
},
{
"trigger": "util.isNull",
"contents": "util.isNull(${1:arg});$0"
Expand All @@ -1835,15 +1855,15 @@
},
{
"trigger": "util.isRegExp",
"contents": "util.isRegExp(${1:re});$0"
"contents": "util.isRegExp();$0"
},
{
"trigger": "util.isObject",
"contents": "util.isObject(${1:arg});$0"
},
{
"trigger": "util.isDate",
"contents": "util.isDate(${1:d});$0"
"contents": "util.isDate();$0"
},
{
"trigger": "util.isError",
Expand Down Expand Up @@ -1889,10 +1909,6 @@
"trigger": "util.puts",
"contents": "util.puts(${1:...args});$0"
},
{
"trigger": "util.isBuffer",
"contents": "util.isBuffer(${1:b});$0"
},
{
"trigger": "v8.cachedDataVersionTag",
"contents": "v8.cachedDataVersionTag();$0"
Expand Down Expand Up @@ -1947,7 +1963,7 @@
},
{
"trigger": "vm.runInDebugContext",
"contents": "vm.runInDebugContext(${1:code});$0"
"contents": "vm.runInDebugContext();$0"
},
{
"trigger": "vm.runInContext",
Expand Down
2 changes: 1 addition & 1 deletion lib/nodejs_command_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def run(self):
try:
output = self.proc.communicate(timeout=5)[0].decode()
except subprocess.TimeoutExpired:
message = """Debugger is succesfully started at localhost:60123.
message = """Debugger is successfully started at localhost:60123.
1. Now you can open Google Chrome and navigate to chrome://inspect.
2. Then click Open dedicated DevTools for Node.
3. After click Add connection and add connection to localhost:60123"""
Expand Down

0 comments on commit f4e9242

Please sign in to comment.