-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
35 lines (31 loc) · 1.18 KB
/
Copy pathplugin.xml
File metadata and controls
35 lines (31 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<!-- TypeSpec content type -->
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type
id="com.typespec.editor.tspContentType"
name="TypeSpec Source"
base-type="org.eclipse.core.runtime.text"
file-extensions="tsp"
priority="normal"/>
</extension>
<!-- Editor -->
<extension point="org.eclipse.ui.editors">
<editor
id="com.typespec.editor.TypeSpecEditor"
name="TypeSpec Editor"
class="com.typespec.editor.TypeSpecEditor"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
default="true"
icon="icons/typespec.png">
<contentTypeBinding contentTypeId="com.typespec.editor.tspContentType"/>
</editor>
</extension>
<!-- Document setup for partitioning -->
<extension point="org.eclipse.core.filebuffers.documentSetup">
<participant
class="com.typespec.editor.TypeSpecDocumentSetupParticipant"
contentTypeId="com.typespec.editor.tspContentType"/>
</extension>
</plugin>