Skip to content

Instantly share code, notes, and snippets.

View sandyarmstrong's full-sized avatar

Sandy Armstrong sandyarmstrong

View GitHub Profile
@sandyarmstrong
sandyarmstrong / Microsoft.PowerShell_profile.ps1
Last active August 10, 2021 21:21
Setting up a modern PowerShell+VS experience on Windows
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme Paradox
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadlineKeyHandler -Key Tab -Function Complete
function Enter-Vs
(
ERROR [2019-05-29 08:56:13Z]: An unhandled exception has occurred. Terminating Visual Studio? False
System.Exception: Connection closed
WARNING [2019-05-29 08:56:18Z]: ImageService missing ImageDescription: 'ae27a6b0-e345-4288-96df-5eaf394ee369 : 2174' @ 16x16 [None]
WARNING [2019-05-29 08:59:26Z]: Failed to get filename of textbuffer, breakpoints integration will not work.
WARNING [2019-05-29 09:00:05Z]: Failed to get filename of textbuffer, breakpoints integration will not work.
WARNING [2019-05-29 09:00:57Z]: Failed to get filename of textbuffer, breakpoints integration will not work.
ERROR [2019-05-29 09:01:47Z]: An unhandled exception has occurred. Terminating Visual Studio? False
System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.
at (wrapper stelemref) System.Object.virt_stelemref_class_small_idepth(intptr,object)
at Microsoft.VisualStudio.Text.Editor.Implementation.BaseTextView.PreLayout (Microsoft.VisualStudio.Text.Editor.Implementation.BaseTex
uti id title platforms packages
com.xamarin.workbook
d2907bf8-3806-4ade-8c65-3b4dfa52ad5c
neth
Console
id version
Nethereum.Accounts
2.5.1
XamarinProfiler.Core.Profiler Verbose: 0 : [2017-06-26 15:52:24.2842] processing command line = --options=gc:sgen --type=mac --target=/Users/sandy/xam-git/inspector/Clients/Xamarin.Interactive.Client.Mac/bin/Debug/Xamarin Workbooks.app
XamarinProfiler.Mac.LcdView Information: 0 : [2017-06-26 15:52:40.3029] Progress report initialized successfully
XamarinProfiler.Mac.LcdView Information: 0 : [2017-06-26 15:52:40.3033] Initializing profiling...
XamarinProfiler.Core.Platforms.Mac.ProfileMacRun Information: 0 : [2017-06-26 15:52:40.3637] setting up process for /Users/sandy/xam-git/inspector/Clients/Xamarin.Interactive.Client.Mac/bin/Debug/Xamarin Workbooks.app
XamarinProfiler.Core.Platforms.Mac.ProfileMacRun Information: 0 : [2017-06-26 15:52:40.3657] Starting profiler for /Users/sandy/xam-git/inspector/Clients/Xamarin.Interactive.Client.Mac/bin/Debug/Xamarin Workbooks.app with --gc=sgen --profile=log:heapshot=ondemand,alloc,nocalls,maxframes=8,sample=cycles/1000,output=-/var/folders/xc/cj36b1t92nj4_hsvm66kcjm000
//
// rendering.ts
//
// Author:
// Aaron Bockover <[email protected]>
//
// Copyright 2016 Microsoft. All rights reserved.
import { CultureInfo, ManagedObject } from "xamarin/interactive/dotnet"
import { Renderer } from "xamarin/interactive/rendering"
uti platforms
com.xamarin.workbook
Console
// some code
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>13F34</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>intelhaxm</string>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript" src="node_modules/monaco-editor/dev/vs/loader.js"></script>
<script type="text/javascript">
require.config({ paths: { 'vs': 'node_modules/monaco-editor/dev/vs' }});
require(['vs/editor/editor.main'], function() {

Keybase proof

I hereby claim:

  • I am sandyarmstrong on github.
  • I am sandyarmstrong (https://keybase.io/sandyarmstrong) on keybase.
  • I have a public key whose fingerprint is 7048 7442 D4A8 A832 464D 6A09 04DE 2939 598B B91E

To claim this, I am signing this object:

diff --git a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs
index d301d92..3990a45 100644
--- a/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs
+++ b/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs
@@ -614,6 +614,11 @@ namespace MonoDevelop.SourceEditor
messageBubbleCache = null;
}
}
+
+ protected virtual string ProcessSaveText (string text)