
i think maybe need make <> and </> style is match
export default <></>
@bluelovers Hi, can you be more specific? Is you suggesting that the < & > should be connected to the / from the both ends?
i feel </> looks too big then <>, maybe change <> a little bigger? or same as </> but without / and connected
or make </> a little small
@bluelovers Ok, see what you talking about. Will look in to it in v1.0.4
Just to note: <> is also used as an operator in some languages (VB.NET, OCaml, F# come to mind) and making it significantly bigger would probably make it look a bit worse.
@auduchinok Sure, thanks. Can you paste some code examples if you have them?
jsx
function getGreeting {
return <>Hello, Stranger.</>;
}
@philippnurullin Sure! Here's some F#:
match reference.Module with
| :? IProjectPsiModule as projectPsiModule ->
let referencedProject = projectPsiModule.Project
if referencedProject <> project then
result.Add(referencedProject.GetOutputFilePath(psiModule.TargetFrameworkId).FullPath)
| _ -> ()
if moduleKind <> AnonModule then
x.ProcessReferenceNameSkipLast(lid)
Here's some VB.NET:
Protected Overrides Sub Run(methodDeclaration As IMethodDeclarationBase, data As ElementProblemAnalyzerData, consumer As IHighlightingConsumer)
If methodDeclaration.Kind <> MethodDeclarationKind.SUB Then
Return
End If
If methodDeclaration.AsKeyword IsNot Nothing Then
consumer.AddHighlighting(New SubCannotHaveReturnTypeError(methodDeclaration))
End If
End Sub
Most helpful comment
jsx