Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use generated types for python 38 (#2500)
* use generated types for python 3.8 * remove CompletionEditRange because it is no longer necessary * fix flake8 * LSP only supports TextEdits for WorkspaceChanges currently In the future we could remove the is_text_edit check when we add support for `AnnotatedTextEdit` and `SnippetTextEdit` * Implement activeParameter being `null` in 3.18 in which case the client should not higlight any parameter * cast langauge_id to LanguageKind * I should really setup flake8 locally * a * set "noActiveParameterSupport" to False * remove accidentally committed file * add space * remove noActiveParameterSupport": False * import on separate line * one import per line * change Enum to StrEnum * remove unused import * sort lines * remove casting * remove uint * fix detecting textEdits not applying because .get('newText') was falsy {'range': {'start': {'line': 1, 'character': 0}, 'end': {'line': 2, 'character': 0}}, 'newText': ''} * address type issue * allowed AnnotatedTextEdit * fix syntax --------- Co-authored-by: Rafał Chłodnicki <[email protected]> Co-authored-by: Rafal Chlodnicki <[email protected]>
- Loading branch information