Skip to content

Commit 91303e0

Browse files
author
Michael Lyons
committed
Fix completion scopes
1 parent ce4428c commit 91303e0

16 files changed

+16
-22
lines changed

Razor/support/Comments.tmPreferences

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
<key>name</key>
55
<string>Comments</string>
66
<key>scope</key>
7-
<string>
8-
embedding.cshtml.razor,
9-
embedding.cshtml.razor text.html
10-
</string>
7+
<string>text.html.cs.razor</string>
118
<key>settings</key>
129
<dict>
1310
<key>shellVariables</key>

WebForms/support/Comments.tmPreferences

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
<key>name</key>
55
<string>Comments</string>
66
<key>scope</key>
7-
<string>
8-
embedding.cshtml.aspnet,
9-
embedding.cshtml.aspnet text.html
10-
</string>
7+
<string>text.html.cs.webforms</string>
118
<key>settings</key>
129
<dict>
1310
<key>shellVariables</key>

WebForms/support/Symbol List Directives.tmPreferences

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<key>name</key>
55
<string>Symbol List: .Net Directives</string>
66
<key>scope</key>
7-
<string>text.html constant.language.processing-directive</string>
7+
<string>text.html.cs constant.language.processing-directive</string>
88
<key>settings</key>
99
<dict>
1010
<key>showInSymbolList</key>

WebForms/support/code-blocks/code-block.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;%</tabTrigger>
44
<content><![CDATA[<%
55
${1}

WebForms/support/code-blocks/foreach-block.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>foreach</tabTrigger>
44
<content><![CDATA[<% foreach (var ${1:item} in ${2:Enumerable}) { %>
55
${3}

WebForms/support/code-blocks/if-block.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>if</tabTrigger>
44
<content><![CDATA[<% if (${1:true}) { %>
55
${2}

WebForms/support/controls/Repeater.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;asp:Repeater</tabTrigger>
44
<content><![CDATA[<asp:Repeater runat="server">
55
<ItemTemplate>

WebForms/support/directives/OutputCache.sublime-completions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// https://msdn.microsoft.com/en-us/library/hdxfb6cy(v=vs.100).aspx
3-
"scope": "embedding.cshtml.aspnet meta.block.processing-directive.contents.outputcache",
3+
"scope": "text.html.cs.webforms meta.block.processing-directive.contents.outputcache",
44
"completions": [
55
{ "trigger": "Duration\tOutputCache", "contents": "Duration=\"${1:120}\" " },
66
{ "trigger": "Location\tOutputCache", "contents": "Location=\"${1:Any | Client | Downstream | Server | None | ServerAndClient}\" " },

WebForms/support/directives/directive types.sublime-completions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
// https://msdn.microsoft.com/en-us/library/xz702w3e(v=vs.100).aspx
3-
"scope": "embedding.cshtml.aspnet meta.block.processing-directive - meta.block.processing-directive.contents",
3+
"scope": "text.html.cs.webforms meta.block.processing-directive - meta.block.processing-directive.contents",
44
"completions": [
55
{
66
"trigger": "Application\tDirective",

WebForms/support/expressions/appsetting.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;%$</tabTrigger>
44
<content><![CDATA[<%\$ ${1:AppSettings}: ${2:key} %>]]></content>
55
<description>&lt;%$ … %&gt;</description>

WebForms/support/expressions/databound-encoded.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;%#:</tabTrigger>
44
<content><![CDATA[<%#: Eval(\"${1:Property}\") %>]]></content>
55
<description>&lt;%#: Eval(…) %&gt;</description>

WebForms/support/expressions/databound.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;%#</tabTrigger>
44
<content><![CDATA[<%# Eval("${1:Property}") %>]]></content>
55
<description>&lt;%# Eval(…) %&gt;</description>

WebForms/support/expressions/directive.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;%@</tabTrigger>
44
<content><![CDATA[<%@ ${1:Directive} %>]]></content>
55
<description>&lt;%@ … %&gt;</description>

WebForms/support/expressions/encoded.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;%:</tabTrigger>
44
<content><![CDATA[<%: ${1:Object} %>]]></content>
55
<description>&lt;%: … %&gt;</description>

WebForms/support/expressions/literal.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<snippet>
2-
<scope>embedding.cshtml.aspnet - source.cs</scope>
2+
<scope>text.html.cs.webforms - source.cs - comment</scope>
33
<tabTrigger>&lt;%=</tabTrigger>
44
<content><![CDATA[<%= ${1:Object} %>]]></content>
55
<description>&lt;%= … %&gt;</description>

WebForms/support/root.sublime-completions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"scope": "embedding.cshtml.aspnet - source.cs",
2+
"scope": "text.html.cs.webforms - source.cs - comment",
33
"completions": [
44
// Directives
55
{

0 commit comments

Comments
 (0)