-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add jsx linked editing #176279
Add jsx linked editing #176279
Conversation
47f9bcc
to
cb90205
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably fine as is, but I think I caught a minor issue using the semantic selector instead of the syntactic one.
requireMinVersion(client, JsxLinkedEditingSupport.minVersion), | ||
requireSomeCapability(client, ClientCapability.Syntax), | ||
], () => { | ||
return vscode.languages.registerLinkedEditingRangeProvider(selector.semantic, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be selector.syntax
?
import { ClientCapability, ITypeScriptServiceClient } from '../typescriptService'; | ||
import { conditionalRegistration, requireMinVersion, requireSomeCapability } from './util/dependentRegistration'; | ||
|
||
class JsxLinkedEditingSupport implements vscode.LinkedEditingRangeProvider { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit - you currently don't limit this to any JSX-specific file, so maybe we rename this to LinkedEditingSupport
and just leave a comment about the main use-case being JSX tags?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Will follow up with these changes in a new PR
For microsoft/TypeScript#51832