dotnet / dotnet/csharp-tmLanguage
Incorrect syntax coloring in interface definition
- Lingua principale
- TypeScript
- Stelle
- 78
- Fork
- 43
- Merge medio
- 34m
- PR unite (30g)
- 1
Descrizione
From https://github.com/OmniSharp/omnisharp-vscode/issues/3201
```cs
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.InteropServices;
internal partial class Interop
{
internal partial class Mshtml
{
public interface IHTMLElement2
{
[return: MarshalAs(UnmanagedType.Interface)]
IHTMLElement
InsertAdjacentElement(string @where,
[In, MarshalAs(UnmanagedType.Interface)] IHTMLElement insertedElement);
[return: MarshalAs(UnmanagedType.Interface)]
IHTMLElement
applyElement([In, MarshalAs(UnmanagedType.Interface)] IHTMLElement apply,
string @where);
}
}
}
```
Notice that the coloring of the parameters is incorrect

Removing the newline corrects it:

See https://github.com/dotnet/winforms/pull/1533
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Riprodurre il problema con la definizione dell’interfaccia C# mostrata nel report, confrontando la dichiarazione dei parametri su più righe con la versione in cui viene rimosso il ritorno a capo. Tracciare il punto di ingresso della grammatica di evidenziazione della sintassi per i membri dell’interfaccia e verificare che entrambe le forme colorino correttamente i parametri.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp, typescript
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100