Skip to content

Commit 892d830

Browse files
author
Kapil Borle
committed
Add ScriptRegionRequest type, params and result intefaces
1 parent 6222de6 commit 892d830

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/features/DocumentFormatter.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ export namespace ScriptFileMarkersRequest {
2828
export const type: RequestType<any, any, void> = { get method(): string { return "powerShell/getScriptFileMarkers"; } };
2929
}
3030

31+
export namespace ScriptRegionRequest {
32+
export const type: RequestType<any, any, void> = { get method(): string { return "powerShell/getScriptRegion"; } };
33+
}
34+
35+
interface ScriptRegionRequestParams {
36+
fileUri: string;
37+
character: string;
38+
line: number;
39+
column: number;
40+
}
41+
42+
interface ScriptRegionRequestResult {
43+
scriptRegion: ScriptRegion;
44+
}
45+
3146
// TODO move some of the common interface to a separate file?
3247
interface ScriptFileMarkersRequestParams {
3348
fileUri: string;

0 commit comments

Comments
 (0)