瀏覽代碼

Use the code deltas from TS only, and use the right kind name to trigger the popover

Orta Therox 5 年之前
父節點
當前提交
c6ad8230be
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      src/languageFeatures.ts

+ 1 - 6
src/languageFeatures.ts

@@ -691,12 +691,7 @@ export class CodeActionAdaptor extends FormatHelper implements monaco.languages.
 			title: codeFix.description,
 			edit: { edits: edits },
 			diagnostics: context.markers,
-			command: {
-				id: codeFix.fixName,
-				title: codeFix.description,
-				tooltip: codeFix.description
-			},
-			kind: codeFix.fixName
+			kind: "quickfix"
 		};
 
 		return action;