Browse Source

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

Orta Therox 5 năm trước cách đây
mục cha
commit
c6ad8230be
1 tập tin đã thay đổi với 1 bổ sung6 xóa
  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,
 			title: codeFix.description,
 			edit: { edits: edits },
 			edit: { edits: edits },
 			diagnostics: context.markers,
 			diagnostics: context.markers,
-			command: {
-				id: codeFix.fixName,
-				title: codeFix.description,
-				tooltip: codeFix.description
-			},
-			kind: codeFix.fixName
+			kind: "quickfix"
 		};
 		};
 
 
 		return action;
 		return action;