diff --git a/README.md b/README.md index 8c14037..2c6afb4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Import sorting extension for Visual Studio Code using isort -A Visual Studio Code extension that provides import sorting for Python projects using isort. It uses the Language Server Protocol ([LSP](https://microsoft.github.io/language-server-protocol/)) to run `isort` in a server like mode. +A Visual Studio Code extension that provides import sorting for Python projects using isort. The extension uses the Language Server Protocol ([LSP](https://microsoft.github.io/language-server-protocol/)) to run `isort` in a server-like mode. This extension ships with `isort=5.12.0`. @@ -50,7 +50,7 @@ If you want to disable isort for your entire workspace or globally, you can [dis | isort.severity | `{ "W": "Warning", "E": "Hint" }` | Mapping of isort's message types to VS Code's diagnostic severity levels as displayed in the Problems window. | | isort.path | `[]` | Path of the isort binary to be used by this extension. Note: This may slow down formatting.
Examples:
- `isort.path : ["~/global_env/isort"]`
- `isort.path : ["conda", "run", "-n", "lint_env", "python", "-m", "isort"]` | | isort.interpreter | `[]` | Path to a Python executable or a command that will be used to launch the isort server and any subprocess. Accepts an array of a single or multiple strings. When set to `[]`, the extension will use the path to the selected Python interpreter. | -| isort.importStrategy | `useBundled` | Defines which isort binary to be used to lint Python files. When set to `useBundled`, the extension will use the isort binary that is shipped with the extension. When set to `fromEnvironment`, the extension will attempt to use the isort binary and all dependencies that are available in the currently selected environment. Note: If the extension can't find a valid isort binary in the selected environment, it will fallback to using the isort binary that is shipped with the extension The `pylint.path` setting may also be ignored when this setting is set to `fromEnvironment`. | +| isort.importStrategy | `useBundled` | Defines which isort binary to be used to lint Python files. When set to `useBundled`, the extension will use the isort binary that is shipped with the extension. When set to `fromEnvironment`, the extension will attempt to use the isort binary and all dependencies that are available in the currently selected environment. Note: If the extension can't find a valid isort binary in the selected environment, it will fallback to using the isort binary that is shipped with the extension. The `isort.path` setting may also be ignored when this setting is set to `fromEnvironment`. | | isort.showNotification | `off` | Controls when notifications are shown by this extension. Accepted values are `onError`, `onWarning`, `always` and `off`. | | isort.serverEnabled | `true` | **Experimental** setting to control whether to run isort in a server-like mode. By default `isort` is run behind LSP server, but you can disable this setting to run isort directly. Disabling this setting will also disable import sorting via Code Actions or Organize Imports, but you can still sort imports through the **isort: Sort Imports** command. | diff --git a/package.nls.json b/package.nls.json index 077f1c4..a87b451 100644 --- a/package.nls.json +++ b/package.nls.json @@ -6,7 +6,7 @@ "settings.severity.description": "Mapping of isort's message types to VS Code's diagnostic severity levels as displayed in the Problems window.", "settings.serverEnabled.description" : "**Experimental** setting to control whether to run isort in a server-like mode. By default `isort` is run behind LSP server, but you can disable this setting to run isort directly. Disabling this setting will also disable import sorting via Code Actions or Organize Imports, but you can still sort imports through the **isort: Sort Imports** command.", "settings.path.description": "Path of the isort binary to be used by this extension. Note: This may slow down formatting.
Examples:
- `isort.path : [\"~/global_env/isort\"]`
- `isort.path : [\"conda\", \"run\", \"-n\", \"lint_env\", \"python\", \"-m\", \"isort\"]`. ", - "settings.importStrategy.description": "Defines which isort binary to be used to lint Python files. When set to `useBundled`, the extension will use the isort binary that is shipped with the extension. When set to `fromEnvironment`, the extension will attempt to use the isort binary and all dependencies that are available in the currently selected environment. Note: If the extension can't find a valid isort binary in the selected environment, it will fallback to using the isort binary that is shipped with the extension The `pylint.path` setting may also be ignored when this setting is set to `fromEnvironment`. ", + "settings.importStrategy.description": "Defines which isort binary to be used to lint Python files. When set to `useBundled`, the extension will use the isort binary that is shipped with the extension. When set to `fromEnvironment`, the extension will attempt to use the isort binary and all dependencies that are available in the currently selected environment. Note: If the extension can't find a valid isort binary in the selected environment, it will fallback to using the isort binary that is shipped with the extension The `isort.path` setting may also be ignored when this setting is set to `fromEnvironment`. ", "settings.importStrategy.useBundled.description": "Always use the bundled version of isort shipped with the extension.", "settings.importStrategy.fromEnvironment.description": "Use isort from the selected environment. If the extension fails to find a valid isort binary, it will fallback to using the bundled version of isort.", "settings.interpreter.description": "Path to a Python executable or a command that will be used to launch the isort server and any subprocess. Accepts an array of a single or multiple strings. When set to `[]`, the extension will use the path to the selected Python interpreter.",