mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
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:
17
src/vscode-dts/vscode.proposed.codeActionRanges.d.ts
vendored
Normal file
17
src/vscode-dts/vscode.proposed.codeActionRanges.d.ts
vendored
Normal 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[];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user