-
Notifications
You must be signed in to change notification settings - Fork 53
/
plugin.xml
612 lines (610 loc) · 24.5 KB
/
plugin.xml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension-point id="languageServer" name="Language Server" schema="schema/languageServer.exsd"/>
<!-- Extension point will ideally be "org.eclipse.text...." because
the feature should be part of the generic text editor -->
<extension
id="diagnostic"
name="%markers.name"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
</extension>
<extension
point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="org.eclipse.lsp4e.operations.codeactions.LSPCodeActionMarkerResolution"
markerType="org.eclipse.lsp4e.diagnostic">
</markerResolutionGenerator>
</extension>
<extension
point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors">
<hyperlinkDetector
activate="true"
class="org.eclipse.lsp4e.operations.declaration.OpenDeclarationHyperlinkDetector"
description="%openDeclarationHyperlink_decription"
id="org.eclipse.lsp4e.hyperlinkDetector"
name="%openDeclarationHyperlink_name"
targetId="org.eclipse.ui.DefaultTextEditor">
</hyperlinkDetector>
<hyperlinkDetector
activate="true"
class="org.eclipse.lsp4e.operations.documentLink.DocumentLinkDetector"
description="Document Link Detector"
id="org.eclipse.lsp4e.documentLinkDetector"
name="Document Link Detector"
targetId="org.eclipse.ui.DefaultTextEditor">
</hyperlinkDetector>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
id="org.eclipse.lsp4e.category"
name="%commands.category.name">
</category>
<command
categoryId="org.eclipse.lsp4e.category"
id="org.eclipse.lsp4e.format"
name="%format.command.name">
</command>
<command
categoryId="org.eclipse.lsp4e.category"
id="org.eclipse.lsp4e.formatfile"
name="%format.command.name">
</command>
<command
categoryId="org.eclipse.lsp4e.category"
id="org.eclipse.lsp4e.symbolinfile"
name="%commands.symbolsInFile.name">
</command>
<command
categoryId="org.eclipse.lsp4e.category"
id="org.eclipse.lsp4e.symbolinworkspace"
name="%commands.symbolsInWorksapce.name">
</command>
<command
categoryId="org.eclipse.lsp4e.category"
id="org.eclipse.lsp4e.togglelinkwitheditor"
name="Toggle Link with Editor">
<state
class="org.eclipse.ui.handlers.RegistryToggleState:true"
id="org.eclipse.ui.commands.toggleState">
</state>
</command>
<command
categoryId="org.eclipse.lsp4e.category"
id="org.eclipse.lsp4e.showkindinoutline"
name="Show Kind in Outline">
<state
class="org.eclipse.ui.handlers.RegistryToggleState:true"
id="org.eclipse.ui.commands.toggleState">
</state>
</command>
<command
categoryId="org.eclipse.lsp4e.category"
id="org.eclipse.lsp4e.toggleSortOutline"
name="%command.toggle.outline.sort.name">
<state
class="org.eclipse.ui.handlers.RegistryToggleState:false"
id="org.eclipse.ui.commands.toggleState" />
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.lsp4e.operations.references.LSFindReferences"
commandId="org.eclipse.ui.genericeditor.findReferences">
<activeWhen>
<reference definitionId="org.eclipse.lsp4e.textSelectionHasLanguageServer" />
</activeWhen>
</handler>
<handler
class="org.eclipse.lsp4e.operations.rename.LSPRenameHandler"
commandId="org.eclipse.ui.edit.rename">
<activeWhen>
<reference definitionId="org.eclipse.lsp4e.textSelectionHasLanguageServer" />
</activeWhen>
</handler>
<handler
class="org.eclipse.lsp4e.operations.format.LSPFormatHandler"
commandId="org.eclipse.lsp4e.format">
<activeWhen>
<reference definitionId="org.eclipse.lsp4e.textSelectionHasLanguageServer" />
</activeWhen>
</handler>
<handler
class="org.eclipse.lsp4e.operations.format.LSPFormatFilesHandler"
commandId="org.eclipse.lsp4e.formatfile">
</handler>
<handler
class="org.eclipse.lsp4e.operations.symbols.LSPSymbolInFileHandler"
commandId="org.eclipse.lsp4e.symbolinfile">
</handler>
<handler
class="org.eclipse.lsp4e.operations.symbols.LSPSymbolInWorkspaceHandler"
commandId="org.eclipse.lsp4e.symbolinworkspace">
</handler>
<handler
commandId="org.eclipse.lsp4e.togglelinkwitheditor">
<class
class="org.eclipse.lsp4e.outline.ToggleLinkingHandler">
</class>
</handler>
<handler
commandId="org.eclipse.lsp4e.showkindinoutline">
<class
class="org.eclipse.lsp4e.outline.ShowKindHandler">
</class>
</handler>
<handler commandId="org.eclipse.lsp4e.toggleSortOutline">
<class class="org.eclipse.lsp4e.outline.ToggleSortOutlineHandler" />
</handler>
</extension>
<extension
point="org.eclipse.search.searchResultViewPages">
<viewPage
class="org.eclipse.search.internal.ui.text.FileSearchPage"
id="org.eclipse.lsp4e.lsResultPage"
searchResultClass="org.eclipse.lsp4e.operations.references.LSSearchResult">
</viewPage>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
class="org.eclipse.lsp4e.ui.LanguageServerPreferencePage"
id="org.eclipse.lsp4e.preferences"
name="%languageservers.preference.page">
</page>
<page
category="org.eclipse.lsp4e.preferences"
class="org.eclipse.lsp4e.ui.LoggingPreferencePage"
id="org.eclipse.lsp4e.logging.preferences"
name="%languageservers.logging.preference.page">
</page>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="true"
locationURI="popup:#TextEditorContext?after=additions">
<menu
label="%refactorings.menu.label">
<command
commandId="org.eclipse.ui.edit.rename"
style="push">
</command>
<separator
name="org.eclipse.lsp4e.refactoringseparator">
</separator>
</menu>
<menu
label="%codeactions.menu.label">
<dynamic
class="org.eclipse.lsp4e.operations.codeactions.LSPCodeActionsMenu"
id="org.eclipse.lsp4e.codeActions">
</dynamic>
</menu>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="menu:org.eclipse.ui.views.ContentOutline">
<command
commandId="org.eclipse.lsp4e.togglelinkwitheditor"
label="Link with Editor"
style="toggle">
<visibleWhen>
<reference definitionId="org.eclipse.lsp4e.activePartHasCNFOutlinePage" />
</visibleWhen>
</command>
</menuContribution>
<menuContribution
allPopups="false"
locationURI="menu:org.eclipse.ui.views.ContentOutline">
<command
commandId="org.eclipse.lsp4e.showkindinoutline"
label="Show Kind"
style="toggle">
<visibleWhen>
<reference definitionId="org.eclipse.lsp4e.activePartHasCNFOutlinePage" />
</visibleWhen>
</command>
</menuContribution>
<menuContribution locationURI="menu:org.eclipse.tm4e.source.menu">
<!-- Source/Format" menu entry in window menu -->
<separator name="formatStart" visible="true" />
<command commandId="org.eclipse.lsp4e.format">
<visibleWhen>
<reference definitionId="org.eclipse.lsp4e.textSelectionHasLanguageServer" />
</visibleWhen>
</command>
<separator name="formatEnd" visible="true" />
</menuContribution>
<menuContribution
allPopups="true"
locationURI="popup:org.eclipse.ui.genericeditor.source.menu?after=additions">
<!-- "Source/Format" menu entry in editor popup menu -->
<command commandId="org.eclipse.lsp4e.format">
<visibleWhen>
<reference definitionId="org.eclipse.lsp4e.textSelectionHasLanguageServer" />
</visibleWhen>
</command>
</menuContribution>
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?endof=group.generate">
<!-- https://github.com/eclipse-mirrors/org.eclipse.ui/blob/master/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/ICommonMenuConstants.java -->
<!-- "Source/Format" menu entry in navigator popup menu -->
<menu label="Source" mnemonic="S" >
<command commandId="org.eclipse.lsp4e.formatfile">
<visibleWhen>
<iterate>
<or>
<adapt type="org.eclipse.core.resources.IFile">
<test property="org.eclipse.lsp4e.hasLanguageServer" />
</adapt>
<adapt type="org.eclipse.core.resources.IFolder" />
<adapt type="org.eclipse.core.resources.IProject" />
</or>
</iterate>
</visibleWhen>
</command>
</menu>
</menuContribution>
<menuContribution allPopups="false" locationURI="toolbar:org.eclipse.ui.views.ContentOutline?after=additions">
<command commandId="org.eclipse.lsp4e.toggleSortOutline" style="toggle" label="%command.toggle.outline.sort.label">
<visibleWhen>
<reference definitionId="org.eclipse.lsp4e.activePartHasCNFOutlinePage" />
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.genericeditor.contentAssistProcessors">
<contentAssistProcessor
class="org.eclipse.lsp4e.operations.completion.LSContentAssistProcessor"
contentType="org.eclipse.core.runtime.text">
</contentAssistProcessor>
</extension>
<extension
point="org.eclipse.ui.genericeditor.hoverProviders">
<hoverProvider
class="org.eclipse.lsp4e.operations.hover.LSPTextHover"
contentType="org.eclipse.core.runtime.text"
id="org.eclipse.lsp4e.operations.hover.LSPTextHover">
</hoverProvider>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.lsp4e.symbolinfile"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+O">
</key>
<key
commandId="org.eclipse.lsp4e.symbolinworkspace"
contextId="org.eclipse.ui.contexts.window"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M2+T">
</key>
<key
commandId="org.eclipse.lsp4e.format"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M2+F">
</key>
<!-- refactoring -->
<key
sequence="M2+M3+R"
commandId="org.eclipse.ui.edit.rename"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
<key
platform="carbon"
sequence="M2+M3+R"
commandId=""
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
<key
platform="carbon"
sequence="COMMAND+ALT+R"
commandId="org.eclipse.ui.edit.rename"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
</extension>
<extension
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="org.eclipse.ui.internal.genericeditor.ExtensionBasedTextEditor"
class="org.eclipse.lsp4e.outline.EditorToOutlineAdapterFactory">
<adapter
type="org.eclipse.ui.views.contentoutline.IContentOutlinePage">
</adapter>
</factory>
</extension>
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<navigatorContent
activeByDefault="true"
contentProvider="org.eclipse.lsp4e.outline.LSSymbolsContentProvider"
labelProvider="org.eclipse.lsp4e.outline.SymbolsLabelProvider"
id="org.eclipse.lsp4e.outline.content"
name="LS Symbols">
<triggerPoints>
<or></or>
</triggerPoints>
<enablement>
<instanceof
value="org.eclipse.lsp4e.LanguageServiceAccessor$LSPDocumentInfo">
</instanceof>
</enablement>
<commonSorter
id="org.eclipse.lsp4e.outline.OutlineSorter"
class="org.eclipse.lsp4e.outline.OutlineSorter" />
</navigatorContent>
</extension>
<extension
point="org.eclipse.ui.navigator.viewer">
<viewer
viewerId="org.eclipse.lsp4e.outline">
</viewer>
<viewerContentBinding
viewerId="org.eclipse.lsp4e.outline">
<includes>
<contentExtension
isRoot="true"
pattern="org.eclipse.lsp4e.outline.content">
</contentExtension>
</includes>
</viewerContentBinding>
</extension>
<extension
point="org.eclipse.core.filebuffers.documentSetup">
<participant
class="org.eclipse.lsp4e.ConnectDocumentToLanguageServerSetupParticipant"
contentTypeId="org.eclipse.core.runtime.text">
</participant>
</extension>
<extension point="org.eclipse.ui.editors.annotationTypes">
<type name="org.eclipse.lsp4e.read"></type>
<type name="org.eclipse.lsp4e.write"></type>
<type name="org.eclipse.lsp4e.text"></type>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
<specification annotationType="org.eclipse.lsp4e.read"
label="LSP Read Occurrence"
textPreferenceKey="LSP4EReadOccurrenceIndication" textPreferenceValue="false"
highlightPreferenceKey="LSP4EReadOccurrenceHighlighting"
highlightPreferenceValue="true" contributesToHeader="false"
overviewRulerPreferenceKey="LSP4EReadOccurrenceIndicationInOverviewRuler"
overviewRulerPreferenceValue="true"
verticalRulerPreferenceKey="LSP4EReadOccurrenceIndicationInVerticalRuler"
verticalRulerPreferenceValue="false" colorPreferenceKey="LSP4EReadOccurrenceIndicationColor"
colorPreferenceValue="212,212,212" presentationLayer="4"
showInNextPrevDropdownToolbarAction="true"
textStylePreferenceKey="LSP4EReadOccurrenceTextStyle"
textStylePreferenceValue="NONE">
</specification>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
<specification annotationType="org.eclipse.lsp4e.write"
label="LSP Write Occurrence"
textPreferenceKey="LSP4EWriteOccurrenceIndication" textPreferenceValue="false"
highlightPreferenceKey="LSP4EWriteOccurrenceHighlighting"
highlightPreferenceValue="true" contributesToHeader="false"
overviewRulerPreferenceKey="LSP4EWriteOccurrenceIndicationInOverviewRuler"
overviewRulerPreferenceValue="true"
verticalRulerPreferenceKey="LSP4EWriteOccurrenceIndicationInVerticalRuler"
verticalRulerPreferenceValue="false" colorPreferenceKey="LSP4EWriteOccurrenceIndicationColor"
colorPreferenceValue="240,216,168" presentationLayer="4"
showInNextPrevDropdownToolbarAction="true"
textStylePreferenceKey="LSP4EWriteOccurrenceTextStyle"
textStylePreferenceValue="NONE">
</specification>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
<specification annotationType="org.eclipse.lsp4e.text"
label="LSP Text Occurrence"
textPreferenceKey="LSP4ETextOccurrenceIndication" textPreferenceValue="false"
highlightPreferenceKey="LSP4ETextOccurrenceHighlighting"
highlightPreferenceValue="true" contributesToHeader="false"
overviewRulerPreferenceKey="LSP4ETextOccurrenceIndicationInOverviewRuler"
overviewRulerPreferenceValue="true"
verticalRulerPreferenceKey="LSP4ETextOccurrenceIndicationInVerticalRuler"
verticalRulerPreferenceValue="false" colorPreferenceKey="LSP4ETextOccurrenceIndicationColor"
colorPreferenceValue="212,212,212" presentationLayer="4"
showInNextPrevDropdownToolbarAction="true"
textStylePreferenceKey="LSP4ETextOccurrenceTextStyle"
textStylePreferenceValue="NONE">
</specification>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="org.eclipse.lsp4e.outline.SymbolInformationPropertyTester"
id="org.eclipse.lsp4e.SymbolInformationPropertyTester"
namespace="org.eclipse.lsp4e.symbolInformation"
properties="extension,contentTypeId"
type="java.lang.Object">
</propertyTester>
<propertyTester
class="org.eclipse.lsp4e.HasLanguageServerPropertyTester"
id="org.eclipse.lsp4e.hasLanguageServerPropertyTester"
namespace="org.eclipse.lsp4e"
properties="hasLanguageServer"
type="java.lang.Object">
</propertyTester>
<propertyTester
class="org.eclipse.lsp4e.outline.HasCNFOutlinePage"
id="org.eclipse.lsp4e.hasCNFOutlinePage"
namespace="org.eclipse.lsp4e"
properties="hasCNFOutlinePage"
type="java.lang.Object">
</propertyTester>
</extension>
<extension
point="org.eclipse.ui.commandImages">
<image
commandId="org.eclipse.lsp4e.togglelinkwitheditor"
disabledIcon="icons/full/dlcl16/link_to_editor.png"
icon="icons/full/elcl16/link_to_editor.png">
</image>
<image
commandId="org.eclipse.lsp4e.toggleSortOutline"
disabledIcon="icons/full/dlcl16/alphab_sort_co.png"
icon="icons/full/elcl16/alphab_sort_co.png">
</image>
</extension>
<extension
point="org.eclipse.e4.ui.css.swt.theme">
<stylesheet
uri="resources/css/dark.css">
<themeid
refid="org.eclipse.e4.ui.css.theme.e4_dark">
</themeid>
</stylesheet>
</extension>
<extension
point="org.eclipse.ui.genericeditor.highlightReconcilers">
<highlightReconciler
class="org.eclipse.lsp4e.operations.highlight.HighlightReconciler"
contentType="org.eclipse.core.runtime.text">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</highlightReconciler>
</extension>
<extension
point="org.eclipse.ui.genericeditor.foldingReconcilers">
<foldingReconciler
class="org.eclipse.lsp4e.operations.folding.LSPFoldingReconciler"
contentType="org.eclipse.core.runtime.text">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</foldingReconciler>
</extension>
<extension
point="org.eclipse.ui.workbench.texteditor.codeMiningProviders">
<codeMiningProvider
class="org.eclipse.lsp4e.operations.codelens.CodeLensProvider"
id="org.eclipse.lsp4e.codelens"
label="CodeLens">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</codeMiningProvider>
<codeMiningProvider
class="org.eclipse.lsp4e.operations.color.DocumentColorProvider"
id="org.eclipse.lsp4e.documentColor"
label="Color">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</codeMiningProvider>
<codeMiningProvider
class="org.eclipse.lsp4e.operations.inlayhint.InlayHintProvider"
id="org.eclipse.lsp4e.inlayhint"
label="InlayHint">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</codeMiningProvider>
</extension>
<extension
point="org.eclipse.ui.quickAccess">
<computer
class="org.eclipse.lsp4e.operations.symbols.WorkspaceSymbolsQuickAccessProvider"
name="Workspace Symbols"
requiresUIAccess="false"/>
</extension>
<extension
point="org.eclipse.ui.genericeditor.quickAssistProcessors">
<quickAssistProcessor
class="org.eclipse.lsp4e.operations.codeactions.LSPCodeActionQuickAssistProcessor"
contentType="org.eclipse.core.runtime.text">
</quickAssistProcessor>
</extension>
<extension
point="org.eclipse.ui.commands">
<commandParameterType
converter="org.eclipse.lsp4e.command.internal.CommandConverter"
id="org.eclipse.lsp4e.commandParameterType"
type="org.eclipse.lsp4j.Command">
</commandParameterType>
<commandParameterType
converter="org.eclipse.lsp4e.command.internal.PathConverter"
id="org.eclipse.lsp4e.pathParameterType"
type="org.eclipse.core.runtime.IPath">
</commandParameterType>
<category
id="org.eclipse.lsp4e.commandCategory"
name="Command">
</category>
</extension>
<extension
point="org.eclipse.ui.genericeditor.reconcilers">
<reconciler
class="org.eclipse.lsp4e.operations.linkedediting.LinkedEditingReconciler"
contentType="org.eclipse.core.runtime.text">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</reconciler>
</extension>
<extension
point="org.eclipse.ui.genericeditor.reconcilers">
<reconciler
class="org.eclipse.lsp4e.operations.documentLink.LSPDocumentLinkPresentationReconciler"
contentType="org.eclipse.core.runtime.text">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</reconciler>
</extension>
<extension
point="org.eclipse.ui.genericeditor.reconcilers">
<reconciler
class="org.eclipse.lsp4e.operations.semanticTokens.SemanticHighlightReconciler"
contentType="org.eclipse.core.runtime.text">
<enabledWhen>
<reference definitionId="org.eclipse.lsp4e.editorHasLanguageServer" />
</enabledWhen>
</reconciler>
</extension>
<!-- reusable expression definitions, see https://wiki.eclipse.org/Command_Core_Expressions -->
<extension point="org.eclipse.core.expressions.definitions">
<definition id="org.eclipse.lsp4e.activePartHasCNFOutlinePage">
<with variable="activePart">
<and>
<instanceof value="org.eclipse.ui.views.contentoutline.ContentOutline" />
<test property="org.eclipse.lsp4e.hasCNFOutlinePage" />
</and>
</with>
</definition>
<definition id="org.eclipse.lsp4e.editorHasLanguageServer">
<or>
<with variable="editorInput">
<test
forcePluginActivation="true"
property="org.eclipse.lsp4e.hasLanguageServer"/>
</with>
<with variable="viewer">
<test
forcePluginActivation="true"
property="org.eclipse.lsp4e.hasLanguageServer"/>
</with>
</or>
</definition>
<definition id="org.eclipse.lsp4e.textSelectionHasLanguageServer">
<and>
<with variable="selection">
<instanceof value="org.eclipse.jface.text.ITextSelection" />
</with>
<with variable="activeEditorInput">
<test property="org.eclipse.lsp4e.hasLanguageServer" />
</with>
</and>
</definition>
</extension>
</plugin>