microsoft / microsoft/TypeScript
vscode.provideDocumentSemanticTokens returns null when using native preview with built-in TS extension disabled
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.3k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 132
Mô tả
### 🔎 Search Terms
vscode.provideDocumentSemanticTokens
### 🕗 Version & Regression Information
- `textDocument/semanticTokens/full` are computed as shown in output panel.
- editor renders semantic highlighting correctly
- But `vscode.provideDocumentSemanticTokens` returns null/undefined when called from another extension
- other language ext that register `DocumentSemanticTokensProvider` works though. even `pwsh`
### ⏯ Playground Link
_No response_
### 💻 Code
```ts
// Your code here
```
### 🙁 Actual behavior
inconsistent sem token return
### 🙂 Expected behavior
should be consistent in output panel and when called from another ext
### Additional information about the issue
_No response_
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề khi bản xem trước gốc được bật và tiện ích mở rộng TypeScript tích hợp sẵn bị tắt, đồng thời so sánh kết quả textDocument/semanticTokens/full của bảng đầu ra với vscode.provideDocumentSemanticTokens từ một tiện ích mở rộng khác. Vấn đề được xem là hoàn tất khi hành vi API đối với TypeScript nhất quán với bảng đầu ra, có kiểm thử hồi quy hoặc một giới hạn được ghi lại nếu hành vi này là có chủ đích.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100