@@ -8,6 +8,21 @@ import * as lsp from 'vscode-languageserver-protocol';
88import { CodeAction , TextDocumentRegistrationOptions } from 'vscode-languageserver-protocol' ;
99import { ProjectConfigurationMessage } from '../shared/projectConfiguration' ;
1010
11+ export interface VSProjectContextList {
12+ _vs_projectContexts : VSProjectContext [ ] ;
13+ _vs_defaultIndex : number ;
14+ }
15+
16+ export interface VSProjectContext {
17+ _vs_label : string ;
18+ _vs_id : string ;
19+ _vs_kind : string ;
20+ }
21+
22+ export interface VSTextDocumentIdentifier extends lsp . TextDocumentIdentifier {
23+ _vs_projectContext : VSProjectContext | undefined ;
24+ }
25+
1126export interface WorkspaceDebugConfigurationParams {
1227 /**
1328 * Workspace path containing the solution/projects to get debug information for.
@@ -88,6 +103,13 @@ export interface RegisterSolutionSnapshotResponseItem {
88103 id : lsp . integer ;
89104}
90105
106+ export interface VSGetProjectContextParams {
107+ /**
108+ * The document the project context is being requested for.
109+ */
110+ _vs_textDocument : lsp . TextDocumentIdentifier ;
111+ }
112+
91113export interface RunTestsParams extends lsp . WorkDoneProgressParams , lsp . PartialResultParams {
92114 /**
93115 * The text document containing the tests to run.
@@ -210,6 +232,12 @@ export namespace RegisterSolutionSnapshotRequest {
210232 export const type = new lsp . RequestType0 < RegisterSolutionSnapshotResponseItem , void > ( method ) ;
211233}
212234
235+ export namespace VSGetProjectContextsRequest {
236+ export const method = 'textDocument/_vs_getProjectContexts' ;
237+ export const messageDirection : lsp . MessageDirection = lsp . MessageDirection . clientToServer ;
238+ export const type = new lsp . RequestType < VSGetProjectContextParams , VSProjectContextList , void > ( method ) ;
239+ }
240+
213241export namespace ProjectInitializationCompleteNotification {
214242 export const method = 'workspace/projectInitializationComplete' ;
215243 export const messageDirection : lsp . MessageDirection = lsp . MessageDirection . serverToClient ;
0 commit comments