allow contributed range of higlight for code actions (#202197)

* groundwork for segttings

* laying groundowrk for new API

* more groundwork, api fixed

* cleanup

* more cleanup

* added updates

* fixed spacing
This commit is contained in:
Justin Chen
2024-01-18 13:40:02 -08:00
committed by GitHub
parent 1db9db32a4
commit 834e74297f
7 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
declare module 'vscode' {
export interface CodeAction {
/**
*
* The range to which this Code Action applies to, which will be highlighted.
*
* Ex: A refactoring action will highlight the range of text that will be affected.
*/
ranges?: Range[];
}
}