import * as vscode from 'vscode' ; import { ALCodeFix } from "../alCodeFix" ; import { DevToolsExtensionContext } from '../../devToolsExtensionContext' ; import { TextRange } from '../../symbollibraries/textRange' ; export class ALCodeCopFixAA0137 extends ALCodeFix { constructor ( context ) { super ( context , "AA0137" ) ; } createFix ( document , diagnostic ) { const fix = new vscode . CodeAction ( `Remove Variable (AZ AL Dev Tools)` , vscode . CodeActionKind . QuickFix ) ; let fixRange = TextRange . fromAny ( diagnostic . range ) ; fix . command = { command : "azALDevTools.removeVariable" , title : "Remove variable" , arguments : [ document , fixRange ] } ; fix . isPreferred = true ; return fix ; } }