Use CompletionItem for JsDoc Comment auto fill (#21025)

Fixes #20990

Switches back to using a completion item provider for jsdoc auto complete.

The completion list will be automatically shown when you are in a potentially valid jsdoc completion context
This commit is contained in:
Matt Bierner
2017-02-21 16:02:53 -08:00
committed by GitHub
parent 729400d793
commit 5b1a6f4155
6 changed files with 188 additions and 152 deletions

View File

@@ -36,7 +36,6 @@
"onCommand:typescript.selectTypeScriptVersion",
"onCommand:javascript.goToProjectConfig",
"onCommand:typescript.goToProjectConfig",
"onCommand:_typescript.tryCompleteJsDoc",
"workspaceContains:jsconfig.json",
"workspaceContains:tsconfig.json"
],
@@ -84,28 +83,6 @@
}
}
],
"keybindings": [
{
"key": "enter",
"command": "_typescript.tryCompleteJsDoc",
"when": "editorTextFocus && !suggestWidgetVisible && editorLangId == 'typescript'"
},
{
"key": "enter",
"command": "_typescript.tryCompleteJsDoc",
"when": "editorTextFocus && !suggestWidgetVisible && editorLangId == 'typescriptreact'"
},
{
"key": "enter",
"command": "_typescript.tryCompleteJsDoc",
"when": "editorTextFocus && !suggestWidgetVisible && editorLangId == 'javascript'"
},
{
"key": "enter",
"command": "_typescript.tryCompleteJsDoc",
"when": "editorTextFocus && !suggestWidgetVisible && editorLangId == 'javascriptreact'"
}
],
"configuration": {
"type": "object",
"title": "%configuration.typescript%",