Skip to content

Commit

Permalink
chore: add a note comment related to enableExperimentalFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yaegassy committed Oct 25, 2023
1 parent 8abd432 commit 34f25d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export function createLanguageClient(command: string) {
options: { env: newEnv },
};

// MEMO: Used in ruff-lsp v0.0.41 and earlier. This item will be removed in the future
if (settings.enableExperimentalFormatter) {
newEnv.RUFF_EXPERIMENTAL_FORMATTER = '1';
}
Expand Down Expand Up @@ -92,6 +93,7 @@ function convertFromWorkspaceConfigToInitializationOptions() {
args: settings.get<string[]>('format.args'),
},
showNotifications: settings.get<string>('showNotifications') ?? 'off',
// MEMO: Used in ruff-lsp v0.0.41 and earlier. This item will be removed in the future
enableExperimentalFormatter: settings.get<boolean>('enableExperimentalFormatter') ?? false,
},
};
Expand Down

0 comments on commit 34f25d0

Please sign in to comment.