"Haskell: Restart LSP Server" command doesn't take changed extension settings into account

Đang mở
#331 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
haskell, typescript, vscode

Hướng nghiên cứu

Bắt đầu từ phần triển khai của lệnh “Haskell: Restart LSP Server” và theo dõi cách lệnh này lấy các cài đặt của extension khi được gọi. Tái hiện sự cố bằng cách thay đổi Haskell: Log File hoặc Haskell > Trace Server, sau đó xác nhận rằng server đã khởi động lại sử dụng các giá trị hiện tại đó mà không cần khởi động lại VS Code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type: bug

When I change extension settings in vscode and then run "Haskell: Restart LSP Server" within vscode, the changed extension settings are not taken into account - it's still running haskell-language-server with the same flags as when I started vscode.

Steps to reproduce:
In extension settings change "Haskell: Log File" from the default value (no value) to some valid path on your filesystem.
Push Ctrl+Shift+P and select "Haskell: Restart LSP Server"

Actual: the server is restarted, but there's no logging to my file of choice. I have to to actually restart vscode itself for this setting to have and effect (to see some logs in the logging file). It works the same with other settings changes, e.g. when I change "Haskell > Trace Server" from the default (off) to "messages" and restart the lsp from within vscode, it again doesn't reflect the changes - I need to restart vscode itself for this to have an effect.

Expected: restarting HLS from vscode should use the currently selected extension settings.

Ngôn ngữ chính
TypeScript
Star
594
Fork
99
Merge trung bình
18 giờ 19 phút
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của haskell/vscode-haskell

Tất cả issue của haskell/vscode-haskell

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.