Skip to content

Commit 99cb66a

Browse files
committed
add Location
1 parent 5ec4540 commit 99cb66a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/diagnosticTypes.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,22 @@ export interface DiagnosticRelatedInformation {
224224
message: string;
225225
}
226226

227+
/**
228+
* Represents a location inside a resource, such as a line inside a text file.
229+
* @author Microsoft
230+
* @see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#location
231+
* @since 3.17.0
232+
*/
233+
export interface Location {
234+
uri: DocumentUri;
235+
range: Range;
236+
}
237+
238+
/**
239+
* A document uri.
240+
*/
241+
export type DocumentUri = string;
242+
227243

228244
/**
229245
* The document diagnostic report kinds.

0 commit comments

Comments
 (0)