Fix a bug that would cause self-closing JSX tags to have another closing tag inserted when typing the final '>'.
autoCloseTags
now generates two separate transactions, so that the completion can be undone separately.
Export a typescriptSnippets
array and include TypeScript keyword completions in the default support extension when in TypeScript mode.
Make sure scopeCompletionSource
doesn't try to complete property names that aren't simple identifier (such as numeric indices).
Stop completing keywords after .
tokens.
Fix overeager JSX tag closing inside attribute values and in self-closing tags.
Fix a bug that allowed autoCloseTags
to close JSX tags in JavaScript context.
Make TypeScript object type syntax foldable.
Make sure code in JSX context can be commented correctly.
Fix auto-closing of JSX fragments.
Automatic tag closing in JSX now works for namespaced and member-expression tag names.
Make completionPath
handle ?.
syntax.
The completionPath
helper can now be used to find the object path to complete at a given position.
scopeCompletionSource
provides a completion source based on a scope object.
Fix the source
field in ESLint diagnostics to properly hold "eslint"
.
Fix (non-)auto indentation in template strings and comments.
Avoid completing variables/keywords in property or definition positions.
Fix a bug that broke local variable completion if JavaScript was parsed an overlay in an outer language.
Update dependencies to 6.0.0
localCompletionSource
(included in the support extensions returned from javascript
) now provides a way to complete locally-defined names.
The new autoCloseTags
extension (included by default in the javascript
language extension when jsx
is configured) finishes JSX closing tags when you type a >
or /
character.
Remove accidentally released unfinished changes.
Add the function
highlight modifier to variables used in tagged template expressions.
Fix highlighting of TypeScript private/public/protected keywords.
Add styling for private properties.
Use more specific highlighting tags for JSX attribute names and values.
Fix incorrect versions for @lezer dependencies.
Update dependencies to 0.19.0
Extend indentOnInput
expression to cover closing JSX tags.
Improve highlighting tag specificity of defined function and class names. Add indentation information for JSX constructs
Support smart indent for JSX syntax.
The package now also exports a CommonJS module.
First numbered release.