|
485 | 485 | "description": "When specified, uses the rust-analyzer binary at a given path"
|
486 | 486 | }
|
487 | 487 | }
|
488 |
| - } |
| 488 | + }, |
| 489 | + "semanticTokenTypes": [ |
| 490 | + { |
| 491 | + "id": "attribute", |
| 492 | + "description": "Style for attributes" |
| 493 | + }, |
| 494 | + { |
| 495 | + "id": "builtinType", |
| 496 | + "description": "Style for builtin types", |
| 497 | + "superType": "type" |
| 498 | + }, |
| 499 | + { |
| 500 | + "id": "lifetime", |
| 501 | + "description": "Style for lifetimes" |
| 502 | + }, |
| 503 | + { |
| 504 | + "id": "typeAlias", |
| 505 | + "description": "Style for type aliases", |
| 506 | + "superType": "type" |
| 507 | + }, |
| 508 | + { |
| 509 | + "id": "union", |
| 510 | + "description": "Style for C-style untagged unions", |
| 511 | + "superType": "type" |
| 512 | + }, |
| 513 | + { |
| 514 | + "id": "unresolvedReference", |
| 515 | + "description": "Style for names which can not be resolved due to compilation errors" |
| 516 | + }, |
| 517 | + { |
| 518 | + "id": "formatSpecifier", |
| 519 | + "description": "Style for {} placeholders in format strings" |
| 520 | + } |
| 521 | + ], |
| 522 | + "semanticTokenModifiers": [ |
| 523 | + { |
| 524 | + "id": "constant", |
| 525 | + "description": "Style for compile-time constants" |
| 526 | + }, |
| 527 | + { |
| 528 | + "id": "controlFlow", |
| 529 | + "description": "Style for control flow keywords" |
| 530 | + }, |
| 531 | + { |
| 532 | + "id": "mutable", |
| 533 | + "description": "Style for mutable bindings" |
| 534 | + }, |
| 535 | + { |
| 536 | + "id": "unsafe", |
| 537 | + "description": "Style for unsafe operations" |
| 538 | + } |
| 539 | + ], |
| 540 | + "semanticTokenScopes": [ |
| 541 | + { |
| 542 | + "language": "rust", |
| 543 | + "scopes": { |
| 544 | + "attribute": [ |
| 545 | + "meta.attribute.rust" |
| 546 | + ], |
| 547 | + "builtinType": [ |
| 548 | + "support.type.primitive.rust" |
| 549 | + ], |
| 550 | + "lifetime": [ |
| 551 | + "storage.modifier.lifetime.rust" |
| 552 | + ], |
| 553 | + "typeAlias": [ |
| 554 | + "entity.name.type.typeAlias.rust" |
| 555 | + ], |
| 556 | + "union": [ |
| 557 | + "entity.name.type.union.rust" |
| 558 | + ], |
| 559 | + "struct": [ |
| 560 | + "entity.name.type.struct.rust" |
| 561 | + ], |
| 562 | + "keyword": [ |
| 563 | + "keyword.other.rust" |
| 564 | + ], |
| 565 | + "keyword.controlFlow": [ |
| 566 | + "keyword.control.rust" |
| 567 | + ], |
| 568 | + "variable.constant": [ |
| 569 | + "variable.other.constant.rust" |
| 570 | + ], |
| 571 | + "formatSpecifier": [ |
| 572 | + "punctuation.section.embedded.rust" |
| 573 | + ], |
| 574 | + "*.mutable": [ |
| 575 | + "markup.underline" |
| 576 | + ] |
| 577 | + } |
| 578 | + } |
| 579 | + ] |
489 | 580 | }
|
490 | 581 | }
|
0 commit comments