Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(language_server): add capabilities struct #7906

Merged
merged 2 commits into from
Dec 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor(language_server): add capabilities struct
  • Loading branch information
Sysix committed Dec 15, 2024
commit 5b24369072742756e70ae21a319b0c00829fadac
15 changes: 5 additions & 10 deletions crates/oxc_language_server/src/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,16 @@ mod test {

use super::Capabilities;

/// this is from build (see help, about):
/// Version: 1.95.3 (user setup)
/// Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
/// Date: 2024-11-13T14:50:04.152Z
/// Electron: 32.2.1
/// ElectronBuildId: 10427718
/// Chromium: 128.0.6613.186
/// Node.js: 20.18.0
/// V8: 12.8.374.38-electron.0
/// OS: Windows_NT x64 10.0.19045
#[test]
fn test_code_action_provider_vscode() {
let client_capabilities = ClientCapabilities {
text_document: Some(TextDocumentClientCapabilities {
code_action: Some(CodeActionClientCapabilities {
code_action_literal_support: Some(CodeActionLiteralSupport {
code_action_kind: CodeActionKindLiteralSupport {
// this is from build (see help, about):
// Version: 1.95.3 (user setup)
// Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
value_set: vec![
#[allow(clippy::manual_string_new)]
"".into(),
Expand Down Expand Up @@ -114,6 +107,8 @@ mod test {
code_action: Some(CodeActionClientCapabilities {
code_action_literal_support: Some(CodeActionLiteralSupport {
code_action_kind: CodeActionKindLiteralSupport {
// this is from build (see help, about):
// Build #IU-243.22562.145, built on December 8, 2024
value_set: vec![
"quickfix".into(),
#[allow(clippy::manual_string_new)]
Expand Down
Loading