Matthieu Riegler
1fa8bb7a99
refactor(vscode-extension): allow toggle attributes via LS.
...
This change allows to toggle attributes that are on their own line and have a 1+ leading space.
This change doesn't suffer from the issue that was reverted in #68067 .
Also this change fixes another regression that messed up highlighting if an attribute value included a '//', like in an href.
2026-04-13 22:10:16 +03:00
Matthieu Riegler
e95d84684f
fix(vscode-extension): restore correct highlighting
...
This is a regression introduced by #66891 when trying to support commenting attribute via the language service extension
2026-04-07 14:53:08 -07:00
Matthieu Riegler
8bc31a515f
feat(core): Allow other expression for exhaustive typechecking
...
When the switched expression is nested within a union, exhaustive typechecking needs to know which expression to check.
This change adds the possibility of specifying the expression to check:
```
@Component({
selector: 'app-root',
imports: [],
template: `
@switch (state.mode) {
@case ('show') { {{ state.menu }}; }
@case ('hide') {}
@default never(state);
}
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class App {
state!: { mode: 'hide' } | { mode: 'show'; menu: number };;
}
```
fixes #67406
2026-03-24 14:42:28 -07:00
Matthieu Riegler
e850643b1b
feat(compiler): Support comments in html element.
...
```
<div
// comment 0
/* comment 1 */
attr1="value1"
/*
comment 2
spanning multiple lines
*/
attr2="value2"
></div>
```
2026-03-19 15:25:17 -07:00
Matthieu Riegler
db11e74b3d
refactor(vscode-extension): Add support for exhaustive type check in the syntax
...
`@default never` will be considered a keyword on its own.
2026-02-24 11:23:47 -08:00
Matthieu Riegler
4f8d3995f0
fix(vscode-extension): Highlight function calls with optional chaining
...
eg: `foo?.()` should be highlighted as `foo()`.
fixes #65513
2026-02-10 09:42:03 -08:00
Matthieu Riegler
01ed57f297
fix(vscode-extension): support highlighting for class bindings with brackets
...
Tailwind classes can often be quite complex strings. This change adds supports for classes with backets.
fixes #66818
2026-02-04 15:45:04 -08:00
Kristiyan Kostadinov
b95753eb7d
fix(vscode-extension): add syntax highlighting for arrow functions
...
Updates the syntax definition to handle arrow functions. The definition is largely based on TypeScript's own syntax highlighting since it's quite complex.
2026-01-13 11:09:26 -08:00
Kristiyan Kostadinov
c70a6a6ecc
fix(vscode-extension): add syntax highlighting for spread/rest expressions
...
Updates the syntax definition to include spread/rest expressions.
2026-01-13 11:09:26 -08:00
Matthieu Riegler
640693da8e
feat(compiler): Add support for multiple swich cases matching
...
consecutive `@case` blocks are now supported:
```ts
@switch (case) {
@case (0)
@case (1) {
case 0 or 1
}
@case (2) {
case 2
}
@default {
default
}
}
```
fixes #14659
2026-01-07 09:23:50 -05:00
Joey Perrott
863c7eaafe
build: migrate vscode extension into repo ( #63924 )
...
Migrate the vscode extension for angular into this repository.
PR Close #63924
2025-09-24 20:24:32 +00:00