@codemirror/lang-javascript
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -0,1 +1,7 @@ | ||
## 6.2.2 (2024-02-20) | ||
### Bug fixes | ||
Fix a bug that would cause self-closing JSX tags to have another closing tag inserted when typing the final '>'. | ||
## 6.2.1 (2023-08-28) | ||
@@ -2,0 +8,0 @@ |
@@ -27,3 +27,3 @@ import * as _codemirror_state from '@codemirror/state'; | ||
JavaScript support. Includes [snippet](https://codemirror.net/6/docs/ref/#lang-javascript.snippets) | ||
completion. | ||
and local variable completion. | ||
*/ | ||
@@ -30,0 +30,0 @@ declare function javascript(config?: { |
@@ -357,3 +357,3 @@ import { parser } from '@lezer/javascript'; | ||
JavaScript support. Includes [snippet](https://codemirror.net/6/docs/ref/#lang-javascript.snippets) | ||
completion. | ||
and local variable completion. | ||
*/ | ||
@@ -421,3 +421,3 @@ function javascript(config = {}) { | ||
let openTag = findOpenTag(around); | ||
if (openTag && | ||
if (openTag && openTag.name == "JSXOpenTag" && | ||
!/^\/?>|^<\//.test(state.doc.sliceString(head, head + 2)) && | ||
@@ -424,0 +424,0 @@ (name = elementName(state.doc, openTag, head))) |
{ | ||
"name": "@codemirror/lang-javascript", | ||
"version": "6.2.1", | ||
"version": "6.2.2", | ||
"description": "JavaScript language support for the CodeMirror code editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -29,3 +29,3 @@ <!-- NOTE: README.md is generated from src/README.md --> | ||
<dd><p>JavaScript support. Includes <a href="#user-content-snippets">snippet</a> | ||
completion.</p> | ||
and local variable completion.</p> | ||
</dd> | ||
@@ -66,2 +66,8 @@ <dt id="user-content-javascriptlanguage"> | ||
</dd> | ||
<dt id="user-content-typescriptsnippets"> | ||
<code><strong><a href="#user-content-typescriptsnippets">typescriptSnippets</a></strong>: <a href="https://codemirror.net/docs/ref#autocomplete.Completion">Completion</a>[]</code></dt> | ||
<dd><p>A collection of snippet completions for TypeScript. Includes the | ||
JavaScript <a href="#user-content-snippets">snippets</a>.</p> | ||
</dd> | ||
<dt id="user-content-localcompletionsource"> | ||
@@ -68,0 +74,0 @@ <code><strong><a href="#user-content-localcompletionsource">localCompletionSource</a></strong>(<a id="user-content-localcompletionsource^context" href="#user-content-localcompletionsource^context">context</a>: <a href="https://codemirror.net/docs/ref#autocomplete.CompletionContext">CompletionContext</a>) → <a href="https://codemirror.net/docs/ref#autocomplete.CompletionResult">CompletionResult</a> | <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null">null</a></code></dt> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61424
113