Skip to content

Commit 5f8ff01

Browse files
committed
Reorganize Transport.Stdio files
This change reorganizes the files in the Transport.Stdio library to prepare for a split in message structure between language server and debug adapter messages. The following commits will change class hierarchy and namespaces for all affected files.
1 parent d392fce commit 5f8ff01

File tree

89 files changed

+144
-271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+144
-271
lines changed

src/PowerShellEditorServices.Host/StdioConsoleHost.cs

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,30 @@ Task<int> IConsoleHost.PromptForChoice(
4343
IEnumerable<ChoiceDetails> choices,
4444
int defaultChoice)
4545
{
46-
// Create and store a TaskCompletionSource that will be
47-
// used to send the user's response back to the caller
48-
this.currentPromptChoiceTask = new TaskCompletionSource<int>();
49-
this.currentReplEventSequence++;
50-
51-
this.messageWriter.WriteMessage(
52-
new ReplPromptChoiceEvent
53-
{
54-
Body = new ReplPromptChoiceEventBody
55-
{
56-
Seq = this.currentReplEventSequence,
57-
Caption = caption,
58-
Message = message,
59-
DefaultChoice = defaultChoice,
60-
Choices =
61-
choices
62-
.Select(ReplPromptChoiceDetails.FromChoiceDescription)
63-
.ToArray()
64-
}
65-
});
66-
67-
return this.currentPromptChoiceTask.Task;
46+
//// Create and store a TaskCompletionSource that will be
47+
//// used to send the user's response back to the caller
48+
//this.currentPromptChoiceTask = new TaskCompletionSource<int>();
49+
//this.currentReplEventSequence++;
50+
51+
//this.messageWriter.WriteMessage(
52+
// new ReplPromptChoiceEvent
53+
// {
54+
// Body = new ReplPromptChoiceEventBody
55+
// {
56+
// Seq = this.currentReplEventSequence,
57+
// Caption = caption,
58+
// Message = message,
59+
// DefaultChoice = defaultChoice,
60+
// Choices =
61+
// choices
62+
// .Select(ReplPromptChoiceDetails.FromChoiceDescription)
63+
// .ToArray()
64+
// }
65+
// });
66+
67+
//return this.currentPromptChoiceTask.Task;
68+
69+
throw new NotImplementedException("This method is currently being refactored and is not available.");
6870
}
6971

7072
void IConsoleHost.PromptForChoiceResult(

0 commit comments

Comments
 (0)