diff --git a/extensions/typescript-basics/package.json b/extensions/typescript-basics/package.json index 6fb73d06a9d..307958534b9 100644 --- a/extensions/typescript-basics/package.json +++ b/extensions/typescript-basics/package.json @@ -77,22 +77,6 @@ "meta.import string.quoted": "other", "variable.other.jsdoc": "other" } - }, - { - "scopeName": "documentation.injection.ts", - "path": "./syntaxes/jsdoc.ts.injection.tmLanguage.json", - "injectTo": [ - "source.ts", - "source.tsx" - ] - }, - { - "scopeName": "documentation.injection.js.jsx", - "path": "./syntaxes/jsdoc.js.injection.tmLanguage.json", - "injectTo": [ - "source.js", - "source.js.jsx" - ] } ], "snippets": [ diff --git a/extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json b/extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json deleted file mode 100644 index cef9f49ff36..00000000000 --- a/extensions/typescript-basics/syntaxes/jsdoc.js.injection.tmLanguage.json +++ /dev/null @@ -1,54 +0,0 @@ - -{ - "injectionSelector": "L:comment.block.documentation", - "patterns": [ - { - "include": "#jsdocbody" - } - ], - "repository": { - "jsdocbody": { - "begin": "(?<=/\\*\\*)([^*]|\\*(?!/))*$", - "while": "(^|\\G)\\s*\\*(?!/)(?=([^*]|[*](?!/))*$)", - "patterns": [ - { - "include": "text.html.markdown#fenced_code_block_js" - }, - { - "include": "text.html.markdown#fenced_code_block_ts" - }, - { - "include": "text.html.markdown#fenced_code_block_unknown" - }, - { - "include": "#example" - }, - { - "include": "source.ts#docblock" - }, - { - "include": "text.html.markdown#inline" - } - ] - }, - "example": { - "begin": "((@)example)\\s+(?=([^*]|[*](?!/))*$).*$", - "while": "(^|\\G)\\s(?!@)(?=([^*]|[*](?!/))*$)", - "beginCaptures": { - "1": { - "name": "storage.type.class.jsdoc" - }, - "2": { - "name": "punctuation.definition.block.tag.jsdoc" - } - }, - "contentName": "meta.embedded.block.example.source.ts", - "patterns": [ - { - "include": "source.js.jsx" - } - ] - } - }, - "scopeName": "documentation.injection.js.jsx" -} diff --git a/extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json b/extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json deleted file mode 100644 index 4c567864852..00000000000 --- a/extensions/typescript-basics/syntaxes/jsdoc.ts.injection.tmLanguage.json +++ /dev/null @@ -1,54 +0,0 @@ - -{ - "injectionSelector": "L:comment.block.documentation", - "patterns": [ - { - "include": "#jsdocbody" - } - ], - "repository": { - "jsdocbody": { - "begin": "(?<=/\\*\\*)([^*]|\\*(?!/))*$", - "while": "(^|\\G)\\s*\\*(?!/)(?=([^*]|[*](?!/))*$)", - "patterns": [ - { - "include": "text.html.markdown#fenced_code_block_js" - }, - { - "include": "text.html.markdown#fenced_code_block_ts" - }, - { - "include": "text.html.markdown#fenced_code_block_unknown" - }, - { - "include": "#example" - }, - { - "include": "source.ts#docblock" - }, - { - "include": "text.html.markdown#inline" - } - ] - }, - "example": { - "begin": "((@)example)\\s+(?=([^*]|[*](?!/))*$).*$", - "while": "(^|\\G)\\s(?!@)(?=([^*]|[*](?!/))*$)", - "beginCaptures": { - "1": { - "name": "storage.type.class.jsdoc" - }, - "2": { - "name": "punctuation.definition.block.tag.jsdoc" - } - }, - "contentName": "meta.embedded.block.example.source.ts", - "patterns": [ - { - "include": "source.tsx" - } - ] - } - }, - "scopeName": "documentation.injection.ts" -}