-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathEventGridCodeLensProvider.ts
More file actions
21 lines (18 loc) · 1003 Bytes
/
EventGridCodeLensProvider.ts
File metadata and controls
21 lines (18 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { CodeLens, Range, type CodeLensProvider } from 'vscode';
import { EventGridExecuteFunctionEntryPoint } from '../../../constants';
import { localize } from '../../../localize';
export class EventGridCodeLensProvider implements CodeLensProvider {
public provideCodeLenses(): CodeLens[] {
const firstLineLens = new CodeLens(new Range(0, 0, 0, 0));
firstLineLens.command = {
title: localize('saveExecute', 'Save and execute'),
command: 'azureFunctions.eventGrid.sendMockRequest',
arguments: [EventGridExecuteFunctionEntryPoint.CodeLens]
};
return [firstLineLens];
}
}