How can I add right justified text to a TreeView Item in my VS Code extension - vscode-extensions

In my VS Code extension, I am using a TreeView to display some metrics, where each TreeItem has a 'name' and 'value'. I can easily display the data like this (ignore the miss-alignment):
But I'd really like to force the 'value' to be right justified in the pane like this example from the debugger
Does anyone know how to achieve this result?

After looking at the code for the Call Stack view, it seems that it is not a treeView at all but built with custom HTML.
So I guess the answer to this question is: "you can't"

Related

How to change position of output panel in sublime text?

I want the output to show to the right of the code, not bellow it. I can change the view to two columns but I can't change the position of the output panel. For example:
Is it possible to change the position of the output panel to be to the right of the code, not below it?
There is a solution, which exists for years already, but does not seem to be widely used. It's the package buildview: it puts the build output in any other view, i.e. acts as a normal tab.
LINK:
https://packagecontrol.io/packages/sublime-text-2-buildview
(perfectly works with sublime 3)
It seems this feature has been requested: http://sublimetext.userecho.com/topic/23694-ability-to-show-console-output-side-by-side-with-code/. So the answer would be no, there's no way to currently do this, and there doesn't seem to be mention of it in the changelog thus far for SublimeText3.

Cocoa Custom Status Menu with text view

I've created a status menu following some hints here and sone from other sites. It shows a an NSTextView as a line item and has check spelling as you type on, which is exactly what I want (quick way to check a misspelled word). The text view area behaves as expected by highlighting the misspelled word and all.
All works well except for one thing: when I "Control-click" on the misspelled word to get options or guesses on the possible correctly spelled word, it does not popup the context menu.
In Interface Builder I've linked a list item to a custom view containing the NSTextView ... I can send the xcode project code to anyone who would like to examine it further. As a reference I followed this video: http://www.youtube.com/watch?v=HRPMFNDcfLY and modified it slightly.
I'm a beginner, so please be kind; any hints or tips would be much appreciated. Thanks ...

Is there a way to see the grid results expanded in LinqPad?

LINQPad is great for quickly looking for results with its awesome "Dump" method.
However, when I am looking on a dictionary that holds an array (or an object), I see it like that:
To actually see the value in each row, I have to click "Value", which opens a new tab. I'd really like a way to see all the values expanded in one view.
Is that possible?
It is, but it requires some coding on your part.
You'll have to implement an extension for LINQPad, and in that extension implement the ICustomMemberProvider interface. You can just put this code right along in your assembly. If it is in the LINQPad namespace, LINQPad will pick it up and use it.
For more info, see the LINQPad FAQ at http://www.linqpad.net/FAQ.aspx
I found it what I was looking for. I had to switch to "Results to rich text" (CTRL+SHIFT+T). However, at that view I still couldn't see the values properly:
However, that turned out to be because I did .Dump(0) instead of just .Dump(). Wit that fixed, I was able to expand the dictionary and see the whole picture:

How to programmatically add Tooltip for InlineEditBox in dojo 1.8

I'm using dojo 1.8.1 and have two inline editors, one for a Textarea, and one for an Editor. I would like to provide flyover tips to help explain how they should be used. Ideally, I'd like to seed the inline editor's textarea / editor with a hint if there is no content, and have this disappear when they click to edit the missing content (the underlines with the writer icon didn't do it for me -- if I can replace that span that would be okay too). However, as a start it would be nice to have a tooltip show when mousing over the entry area.
There is a parameter in the constructor for the InlineEditBox called noValueIndicator where you can put the hint for content when none has been supplied and it disappears when the editor has focus for entry. Too simple -- horses, not zebras...

Is there an easy way to make a code TextBox?

Is there an easy way to make a code TextBox?
I'm trying to make my own limited/specialized version of XAMLPad.
Displaying the current XAML object tree in the top display is simple enough, using XamlReader.Parse() ... But I'd like the actual XAML code in the bottom window to show up in its appropriate colors.
Here is an example of something similar to what I want.
(source: usefulfreeware.net)
The above example looks pretty authentic, with the little expander/collapser thingies on the left side as well as close-to-standard coloration of XAML tokens.
I believe that this doesn't have to be created from scratch, so I'm asking SO if anyone knows where I might find automated support for this type of "code" display.
Kaxaml uses ICSharpCode.TextEditor, the text editor component from SharpDevelop.
Have a look at sharpdevelop - we use it for an internal iron python editor