Skip to content

Instantly share code, notes, and snippets.

View aeschli's full-sized avatar

Martin Aeschlimann aeschli

  • Microsoft
  • Switzerland
View GitHub Profile
@aeschli
aeschli / colorThemeData.ts
Created August 29, 2023 12:40
DiffEditorMove Test
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const tokenGroupToScopesMap = {
comments: ['comment', 'punctuation.definition.comment'],
strings: ['string', 'meta.embedded.assembly'],
keywords: ['keyword - keyword.operator', 'keyword.control', 'storage', 'storage.type'],
numbers: ['constant.numeric'],
types: ['entity.name.type', 'entity.name.class', 'support.type', 'support.class'],
@aeschli
aeschli / styles.css
Created November 18, 2022 13:32
Stylesheet with color variables
.monaco-editor,
.monaco-editor-background {
background-color: var(--vscode-editor-background);
}
.monaco-editor .inputarea.ime-input {
background-color: var(--vscode-editor-lineHighlightBackground);
}
.monaco-editor,
.monaco-editor .inputarea.ime-input {
color: var(--vscode-editor-foreground);
#!/usr/bin/env sh
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
[ "$VSCODE_TRACE" = true ] && set -x
if [ ! "$(command -v wget)" ]; then
echo "ERROR: Failed to download the VS Code server. 'wget' not installed." 1>&2
echo "Please install wget:" 1>&2
👋 Hi there, Martin here, from the VS Code team.
Recently we've announced the [Remote Repository feature](https://code.visualstudio.com/updates/v1_56#_remote-repositories-remotehub) that lets you browse and edit files and folders directly on GitHub.
`Open Remote Repository...` opens VSCode on a folder or workspace located on a virtual file system. We call this a __virtual workspace__. We observed that not all extension support this well, either because they can not, or they haven't thought about it.
It would be fantastic if you could test whether your extension can handle virtual workspaces:
Check out the [Virtual Workspaces Extension Author Guide](https://github.com/microsoft/vscode/wiki/Virtual-Workspaces) on how to do that.
@aeschli
aeschli / launch.json
Created April 7, 2021 19:55
launch schema codespace
{
"id": "vscode://schemas/launch",
"type": "object",
"title": "Launch",
"allowTrailingCommas": true,
"allowComments": true,
"required": [],
"default": {
"version": "0.2.0",
"configurations": [],
@aeschli
aeschli / launch schema
Last active April 6, 2021 18:04
vscode launch schema 1.55
This file has been truncated, but you can view the full file.
{
"id": "vscode://schemas/launch",
"type": "object",
"title": "Launch",
"allowTrailingCommas": true,
"allowComments": true,
"required": [],
"default": {
"version": "0.2.0",
"configurations": [],
@aeschli
aeschli / gist:3ce9ea630800be91e6e25a55e0f5c0f8
Last active October 23, 2020 08:13
Github light color (1.1.5)
{
"themeType": "light",
"colors": {
"focusBorder": "#2188ff",
"foreground": "#444d56",
"descriptionForeground": "#6a737d",
"errorForeground": "#cb2431",
"textLink.foreground": "#0366d6",
"textLink.activeForeground": "#005cc5",
"textBlockQuote.background": "#fafbfc",
{
"$schema": "vscode://schemas/color-theme",
"name": "Dark+ (default dark)",
"include": "./dark_vs.json",
"tokenColors": [
{
"name": "Function declarations",
"scope": [
"entity.name.function",
"support.function",
{
"$schema": "vscode://schemas/color-theme",
"name": "Dark (Visual Studio)",
"include": "./dark_defaults.json",
"tokenColors": [
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
],
@aeschli
aeschli / css
Created October 12, 2018 16:00
css
.monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: rgba(121, 121, 121, 0.2); }
.monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: rgba(100, 100, 100, 0.35); }
.monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: rgba(191, 191, 191, 0.2); }
.monaco-editor .minimap-shadow-visible { box-shadow: #000000 -6px 0 6px -6px inset; }
.monaco-editor .scroll-decoration { box-shadow: #000000 0 6px 6px -6px inset; }
.monaco-editor .focused .selected-text { background-color: #264f78; }
.monaco-editor .selected-text { background-color: #3a3d41; }
.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: #1e1e1e; }
.monaco-editor, .monaco-editor .inputarea.ime-input { color: #d4d4d4; }
.monaco-editor .margin { background-color: #1e1e1e; }