Skip to content

Instantly share code, notes, and snippets.

@gerane
Last active April 5, 2017 13:28
Show Gist options
  • Save gerane/502f99dfdea43f2fa144bb3859558adc to your computer and use it in GitHub Desktop.
Save gerane/502f99dfdea43f2fa144bb3859558adc to your computer and use it in GitHub Desktop.
When
4/5/2017 8:17:04 AM [VERBOSE] - Method "ExecuteCommand" at line 468 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
Attempting to execute command(s):
proile.ps1
Out-Default

When executing the profile selection Editor Command and typing "profile.ps1" you have to double the letters because the first is sent to the console and the second is sent to the Prompt for Choice.

Fitst.log

Fitst.log is after typing "pprroofiillee..ppss11" I had deleted one of the "f" so that it wouldn't try to execute a profile.ps1 or soemthing like that. The log is after hitting enter the first time, which attempts to execute the "proile.ps1" that was sent to the console.

Second.log

Second.log is after hitting enter a second time, this time the Editor Command choice is executed

4/5/2017 8:18:08 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
READ MESSAGE:
{
"jsonrpc": "2.0",
"id": 18,
"method": "textDocument/hover",
"params": {
"uri": "file:///c%3A/Users/i2871rbp/OneDrive/Documents/WindowsPowerShell/Profile.ps1",
"position": {
"line": 346,
"character": 37
}
}
}
4/5/2017 8:18:08 AM [VERBOSE] - Method "ResolveFilePath" at line 294 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Workspace\Workspace.cs
Resolved path: c:\Users\i2871rbp\OneDrive\Documents\WindowsPowerShell\Profile.ps1
4/5/2017 8:18:08 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs
WRITE MESSAGE:
{
"jsonrpc": "2.0",
"id": "18",
"result": {
"contents": [],
"range": null
}
}
4/5/2017 8:18:10 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs
WRITE MESSAGE:
{
"jsonrpc": "2.0",
"id": "1",
"method": "editor/openFile",
"params": "C:\\Users\\i2871rbp\\OneDrive\\Documents\\WindowsPowerShell\\Profile.ps1"
}
4/5/2017 8:18:10 AM [VERBOSE] - Method "ReadMessage" at line 111 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageReader.cs
READ MESSAGE:
{
"jsonrpc": "2.0",
"id": "1",
"result": 1
}
4/5/2017 8:18:10 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1104 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
Session state changed --
Old state: Running
New state: Ready
Result: Completed
4/5/2017 8:18:10 AM [VERBOSE] - Method "ExecuteCommand" at line 528 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
Execution completed successfully.
4/5/2017 8:18:10 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1104 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
Session state changed --
Old state: Ready
New state: Running
Result: NotFinished
4/5/2017 8:18:10 AM [VERBOSE] - Method "WriteMessage" at line 59 of C:\projects\powershelleditorservices\src\PowerShellEditorServices.Protocol\MessageProtocol\MessageWriter.cs
WRITE MESSAGE:
{
"jsonrpc": "2.0",
"id": "5",
"result": null
}
4/5/2017 8:18:10 AM [VERBOSE] - Method "OnSessionStateChanged" at line 1104 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
Session state changed --
Old state: Running
New state: Ready
Result: Completed
4/5/2017 8:18:10 AM [VERBOSE] - Method "ExecuteCommand" at line 528 of C:\projects\powershelleditorservices\src\PowerShellEditorServices\Session\PowerShellContext.cs
Execution completed successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment