Skip to content

Commit 81b6263

Browse files
committed
Merge with MS Master
2 parents 085a642 + 88af18b commit 81b6263

25 files changed

+86931
-89
lines changed

Default.sublime-keymap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@
7373
{ "key": "selector", "operator": "equal", "operand": "text.find-refs" }
7474
]
7575
},
76-
{
77-
"keys": [ "alt+,"],
78-
"command": "typescript_signature_popup",
79-
"context": [
80-
{ "key": "selector", "operator": "equal", "operand": "source.ts" },
81-
{ "key": "tooltip_supported", "operator": "equal", "operand": true}
82-
83-
]
84-
},
8576
{
8677
"keys": [ "ctrl+t", "ctrl+q" ],
8778
"command": "typescript_quick_info_doc",
@@ -135,6 +126,15 @@
135126
{ "key": "selector", "operator": "equal", "operand": "source.ts" },
136127
{ "key": "is_popup_visible"}
137128
]
129+
}, // In case when auto match is enabled, only format if not within {}
130+
{
131+
"keys": [ "alt+,"],
132+
"command": "typescript_signature_popup",
133+
"context": [
134+
{ "key": "selector", "operator": "equal", "operand": "source.ts" },
135+
{ "key": "tooltip_supported", "operator": "equal", "operand": true}
136+
137+
]
138138
},
139139
{
140140
"keys": [ "enter" ],

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
TypeScript Plugin for Sublime Text
22
==================================
33

4+
[![Join the chat at https://gitter.im/Microsoft/TypeScript-Sublime-Plugin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Microsoft/TypeScript-Sublime-Plugin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5+
46
The plugin uses an IO wrapper around the TypeScript language services to provide
57
an enhanced Sublime Text experience when working with TypeScript code.
68

TypeScript.sublime-build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"target": "typescript_build",
3+
"selector": "source.ts"
4+
}

TypeScript.sublime-commands

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
{ "caption" : "TypeScript: PasteAndFormat", "command": "typescript_paste_and_format" },
1212
{ "caption" : "TypeScript: FormatLine", "command": "typescript_format_line" },
1313
{ "caption" : "TypeScript: FormatBlock", "command": "typescript_format_brackets" },
14+
{ "caption" : "TypeScript: SignatureInfo", "command": "typescript_signature_popup" },
1415
{ "caption" : "TypeScript: ShowErrorList", "command": "typescript_project_error_list" }
1516
]

TypeScript.sublime-commands.orig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{ "caption" : "TypeScript: GoToDefinition", "command": "typescript_go_to_definition" },
3+
{ "caption" : "TypeScript: QuickInfoDocumentation", "command": "typescript_quick_info_doc" },
4+
{ "caption" : "TypeScript: Overloads panel", "command": "typescript_signature_panel" },
5+
{ "caption" : "TypeScript: SaveTmp", "command": "typescript_save" },
6+
{ "caption" : "TypeScript: FormatSelection", "command": "typescript_format_selection" },
7+
{ "caption" : "TypeScript: FormatDocument", "command": "typescript_format_document" },
8+
{ "caption" : "TypeScript: FindReferences", "command": "typescript_find_references" },
9+
{ "caption" : "TypeScript: NavigateToSymbol", "command": "typescript_nav_to" },
10+
{ "caption" : "TypeScript: Rename", "command": "typescript_rename" },
11+
{ "caption" : "TypeScript: PasteAndFormat", "command": "typescript_paste_and_format" },
12+
{ "caption" : "TypeScript: FormatLine", "command": "typescript_format_line" },
13+
<<<<<<< HEAD
14+
{ "caption" : "TypeScript: FormatBlock", "command": "typescript_format_brackets" },
15+
{ "caption" : "TypeScript: ShowErrorList", "command": "typescript_project_error_list" }
16+
=======
17+
{ "caption" : "TypeScript: SignatureInfo", "command": "typescript_signature_popup" },
18+
{ "caption" : "TypeScript: FormatBlock", "command": "typescript_format_brackets" }
19+
>>>>>>> 88af18b997cba9d623e43ccdffb73b9814ea90a0
20+
]

snippets/get-()-{}.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public get ${1:value}() : ${2:string} {
44
${3:return }
55
}
66
]]></content>
7-
<tabTrigger>get</tabTrigger>
7+
<tabTrigger>getter</tabTrigger>
88
<scope>source.ts</scope>
99
<description>get-property …</description>
1010
</snippet>

snippets/log.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<snippet>
22
<content><![CDATA[console.log($1);
33
$0]]></content>
4-
<tabTrigger>log</tabTrigger>
4+
<tabTrigger>clog</tabTrigger>
55
<scope>source.ts</scope>
66
<description>console log</description>
77
</snippet>

snippets/set-()-{}.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public set ${1:value}(v : ${2:string}) {
44
this.${3:_value} = v;
55
}
66
]]></content>
7-
<tabTrigger>set</tabTrigger>
7+
<tabTrigger>setter</tabTrigger>
88
<scope>source.ts</scope>
99
<description>set-property …</description>
1010
</snippet>

snippets/setTimeout.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[setTimeout(() => {$0}${2:}, ${1:500});]]></content>
3-
<tabTrigger>timeout</tabTrigger>
3+
<tabTrigger>tout</tabTrigger>
44
<scope>source.ts</scope>
55
<description>setTimeout function</description>
66
</snippet>

0 commit comments

Comments
 (0)