mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Only apply TS Dot Accept Suggestion if Previous Character is a valid identifier (#18063)
* Only apply TS Dot Accept Suggestion if previous character is a valid identifier char Fixes #17825 Fixes #17770 Fixes #17584 **Bug** When typing two or more `.` in a row, we end up unexpectedly accepting suggestions in TS files. This is caused by the custom keybinding that ts registers for `.`. **Fix** Only accept the suggestion on `.` if the previous character is a valid identifier character. * Move title to nls
This commit is contained in:
@@ -257,7 +257,7 @@
|
||||
},
|
||||
"keybindings": {
|
||||
"key": ".",
|
||||
"command": "^acceptSelectedSuggestion",
|
||||
"command": "typescript.tryAcceptSelectedSuggestionOnDot",
|
||||
"when": "editorTextFocus && suggestWidgetVisible && editorLangId == 'typescript' && suggestionSupportsAcceptOnKey"
|
||||
},
|
||||
"commands": [
|
||||
@@ -268,6 +268,10 @@
|
||||
{
|
||||
"command": "javascript.reloadProjects",
|
||||
"title": "%javascript.reloadProjects.title%"
|
||||
},
|
||||
{
|
||||
"command": "typescript.tryAcceptSelectedSuggestionOnDot",
|
||||
"title": "%typescript.tryAcceptSelectedSuggestionOnDot.title%"
|
||||
}
|
||||
],
|
||||
"breakpoints": [
|
||||
|
||||
Reference in New Issue
Block a user