[live templates] Remove EP com.intellij.defaultLiveTemplatesProvider,

update docs, per IJSDK-698
This commit is contained in:
JohnHake 2020-03-10 15:01:14 -07:00
parent 8922dcd440
commit 9336f8ff87
4 changed files with 16 additions and 33 deletions

View File

@ -6,7 +6,7 @@ plugins {
}
group 'org.intellij.sdk'
version '2.0.0'
version '2.1.0'
sourceCompatibility = 1.8
@ -16,9 +16,12 @@ repositories {
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version '2019.3.3'
updateSinceUntilBuild = false
// version '2020.1'
// Sets <idea-version> in plugin.xml
sameSinceUntilBuild = true
}
patchPluginXml {
// Sets <version> in plugin.xml
version = project.version
}

View File

@ -1,19 +0,0 @@
// Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.sdk.liveTemplates;
import com.intellij.codeInsight.template.impl.DefaultLiveTemplatesProvider;
import org.jetbrains.annotations.Nullable;
public class MarkdownTemplateProvider implements DefaultLiveTemplatesProvider {
@Override
public String[] getDefaultLiveTemplateFiles() {
return new String[]{"liveTemplates/Markdown"};
}
@Nullable
@Override
public String[] getHiddenLiveTemplateFiles() {
return null;
}
}

View File

@ -7,11 +7,9 @@
<!-- Text to display as name on Preferences/Settings | Plugin page -->
<name>SDK: Live Templates Sample Project</name>
<!-- The version of this plugin -->
<version>2.0.0</version>
<!-- The <version> of this plugin is set by patchPluginXml.version in build.gradle -->
<!-- Compatible with the following versions of IntelliJ Platform - needed for plugin logo -->
<idea-version since-build="191"/>
<!-- The <idea-version> compatibility of this plugin is set by intellij.sameSinceUntilBuild in build.gradle -->
<!-- Product and plugin compatibility requirements -->
<depends>com.intellij.modules.lang</depends>
@ -25,6 +23,7 @@
<change-notes>
<![CDATA[
<ul>
<li><b>2.1.0</b> Use com.intellij.defaultLiveTemplates, add custom macro.</li>
<li><b>2.0.0</b> Convert to Gradle-based plugin, change plugin ID</li>
<li><b>1.0.0</b> Release 2018.3 and earlier.</li>
</ul>
@ -35,7 +34,7 @@
<vendor url="https://plugins.jetbrains.com">IntelliJ Platform SDK</vendor>
<extensions defaultExtensionNs="com.intellij">
<defaultLiveTemplatesProvider implementation="org.intellij.sdk.liveTemplates.MarkdownTemplateProvider"/>
<defaultLiveTemplates file="/liveTemplates/Markdown"/>
<liveTemplateContext implementation="org.intellij.sdk.liveTemplates.MarkdownContext"/>
</extensions>

View File

@ -1,7 +1,7 @@
<templateSet group="Markdown">
<template name="["
<template name="{"
value="[$TEXT$]($LINK$)$END$"
description="SDK: New link reference."
description="SDK: New link reference"
toReformat="false"
toShortenFQNames="false">
<variable name="TEXT" expression="" defaultValue="" alwaysStopAt="true"/>