first commit
This commit is contained in:
commit
3c44330ddc
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
BIN
code-server
Normal file
BIN
code-server
Normal file
Binary file not shown.
4
config/code-server/config.yaml
Normal file
4
config/code-server/config.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
bind-addr: 127.0.0.1:8080
|
||||
auth: none
|
||||
disable-update-check: true
|
||||
disable-telemetry: true
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
local/code-server/User/History/-24b5738e/Qyhq.ts
Normal file
7
local/code-server/User/History/-24b5738e/Qyhq.ts
Normal file
@ -0,0 +1,7 @@
|
||||
const server = Bun.serve({
|
||||
async fetch(req) {
|
||||
return new Response("Welcome to Bun! Courtesy of Moduletrace.");
|
||||
},
|
||||
});
|
||||
|
||||
console.log(`Bun Server running on port ${server.port} ...`);
|
||||
1
local/code-server/User/History/-24b5738e/entries.json
Normal file
1
local/code-server/User/History/-24b5738e/entries.json
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote://localhost:8080/root/workspace/test.ts","entries":[{"id":"Qyhq.ts","timestamp":1738999043143}]}
|
||||
1
local/code-server/User/History/-26d94b1c/entries.json
Normal file
1
local/code-server/User/History/-26d94b1c/entries.json
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote://localhost:8080/root/workspace/index.ts","entries":[{"id":"zvZE.ts","timestamp":1738999062083}]}
|
||||
7
local/code-server/User/History/-26d94b1c/zvZE.ts
Normal file
7
local/code-server/User/History/-26d94b1c/zvZE.ts
Normal file
@ -0,0 +1,7 @@
|
||||
const server = Bun.serve({
|
||||
async fetch(req) {
|
||||
return new Response("Welcome to Bun! Courtesy of Moduletrace.");
|
||||
},
|
||||
});
|
||||
|
||||
console.log(`Bun Server running on port ${server.port} ...`);
|
||||
7
local/code-server/User/History/383c2de5/YppF.json
Normal file
7
local/code-server/User/History/383c2de5/YppF.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"workbench.colorTheme": "Obsidian Dark",
|
||||
"editor.formatOnSave": true,
|
||||
"prettier.tabWidth": 4,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"files.autoSave": "off"
|
||||
}
|
||||
1
local/code-server/User/History/383c2de5/entries.json
Normal file
1
local/code-server/User/History/383c2de5/entries.json
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote:/root/.local/share/code-server/User/settings.json","entries":[{"id":"pwWg.json","timestamp":1738998568039},{"id":"YppF.json","timestamp":1738999005738}]}
|
||||
3
local/code-server/User/History/383c2de5/pwWg.json
Normal file
3
local/code-server/User/History/383c2de5/pwWg.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"workbench.colorTheme": "Obsidian Dark"
|
||||
}
|
||||
2
local/code-server/User/History/3a793599/HyKD.yaml
Normal file
2
local/code-server/User/History/3a793599/HyKD.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
bind-addr: 127.0.0.1:8080
|
||||
auth: none
|
||||
1
local/code-server/User/History/3a793599/entries.json
Normal file
1
local/code-server/User/History/3a793599/entries.json
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote://localhost:8080/root/.config/code-server/config.yaml","entries":[{"id":"HyKD.yaml","timestamp":1738998519741}]}
|
||||
148
local/code-server/User/History/4aa49984/S5jN
Normal file
148
local/code-server/User/History/4aa49984/S5jN
Normal file
@ -0,0 +1,148 @@
|
||||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return ;;
|
||||
esac
|
||||
|
||||
GREEN="$(tput setaf 2)"
|
||||
BLUE="$(tput setaf 4)"
|
||||
WHITE="$(tput setaf 7)"
|
||||
BOLD="$(tput bold)"
|
||||
RESET="$(tput sgr0)"
|
||||
|
||||
function parse_git_branch() {
|
||||
git_branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
||||
if [ -z "$git_branch" ]; then
|
||||
echo ""
|
||||
else
|
||||
echo " ${WHITE}${BOLD}$git_branch${RESET}"
|
||||
fi
|
||||
}
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
export HISTFILE=~/.bash_history
|
||||
export HISTSIZE=100
|
||||
export HISTFILESIZE=200
|
||||
|
||||
# Append to the history file rather than overwriting it
|
||||
shopt -s histappend
|
||||
|
||||
# Ignore duplicate or specific commands in history
|
||||
export HISTCONTROL=ignoredups:erasedups # Avoid duplicate entries
|
||||
export HISTIGNORE="ls:bg:fg:history" # Ignore specific commands
|
||||
|
||||
if [ ! -f "$HISTFILE" ]; then
|
||||
touch "$HISTFILE"
|
||||
chmod 600 "$HISTFILE"
|
||||
fi
|
||||
|
||||
# Save history immediately after every command
|
||||
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color | *-256color) color_prompt=yes ;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(parse_git_branch) $ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u:\w$(parse_git_branch) $ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm* | rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u: \w\a\]$PS1"
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
#alias grep='grep --color=auto'
|
||||
#alias fgrep='fgrep --color=auto'
|
||||
#alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -laF'
|
||||
alias code='/root/code-server/bin/code-server'
|
||||
#alias la='ls -A'
|
||||
#alias l='ls -CF'
|
||||
|
||||
# Alias definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
# bun
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
||||
1
local/code-server/User/History/4aa49984/entries.json
Normal file
1
local/code-server/User/History/4aa49984/entries.json
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote://localhost:8080/root/.bashrc","entries":[{"id":"S5jN","timestamp":1738998430358}]}
|
||||
15
local/code-server/User/History/4b9e4cd9/28Tf.json
Normal file
15
local/code-server/User/History/4b9e4cd9/28Tf.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "test",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "bun --watch index.ts",
|
||||
"start": "bun index.ts"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
}
|
||||
}
|
||||
1
local/code-server/User/History/4b9e4cd9/entries.json
Normal file
1
local/code-server/User/History/4b9e4cd9/entries.json
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote://localhost:8080/root/workspace/package.json","entries":[{"id":"28Tf.json","timestamp":1738999130593},{"id":"odIl.json","timestamp":1738999257295}]}
|
||||
15
local/code-server/User/History/4b9e4cd9/odIl.json
Normal file
15
local/code-server/User/History/4b9e4cd9/odIl.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "test",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "bun --watch index.ts",
|
||||
"start": "bun index.ts"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
}
|
||||
}
|
||||
57
local/code-server/User/History/692c28f7/HhNL.json
Normal file
57
local/code-server/User/History/692c28f7/HhNL.json
Normal file
@ -0,0 +1,57 @@
|
||||
// Place your key bindings in this file to override the defaults
|
||||
[
|
||||
{
|
||||
"key": "ctrl+c",
|
||||
"command": "workbench.action.terminal.copySelection",
|
||||
"when": "terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+c",
|
||||
"command": "-workbench.action.terminal.copySelection",
|
||||
"when": "terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+v",
|
||||
"command": "workbench.action.terminal.paste",
|
||||
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+v",
|
||||
"command": "-workbench.action.terminal.paste",
|
||||
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+p",
|
||||
"command": "workbench.action.pinEditor",
|
||||
"when": "!activeEditorIsPinned"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k shift+enter",
|
||||
"command": "-workbench.action.pinEditor",
|
||||
"when": "!activeEditorIsPinned"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+s",
|
||||
"command": "workbench.action.files.saveFiles"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+down",
|
||||
"command": "editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+down",
|
||||
"command": "-editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+up",
|
||||
"command": "editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+up",
|
||||
"command": "-editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
}
|
||||
]
|
||||
1
local/code-server/User/History/692c28f7/entries.json
Normal file
1
local/code-server/User/History/692c28f7/entries.json
Normal file
@ -0,0 +1 @@
|
||||
{"version":1,"resource":"vscode-remote:/root/.local/share/code-server/User/keybindings.json","entries":[{"id":"HhNL.json","timestamp":1738998940281},{"id":"fPo4.json","timestamp":1738999400874}]}
|
||||
67
local/code-server/User/History/692c28f7/fPo4.json
Normal file
67
local/code-server/User/History/692c28f7/fPo4.json
Normal file
@ -0,0 +1,67 @@
|
||||
// Place your key bindings in this file to override the defaults
|
||||
[
|
||||
{
|
||||
"key": "ctrl+c",
|
||||
"command": "workbench.action.terminal.copySelection",
|
||||
"when": "terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+c",
|
||||
"command": "-workbench.action.terminal.copySelection",
|
||||
"when": "terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+v",
|
||||
"command": "workbench.action.terminal.paste",
|
||||
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+v",
|
||||
"command": "-workbench.action.terminal.paste",
|
||||
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+p",
|
||||
"command": "workbench.action.pinEditor",
|
||||
"when": "!activeEditorIsPinned"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k shift+enter",
|
||||
"command": "-workbench.action.pinEditor",
|
||||
"when": "!activeEditorIsPinned"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+s",
|
||||
"command": "workbench.action.files.saveFiles"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+down",
|
||||
"command": "editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+down",
|
||||
"command": "-editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+up",
|
||||
"command": "editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+up",
|
||||
"command": "-editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+delete",
|
||||
"command": "editor.action.deleteLines",
|
||||
"when": "textInputFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+k",
|
||||
"command": "-editor.action.deleteLines",
|
||||
"when": "textInputFocus && !editorReadonly"
|
||||
}
|
||||
]
|
||||
@ -0,0 +1 @@
|
||||
{"content":{"settings":"{}","tasks":"{}","launch":"{}"}}
|
||||
1
local/code-server/User/customBuiltinExtensionsCache.json
Normal file
1
local/code-server/User/customBuiltinExtensionsCache.json
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
@ -0,0 +1,126 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://json.schemastore.org/semantic-release.json",
|
||||
"definitions": {
|
||||
"branch-object": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["name"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"channel": {
|
||||
"type": "string"
|
||||
},
|
||||
"range": {
|
||||
"type": "string"
|
||||
},
|
||||
"prerelease": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"extends": {
|
||||
"description": "List of modules or file paths containing a shareable configuration. If multiple shareable configurations are set, they will be imported in the order defined with each configuration option taking precedence over the options defined in a previous shareable configuration",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"branches": {
|
||||
"description": "The branches on which releases should happen.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/branch-object"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/branch-object"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": [
|
||||
"+([0-9])?(.{+([0-9]),x}).x",
|
||||
"master",
|
||||
"next",
|
||||
"next-major",
|
||||
{
|
||||
"name": "beta",
|
||||
"prerelease": true
|
||||
},
|
||||
{
|
||||
"name": "alpha",
|
||||
"prerelease": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"repositoryUrl": {
|
||||
"type": "string",
|
||||
"description": "The git repository URL"
|
||||
},
|
||||
"tagFormat": {
|
||||
"type": "string",
|
||||
"description": "The Git tag format used by semantic-release to identify releases. The tag name is generated with Lodash template and will be compiled with the version variable.",
|
||||
"default": "v${version}"
|
||||
},
|
||||
"plugins": {
|
||||
"type": "array",
|
||||
"description": "Define the list of plugins to use. Plugins will run in series, in the order defined",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array"
|
||||
}
|
||||
]
|
||||
},
|
||||
"default": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/github"
|
||||
]
|
||||
},
|
||||
"dryRun": {
|
||||
"type": "boolean",
|
||||
"description": "The objective of the dry-run mode is to get a preview of the pending release. Dry-run mode skips the following steps: prepare, publish, success and fail. In addition to this it prints the next version and release notes to the console"
|
||||
},
|
||||
"ci": {
|
||||
"type": "boolean",
|
||||
"description": "Set to false to skip Continuous Integration environment verifications. This allows for making releases from a local machine",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"title": "semantic-release Schema",
|
||||
"type": "object"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,396 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://json.schemastore.org/prettierrc.json",
|
||||
"definitions": {
|
||||
"optionsDefinition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"arrowParens": {
|
||||
"description": "Include parentheses around a sole arrow function parameter.",
|
||||
"default": "always",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["always"],
|
||||
"description": "Always include parens. Example: `(x) => x`"
|
||||
},
|
||||
{
|
||||
"enum": ["avoid"],
|
||||
"description": "Omit parens when possible. Example: `x => x`"
|
||||
}
|
||||
]
|
||||
},
|
||||
"bracketSameLine": {
|
||||
"description": "Put > of opening tags on the last line instead of on a new line.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"bracketSpacing": {
|
||||
"description": "Print spaces between brackets.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"cursorOffset": {
|
||||
"description": "Print (to stderr) where a cursor at the given position would move to after formatting.",
|
||||
"default": -1,
|
||||
"type": "integer"
|
||||
},
|
||||
"embeddedLanguageFormatting": {
|
||||
"description": "Control how Prettier formats quoted code embedded in the file.",
|
||||
"default": "auto",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["auto"],
|
||||
"description": "Format embedded code if Prettier can automatically identify it."
|
||||
},
|
||||
{
|
||||
"enum": ["off"],
|
||||
"description": "Never automatically format embedded code."
|
||||
}
|
||||
]
|
||||
},
|
||||
"endOfLine": {
|
||||
"description": "Which end of line characters to apply.",
|
||||
"default": "lf",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["lf"],
|
||||
"description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos"
|
||||
},
|
||||
{
|
||||
"enum": ["crlf"],
|
||||
"description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows"
|
||||
},
|
||||
{
|
||||
"enum": ["cr"],
|
||||
"description": "Carriage Return character only (\\r), used very rarely"
|
||||
},
|
||||
{
|
||||
"enum": ["auto"],
|
||||
"description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"experimentalTernaries": {
|
||||
"description": "Use curious ternaries, with the question mark after the condition.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"filepath": {
|
||||
"description": "Specify the input filepath. This will be used to do parser inference.",
|
||||
"type": "string"
|
||||
},
|
||||
"htmlWhitespaceSensitivity": {
|
||||
"description": "How to handle whitespaces in HTML.",
|
||||
"default": "css",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["css"],
|
||||
"description": "Respect the default value of CSS display property."
|
||||
},
|
||||
{
|
||||
"enum": ["strict"],
|
||||
"description": "Whitespaces are considered sensitive."
|
||||
},
|
||||
{
|
||||
"enum": ["ignore"],
|
||||
"description": "Whitespaces are considered insensitive."
|
||||
}
|
||||
]
|
||||
},
|
||||
"insertPragma": {
|
||||
"description": "Insert @format pragma into file's first docblock comment.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"jsxSingleQuote": {
|
||||
"description": "Use single quotes in JSX.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"parser": {
|
||||
"description": "Which parser to use.",
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": ["flow"],
|
||||
"description": "Flow"
|
||||
},
|
||||
{
|
||||
"enum": ["babel"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["babel-flow"],
|
||||
"description": "Flow"
|
||||
},
|
||||
{
|
||||
"enum": ["babel-ts"],
|
||||
"description": "TypeScript"
|
||||
},
|
||||
{
|
||||
"enum": ["typescript"],
|
||||
"description": "TypeScript"
|
||||
},
|
||||
{
|
||||
"enum": ["acorn"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["espree"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["meriyah"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["css"],
|
||||
"description": "CSS"
|
||||
},
|
||||
{
|
||||
"enum": ["less"],
|
||||
"description": "Less"
|
||||
},
|
||||
{
|
||||
"enum": ["scss"],
|
||||
"description": "SCSS"
|
||||
},
|
||||
{
|
||||
"enum": ["json"],
|
||||
"description": "JSON"
|
||||
},
|
||||
{
|
||||
"enum": ["json5"],
|
||||
"description": "JSON5"
|
||||
},
|
||||
{
|
||||
"enum": ["jsonc"],
|
||||
"description": "JSON with Comments"
|
||||
},
|
||||
{
|
||||
"enum": ["json-stringify"],
|
||||
"description": "JSON.stringify"
|
||||
},
|
||||
{
|
||||
"enum": ["graphql"],
|
||||
"description": "GraphQL"
|
||||
},
|
||||
{
|
||||
"enum": ["markdown"],
|
||||
"description": "Markdown"
|
||||
},
|
||||
{
|
||||
"enum": ["mdx"],
|
||||
"description": "MDX"
|
||||
},
|
||||
{
|
||||
"enum": ["vue"],
|
||||
"description": "Vue"
|
||||
},
|
||||
{
|
||||
"enum": ["yaml"],
|
||||
"description": "YAML"
|
||||
},
|
||||
{
|
||||
"enum": ["glimmer"],
|
||||
"description": "Ember / Handlebars"
|
||||
},
|
||||
{
|
||||
"enum": ["html"],
|
||||
"description": "HTML"
|
||||
},
|
||||
{
|
||||
"enum": ["angular"],
|
||||
"description": "Angular"
|
||||
},
|
||||
{
|
||||
"enum": ["lwc"],
|
||||
"description": "Lightning Web Components"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Custom parser"
|
||||
}
|
||||
]
|
||||
},
|
||||
"plugins": {
|
||||
"description": "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",
|
||||
"default": [],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"printWidth": {
|
||||
"description": "The line length where Prettier will try wrap.",
|
||||
"default": 80,
|
||||
"type": "integer"
|
||||
},
|
||||
"proseWrap": {
|
||||
"description": "How to wrap prose.",
|
||||
"default": "preserve",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["always"],
|
||||
"description": "Wrap prose if it exceeds the print width."
|
||||
},
|
||||
{
|
||||
"enum": ["never"],
|
||||
"description": "Do not wrap prose."
|
||||
},
|
||||
{
|
||||
"enum": ["preserve"],
|
||||
"description": "Wrap prose as-is."
|
||||
}
|
||||
]
|
||||
},
|
||||
"quoteProps": {
|
||||
"description": "Change when properties in objects are quoted.",
|
||||
"default": "as-needed",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["as-needed"],
|
||||
"description": "Only add quotes around object properties where required."
|
||||
},
|
||||
{
|
||||
"enum": ["consistent"],
|
||||
"description": "If at least one property in an object requires quotes, quote all properties."
|
||||
},
|
||||
{
|
||||
"enum": ["preserve"],
|
||||
"description": "Respect the input use of quotes in object properties."
|
||||
}
|
||||
]
|
||||
},
|
||||
"rangeEnd": {
|
||||
"description": "Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",
|
||||
"default": null,
|
||||
"type": "integer"
|
||||
},
|
||||
"rangeStart": {
|
||||
"description": "Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",
|
||||
"default": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"requirePragma": {
|
||||
"description": "Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"semi": {
|
||||
"description": "Print semicolons.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"singleAttributePerLine": {
|
||||
"description": "Enforce single attribute per line in HTML, Vue and JSX.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"singleQuote": {
|
||||
"description": "Use single quotes instead of double quotes.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"tabWidth": {
|
||||
"description": "Number of spaces per indentation level.",
|
||||
"default": 2,
|
||||
"type": "integer"
|
||||
},
|
||||
"trailingComma": {
|
||||
"description": "Print trailing commas wherever possible when multi-line.",
|
||||
"default": "all",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["all"],
|
||||
"description": "Trailing commas wherever possible (including function arguments)."
|
||||
},
|
||||
{
|
||||
"enum": ["es5"],
|
||||
"description": "Trailing commas where valid in ES5 (objects, arrays, etc.)"
|
||||
},
|
||||
{
|
||||
"enum": ["none"],
|
||||
"description": "No trailing commas."
|
||||
}
|
||||
]
|
||||
},
|
||||
"useTabs": {
|
||||
"description": "Indent with tabs instead of spaces.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"vueIndentScriptAndStyle": {
|
||||
"description": "Indent script and style tags in Vue files.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"overridesDefinition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"overrides": {
|
||||
"type": "array",
|
||||
"description": "Provide a list of patterns to override prettier configuration.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["files"],
|
||||
"properties": {
|
||||
"files": {
|
||||
"description": "Include these files in this override.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"excludeFiles": {
|
||||
"description": "Exclude these files from this override.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"$ref": "#/definitions/optionsDefinition",
|
||||
"type": "object",
|
||||
"description": "The options to apply for this override."
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/optionsDefinition"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/overridesDefinition"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"title": "Schema for .prettierrc"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,405 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://json.schemastore.org/jscpd.json",
|
||||
"additionalProperties": false,
|
||||
"definitions": {
|
||||
"colorPreset": {
|
||||
"enum": [
|
||||
"green",
|
||||
"blue",
|
||||
"red",
|
||||
"yellow",
|
||||
"orange",
|
||||
"purple",
|
||||
"pink",
|
||||
"grey",
|
||||
"gray",
|
||||
"cyan",
|
||||
"black"
|
||||
]
|
||||
},
|
||||
"colorHex": {
|
||||
"type": "string",
|
||||
"pattern": "([0-9a-fA-F]{3}){1,2}"
|
||||
},
|
||||
"color": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/definitions/colorPreset"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/colorHex"
|
||||
}
|
||||
]
|
||||
},
|
||||
"format": {
|
||||
"enum": [
|
||||
"abap",
|
||||
"actionscript",
|
||||
"ada",
|
||||
"apacheconf",
|
||||
"apl",
|
||||
"applescript",
|
||||
"arduino",
|
||||
"arff",
|
||||
"asciidoc",
|
||||
"asm6502",
|
||||
"aspnet",
|
||||
"autohotkey",
|
||||
"autoit",
|
||||
"bash",
|
||||
"basic",
|
||||
"batch",
|
||||
"bison",
|
||||
"brainfuck",
|
||||
"bro",
|
||||
"c",
|
||||
"c-header",
|
||||
"clike",
|
||||
"clojure",
|
||||
"coffeescript",
|
||||
"comments",
|
||||
"cpp",
|
||||
"cpp-header",
|
||||
"crystal",
|
||||
"csharp",
|
||||
"csp",
|
||||
"css-extras",
|
||||
"css",
|
||||
"d",
|
||||
"dart",
|
||||
"diff",
|
||||
"django",
|
||||
"docker",
|
||||
"eiffel",
|
||||
"elixir",
|
||||
"elm",
|
||||
"erb",
|
||||
"erlang",
|
||||
"flow",
|
||||
"fortran",
|
||||
"fsharp",
|
||||
"gedcom",
|
||||
"gherkin",
|
||||
"git",
|
||||
"glsl",
|
||||
"go",
|
||||
"graphql",
|
||||
"groovy",
|
||||
"haml",
|
||||
"handlebars",
|
||||
"haskell",
|
||||
"haxe",
|
||||
"hpkp",
|
||||
"hsts",
|
||||
"http",
|
||||
"ichigojam",
|
||||
"icon",
|
||||
"inform7",
|
||||
"ini",
|
||||
"io",
|
||||
"j",
|
||||
"java",
|
||||
"javascript",
|
||||
"jolie",
|
||||
"json",
|
||||
"jsx",
|
||||
"julia",
|
||||
"keymap",
|
||||
"kotlin",
|
||||
"latex",
|
||||
"less",
|
||||
"liquid",
|
||||
"lisp",
|
||||
"livescript",
|
||||
"lolcode",
|
||||
"lua",
|
||||
"makefile",
|
||||
"markdown",
|
||||
"markup",
|
||||
"matlab",
|
||||
"mel",
|
||||
"mizar",
|
||||
"monkey",
|
||||
"n4js",
|
||||
"nasm",
|
||||
"nginx",
|
||||
"nim",
|
||||
"nix",
|
||||
"nsis",
|
||||
"objectivec",
|
||||
"ocaml",
|
||||
"opencl",
|
||||
"oz",
|
||||
"parigp",
|
||||
"pascal",
|
||||
"perl",
|
||||
"php",
|
||||
"plsql",
|
||||
"powershell",
|
||||
"processing",
|
||||
"prolog",
|
||||
"properties",
|
||||
"protobuf",
|
||||
"pug",
|
||||
"puppet",
|
||||
"pure",
|
||||
"python",
|
||||
"q",
|
||||
"qore",
|
||||
"r",
|
||||
"reason",
|
||||
"renpy",
|
||||
"rest",
|
||||
"rip",
|
||||
"roboconf",
|
||||
"ruby",
|
||||
"rust",
|
||||
"sas",
|
||||
"sass",
|
||||
"scala",
|
||||
"scheme",
|
||||
"scss",
|
||||
"smalltalk",
|
||||
"smarty",
|
||||
"soy",
|
||||
"sql",
|
||||
"stylus",
|
||||
"swift",
|
||||
"tap",
|
||||
"tcl",
|
||||
"textile",
|
||||
"tsx",
|
||||
"tt2",
|
||||
"twig",
|
||||
"typescript",
|
||||
"vbnet",
|
||||
"velocity",
|
||||
"verilog",
|
||||
"vhdl",
|
||||
"vim",
|
||||
"visual-basic",
|
||||
"wasm",
|
||||
"url",
|
||||
"wiki",
|
||||
"xeora",
|
||||
"xojo",
|
||||
"xquery",
|
||||
"yaml"
|
||||
]
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"minLines": {
|
||||
"type": "integer",
|
||||
"default": 5,
|
||||
"description": "minimum size of code block in lines to check for duplication"
|
||||
},
|
||||
"maxLines": {
|
||||
"type": "integer",
|
||||
"default": 1000,
|
||||
"description": "maximum size of source file in lines to check for duplication"
|
||||
},
|
||||
"maxSize": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^\\+?[0-9]+(\\.[0-9]+)? *[kKmMgGtTpP][bB]$"
|
||||
},
|
||||
{
|
||||
"type": "integer"
|
||||
}
|
||||
],
|
||||
"default": "100kb",
|
||||
"description": "maximum size of source file in bytes to check for duplication (e.g.,: 1kb, 1mb, 120kb)"
|
||||
},
|
||||
"minTokens": {
|
||||
"type": "integer",
|
||||
"default": 50,
|
||||
"description": "minimum size of code block in tokens to check for duplication"
|
||||
},
|
||||
"threshold": {
|
||||
"type": "number",
|
||||
"description": "maximum allowed duplicate lines expressed as a percentage; exit with error and exit code 1 when threshold exceeded"
|
||||
},
|
||||
"formatsExts": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"default": {},
|
||||
"description": "custom mapping from formats to file extensions (default: https://github.com/kucherenko/jscpd/blob/master/packages/tokenizer/src/formats.ts); see https://github.com/kucherenko/jscpd/blob/master/supported_formats.md"
|
||||
},
|
||||
"output": {
|
||||
"type": "string",
|
||||
"default": "./report",
|
||||
"description": "path to directory for non-console reports"
|
||||
},
|
||||
"path": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "paths that should be included in duplicate detection (default: [process.cwd()])"
|
||||
},
|
||||
"pattern": {
|
||||
"type": "string",
|
||||
"default": "**/*",
|
||||
"description": "glob pattern for files that should be included in duplicate detection (e.g., **/*.txt); only used to filter directories configured via path option"
|
||||
},
|
||||
"ignorePattern": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": [],
|
||||
"description": "ignore code blocks matching these regular expressions"
|
||||
},
|
||||
"mode": {
|
||||
"enum": ["mild", "strict", "weak"],
|
||||
"default": "mild",
|
||||
"description": "mode of detection quality; see https://github.com/kucherenko/jscpd/blob/master/packages/jscpd/README.md#mode"
|
||||
},
|
||||
"ignore": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": [],
|
||||
"description": "glob pattern for files that should be excluded from duplicate detection"
|
||||
},
|
||||
"format": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/format"
|
||||
},
|
||||
"description": "list of formats for which to detect duplication (default: all); see https://github.com/kucherenko/jscpd/blob/master/supported_formats.md"
|
||||
},
|
||||
"store": {
|
||||
"enum": ["leveldb", "redis"],
|
||||
"description": "store used to collect information about code (default: in-memory store); install @jscpd/leveldb-store and use leveldb for big repositories"
|
||||
},
|
||||
"reporters": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"enum": [
|
||||
"xml",
|
||||
"json",
|
||||
"csv",
|
||||
"markdown",
|
||||
"consoleFull",
|
||||
"html",
|
||||
"console",
|
||||
"silent",
|
||||
"threshold",
|
||||
"xcode"
|
||||
]
|
||||
},
|
||||
"default": ["console"],
|
||||
"description": "a list of reporters to use to output information about duplication; see https://github.com/kucherenko/jscpd/blob/master/packages/jscpd/README.md#reporters"
|
||||
},
|
||||
"blame": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "get information about authors and dates of duplicated blocks from Git"
|
||||
},
|
||||
"silent": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "do not write duplicate detection progress and result to console"
|
||||
},
|
||||
"verbose": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "show full information during duplicate detection"
|
||||
},
|
||||
"absolute": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "use absolute paths in reports"
|
||||
},
|
||||
"noSymlinks": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "do not follow symlinks"
|
||||
},
|
||||
"skipLocal": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "skip duplicates within folders; just detect cross-folder duplicates"
|
||||
},
|
||||
"ignoreCase": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "ignore case of symbols in code (experimental)"
|
||||
},
|
||||
"gitignore": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "ignore all files from .gitignore file"
|
||||
},
|
||||
"reportersOptions": {
|
||||
"type": "object",
|
||||
"default": {},
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"badge": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "output path for duplication level badge (default: path.join(output, 'jscpd-badge.svg'))"
|
||||
},
|
||||
"label": {
|
||||
"type": "string",
|
||||
"default": "Copy/Paste",
|
||||
"description": "badge subject text (URL-encoding needed for spaces or special characters)"
|
||||
},
|
||||
"labelColor": {
|
||||
"$ref": "#/definitions/color",
|
||||
"default": "555",
|
||||
"description": "badge label color (name or RGB code without #); see https://github.com/badgen/badgen/blob/master/src/color-presets.ts"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"description": "badge value text (URL-encoding needed for spaces or special characters, default: duplication %)"
|
||||
},
|
||||
"color": {
|
||||
"$ref": "#/definitions/color",
|
||||
"description": "badge color (name or RGB code without #, default: green if beneath threshold, red if above threshold, grey if threshold not set); see https://github.com/badgen/badgen/blob/master/src/color-presets.ts"
|
||||
},
|
||||
"style": {
|
||||
"enum": ["flat", "classic"],
|
||||
"default": "classic",
|
||||
"description": "badge look: flat or classic"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string",
|
||||
"description": "URL for icon to display in front of badge subject text (e.g., data:image/svg+xml;base64,...)"
|
||||
},
|
||||
"iconWidth": {
|
||||
"type": "number",
|
||||
"default": 13,
|
||||
"description": "SVG width of icon to display in front of badge subject text; set this if icon is not square"
|
||||
},
|
||||
"scale": {
|
||||
"type": "number",
|
||||
"default": 1,
|
||||
"description": "size of badge relative to default of 1"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"exitCode": {
|
||||
"type": "integer",
|
||||
"default": 0,
|
||||
"description": "exit code to use when at least one duplicate code block is detected but threshold is not exceeded"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,167 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://json.schemastore.org/ava.json",
|
||||
"additionalProperties": false,
|
||||
"definitions": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"array-of-strings": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"array-of-paths": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/path"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Configuration Schema for the JavaScript test runner AVA",
|
||||
"properties": {
|
||||
"files": {
|
||||
"$ref": "#/definitions/array-of-paths",
|
||||
"description": "An array of glob patterns to select test files. Files with an underscore prefix are ignored. By default only selects files with `cjs`, `mjs` & `js` extensions, even if the pattern matches other files. Specify `extensions` to allow other file extensions"
|
||||
},
|
||||
"ignoredByWatcher": {
|
||||
"$ref": "#/definitions/array-of-paths",
|
||||
"description": "An array of glob patterns to match files that, even if changed, are ignored by the watcher"
|
||||
},
|
||||
"match": {
|
||||
"$ref": "#/definitions/array-of-paths",
|
||||
"description": "Not typically useful in the `package.json` configuration, but equivalent to specifying `--match` on the CLI"
|
||||
},
|
||||
"cache": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Defaults to `true` to cache compiled files under `node_modules/.cache/ava.` If `false`, files are cached in a temporary directory instead"
|
||||
},
|
||||
"concurrency": {
|
||||
"type": "number",
|
||||
"description": "Max number of test files running at the same time (default: CPU cores)"
|
||||
},
|
||||
"workerThreads": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Use worker threads to run tests (enabled by default). If `false`, tests will run in child processes"
|
||||
},
|
||||
"failFast": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Stop running further tests once a test fails"
|
||||
},
|
||||
"failWithoutAssertions": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "If `false`, does not fail a test if it doesn't run assertions"
|
||||
},
|
||||
"environmentVariables": {
|
||||
"title": "environment variables",
|
||||
"type": "object",
|
||||
"description": "Specifies environment variables to be made available to the tests. The environment variables defined here override the ones from `process.env`",
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"serial": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "if `true`, prevents parallel execution of tests within a file"
|
||||
},
|
||||
"tap": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If `true`, enables the TAP reporter"
|
||||
},
|
||||
"verbose": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "If `true`, enables verbose output (though currently non-verbose output is not supported)"
|
||||
},
|
||||
"snapshotDir": {
|
||||
"$ref": "#/definitions/path",
|
||||
"description": "Specifies a fixed location for storing snapshot files. Use this if your snapshots are ending up in the wrong location"
|
||||
},
|
||||
"extensions": {
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/array-of-strings"
|
||||
},
|
||||
{
|
||||
"title": "extensions",
|
||||
"type": "object",
|
||||
"patternProperties": {
|
||||
"^(c|m)?js$": {
|
||||
"enum": [true]
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"enum": ["commonjs", "module"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": ["cjs", "mjs", "js"],
|
||||
"description": "Extensions of test files. Setting this overrides the default `[\"cjs\", \"mjs\", \"js\"]` value, so make sure to include those extensions in the list. Experimentally you can configure how files are loaded"
|
||||
},
|
||||
"require": {
|
||||
"$ref": "#/definitions/array-of-paths",
|
||||
"description": "Extra modules to require before tests are run. Modules are required in the worker processes"
|
||||
},
|
||||
"timeout": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^(\\d+)(s|m)$"
|
||||
}
|
||||
],
|
||||
"default": "10s",
|
||||
"description": "Timeouts in AVA behave differently than in other test frameworks. AVA resets a timer after each test, forcing tests to quit if no new test results were received within the specified timeout. This can be used to handle stalled tests. See our timeout documentation for more options"
|
||||
},
|
||||
"nodeArguments": {
|
||||
"$ref": "#/definitions/array-of-strings",
|
||||
"description": "Configure Node.js arguments used to launch worker processes"
|
||||
},
|
||||
"utilizeParallelBuilds": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "If `false`, disable parallel builds (default: `true`)"
|
||||
},
|
||||
"typescript": {
|
||||
"title": "configuration",
|
||||
"type": "object",
|
||||
"description": "Configures @ava/typescript for projects that precompile TypeScript. Alternatively, you can use `ts-node` to do live testing without transpiling, in which case you shouldn't use the `typescript` property",
|
||||
"properties": {
|
||||
"extensions": {
|
||||
"$ref": "#/definitions/array-of-paths",
|
||||
"default": ["ts"],
|
||||
"description": "You can configure AVA to recognize additional file extensions as TypeScript (e.g., `[\"ts\", \"tsx\"]` to add partial JSX support). Note that the preserve mode for JSX is not (yet) supported. See also AVA's `extensions` object"
|
||||
},
|
||||
"rewritePaths": {
|
||||
"title": "paths",
|
||||
"type": "object",
|
||||
"description": "AVA searches your entire project for `*.js`, `*.cjs`, `*.mjs` and `*.ts` files (or other extensions you've configured). It will ignore such files found in the `rewritePaths` targets (e.g. `build/`). If you use more specific paths, for instance `build/main/`, you may need to change AVA's `files` configuration to ignore other directories. Paths are relative to your project directory",
|
||||
"patternProperties": {
|
||||
"/$": {
|
||||
"type": "string",
|
||||
"pattern": "/$"
|
||||
}
|
||||
}
|
||||
},
|
||||
"compile": {
|
||||
"enum": [false, "tsc"],
|
||||
"default": false,
|
||||
"description": "If `false`, AVA will assume you have already compiled your project. If set to `'tsc'`, AVA will run the TypeScript compiler before running your tests. This can be inefficient when using AVA in watch mode"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": "AVA Config Schema",
|
||||
"type": "object"
|
||||
}
|
||||
@ -0,0 +1,396 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://json.schemastore.org/prettierrc.json",
|
||||
"definitions": {
|
||||
"optionsDefinition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"arrowParens": {
|
||||
"description": "Include parentheses around a sole arrow function parameter.",
|
||||
"default": "always",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["always"],
|
||||
"description": "Always include parens. Example: `(x) => x`"
|
||||
},
|
||||
{
|
||||
"enum": ["avoid"],
|
||||
"description": "Omit parens when possible. Example: `x => x`"
|
||||
}
|
||||
]
|
||||
},
|
||||
"bracketSameLine": {
|
||||
"description": "Put > of opening tags on the last line instead of on a new line.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"bracketSpacing": {
|
||||
"description": "Print spaces between brackets.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"cursorOffset": {
|
||||
"description": "Print (to stderr) where a cursor at the given position would move to after formatting.",
|
||||
"default": -1,
|
||||
"type": "integer"
|
||||
},
|
||||
"embeddedLanguageFormatting": {
|
||||
"description": "Control how Prettier formats quoted code embedded in the file.",
|
||||
"default": "auto",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["auto"],
|
||||
"description": "Format embedded code if Prettier can automatically identify it."
|
||||
},
|
||||
{
|
||||
"enum": ["off"],
|
||||
"description": "Never automatically format embedded code."
|
||||
}
|
||||
]
|
||||
},
|
||||
"endOfLine": {
|
||||
"description": "Which end of line characters to apply.",
|
||||
"default": "lf",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["lf"],
|
||||
"description": "Line Feed only (\\n), common on Linux and macOS as well as inside git repos"
|
||||
},
|
||||
{
|
||||
"enum": ["crlf"],
|
||||
"description": "Carriage Return + Line Feed characters (\\r\\n), common on Windows"
|
||||
},
|
||||
{
|
||||
"enum": ["cr"],
|
||||
"description": "Carriage Return character only (\\r), used very rarely"
|
||||
},
|
||||
{
|
||||
"enum": ["auto"],
|
||||
"description": "Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"experimentalTernaries": {
|
||||
"description": "Use curious ternaries, with the question mark after the condition.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"filepath": {
|
||||
"description": "Specify the input filepath. This will be used to do parser inference.",
|
||||
"type": "string"
|
||||
},
|
||||
"htmlWhitespaceSensitivity": {
|
||||
"description": "How to handle whitespaces in HTML.",
|
||||
"default": "css",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["css"],
|
||||
"description": "Respect the default value of CSS display property."
|
||||
},
|
||||
{
|
||||
"enum": ["strict"],
|
||||
"description": "Whitespaces are considered sensitive."
|
||||
},
|
||||
{
|
||||
"enum": ["ignore"],
|
||||
"description": "Whitespaces are considered insensitive."
|
||||
}
|
||||
]
|
||||
},
|
||||
"insertPragma": {
|
||||
"description": "Insert @format pragma into file's first docblock comment.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"jsxSingleQuote": {
|
||||
"description": "Use single quotes in JSX.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"parser": {
|
||||
"description": "Which parser to use.",
|
||||
"anyOf": [
|
||||
{
|
||||
"enum": ["flow"],
|
||||
"description": "Flow"
|
||||
},
|
||||
{
|
||||
"enum": ["babel"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["babel-flow"],
|
||||
"description": "Flow"
|
||||
},
|
||||
{
|
||||
"enum": ["babel-ts"],
|
||||
"description": "TypeScript"
|
||||
},
|
||||
{
|
||||
"enum": ["typescript"],
|
||||
"description": "TypeScript"
|
||||
},
|
||||
{
|
||||
"enum": ["acorn"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["espree"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["meriyah"],
|
||||
"description": "JavaScript"
|
||||
},
|
||||
{
|
||||
"enum": ["css"],
|
||||
"description": "CSS"
|
||||
},
|
||||
{
|
||||
"enum": ["less"],
|
||||
"description": "Less"
|
||||
},
|
||||
{
|
||||
"enum": ["scss"],
|
||||
"description": "SCSS"
|
||||
},
|
||||
{
|
||||
"enum": ["json"],
|
||||
"description": "JSON"
|
||||
},
|
||||
{
|
||||
"enum": ["json5"],
|
||||
"description": "JSON5"
|
||||
},
|
||||
{
|
||||
"enum": ["jsonc"],
|
||||
"description": "JSON with Comments"
|
||||
},
|
||||
{
|
||||
"enum": ["json-stringify"],
|
||||
"description": "JSON.stringify"
|
||||
},
|
||||
{
|
||||
"enum": ["graphql"],
|
||||
"description": "GraphQL"
|
||||
},
|
||||
{
|
||||
"enum": ["markdown"],
|
||||
"description": "Markdown"
|
||||
},
|
||||
{
|
||||
"enum": ["mdx"],
|
||||
"description": "MDX"
|
||||
},
|
||||
{
|
||||
"enum": ["vue"],
|
||||
"description": "Vue"
|
||||
},
|
||||
{
|
||||
"enum": ["yaml"],
|
||||
"description": "YAML"
|
||||
},
|
||||
{
|
||||
"enum": ["glimmer"],
|
||||
"description": "Ember / Handlebars"
|
||||
},
|
||||
{
|
||||
"enum": ["html"],
|
||||
"description": "HTML"
|
||||
},
|
||||
{
|
||||
"enum": ["angular"],
|
||||
"description": "Angular"
|
||||
},
|
||||
{
|
||||
"enum": ["lwc"],
|
||||
"description": "Lightning Web Components"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Custom parser"
|
||||
}
|
||||
]
|
||||
},
|
||||
"plugins": {
|
||||
"description": "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",
|
||||
"default": [],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"printWidth": {
|
||||
"description": "The line length where Prettier will try wrap.",
|
||||
"default": 80,
|
||||
"type": "integer"
|
||||
},
|
||||
"proseWrap": {
|
||||
"description": "How to wrap prose.",
|
||||
"default": "preserve",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["always"],
|
||||
"description": "Wrap prose if it exceeds the print width."
|
||||
},
|
||||
{
|
||||
"enum": ["never"],
|
||||
"description": "Do not wrap prose."
|
||||
},
|
||||
{
|
||||
"enum": ["preserve"],
|
||||
"description": "Wrap prose as-is."
|
||||
}
|
||||
]
|
||||
},
|
||||
"quoteProps": {
|
||||
"description": "Change when properties in objects are quoted.",
|
||||
"default": "as-needed",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["as-needed"],
|
||||
"description": "Only add quotes around object properties where required."
|
||||
},
|
||||
{
|
||||
"enum": ["consistent"],
|
||||
"description": "If at least one property in an object requires quotes, quote all properties."
|
||||
},
|
||||
{
|
||||
"enum": ["preserve"],
|
||||
"description": "Respect the input use of quotes in object properties."
|
||||
}
|
||||
]
|
||||
},
|
||||
"rangeEnd": {
|
||||
"description": "Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",
|
||||
"default": null,
|
||||
"type": "integer"
|
||||
},
|
||||
"rangeStart": {
|
||||
"description": "Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",
|
||||
"default": 0,
|
||||
"type": "integer"
|
||||
},
|
||||
"requirePragma": {
|
||||
"description": "Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"semi": {
|
||||
"description": "Print semicolons.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"singleAttributePerLine": {
|
||||
"description": "Enforce single attribute per line in HTML, Vue and JSX.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"singleQuote": {
|
||||
"description": "Use single quotes instead of double quotes.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"tabWidth": {
|
||||
"description": "Number of spaces per indentation level.",
|
||||
"default": 2,
|
||||
"type": "integer"
|
||||
},
|
||||
"trailingComma": {
|
||||
"description": "Print trailing commas wherever possible when multi-line.",
|
||||
"default": "all",
|
||||
"oneOf": [
|
||||
{
|
||||
"enum": ["all"],
|
||||
"description": "Trailing commas wherever possible (including function arguments)."
|
||||
},
|
||||
{
|
||||
"enum": ["es5"],
|
||||
"description": "Trailing commas where valid in ES5 (objects, arrays, etc.)"
|
||||
},
|
||||
{
|
||||
"enum": ["none"],
|
||||
"description": "No trailing commas."
|
||||
}
|
||||
]
|
||||
},
|
||||
"useTabs": {
|
||||
"description": "Indent with tabs instead of spaces.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"vueIndentScriptAndStyle": {
|
||||
"description": "Indent script and style tags in Vue files.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"overridesDefinition": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"overrides": {
|
||||
"type": "array",
|
||||
"description": "Provide a list of patterns to override prettier configuration.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["files"],
|
||||
"properties": {
|
||||
"files": {
|
||||
"description": "Include these files in this override.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"excludeFiles": {
|
||||
"description": "Exclude these files from this override.",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"$ref": "#/definitions/optionsDefinition",
|
||||
"type": "object",
|
||||
"description": "The options to apply for this override."
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/optionsDefinition"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/overridesDefinition"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"title": "Schema for .prettierrc"
|
||||
}
|
||||
67
local/code-server/User/keybindings.json
Normal file
67
local/code-server/User/keybindings.json
Normal file
@ -0,0 +1,67 @@
|
||||
// Place your key bindings in this file to override the defaults
|
||||
[
|
||||
{
|
||||
"key": "ctrl+c",
|
||||
"command": "workbench.action.terminal.copySelection",
|
||||
"when": "terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+c",
|
||||
"command": "-workbench.action.terminal.copySelection",
|
||||
"when": "terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+v",
|
||||
"command": "workbench.action.terminal.paste",
|
||||
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+v",
|
||||
"command": "-workbench.action.terminal.paste",
|
||||
"when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+p",
|
||||
"command": "workbench.action.pinEditor",
|
||||
"when": "!activeEditorIsPinned"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k shift+enter",
|
||||
"command": "-workbench.action.pinEditor",
|
||||
"when": "!activeEditorIsPinned"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+s",
|
||||
"command": "workbench.action.files.saveFiles"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+down",
|
||||
"command": "editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+down",
|
||||
"command": "-editor.action.copyLinesDownAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+up",
|
||||
"command": "editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+alt+up",
|
||||
"command": "-editor.action.copyLinesUpAction",
|
||||
"when": "editorTextFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+delete",
|
||||
"command": "editor.action.deleteLines",
|
||||
"when": "textInputFocus && !editorReadonly"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+k",
|
||||
"command": "-editor.action.deleteLines",
|
||||
"when": "textInputFocus && !editorReadonly"
|
||||
}
|
||||
]
|
||||
1
local/code-server/User/machineid
Normal file
1
local/code-server/User/machineid
Normal file
@ -0,0 +1 @@
|
||||
00e5142e-ac81-48a5-8324-e41209d985f6
|
||||
7
local/code-server/User/settings.json
Normal file
7
local/code-server/User/settings.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"workbench.colorTheme": "Obsidian Dark",
|
||||
"editor.formatOnSave": true,
|
||||
"prettier.tabWidth": 4,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"files.autoSave": "off"
|
||||
}
|
||||
1
local/code-server/User/systemExtensionsCache.json
Normal file
1
local/code-server/User/systemExtensionsCache.json
Normal file
@ -0,0 +1 @@
|
||||
[]
|
||||
@ -0,0 +1 @@
|
||||
{"pid":14933,"willReleaseAt":0}
|
||||
9
local/code-server/coder-logs/code-server-stderr.log
Normal file
9
local/code-server/coder-logs/code-server-stderr.log
Normal file
@ -0,0 +1,9 @@
|
||||
File not found: /root/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm
|
||||
File not found: /root/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js
|
||||
[07:09:27] Could not load vsce-sign module Cannot find package '@vscode/vsce-sign' imported from /root/code-server/lib/vscode/out/server-main.js
|
||||
[07:14:22] Could not load vsce-sign module Cannot find package '@vscode/vsce-sign' imported from /root/code-server/lib/vscode/out/server-main.js
|
||||
[07:14:36] Could not load vsce-sign module Cannot find package '@vscode/vsce-sign' imported from /root/code-server/lib/vscode/out/server-main.js
|
||||
[07:15:10] Could not load vsce-sign module Cannot find package '@vscode/vsce-sign' imported from /root/code-server/lib/vscode/out/server-main.js
|
||||
[07:16:23] Could not load vsce-sign module Cannot find package '@vscode/vsce-sign' imported from /root/code-server/lib/vscode/out/server-main.js
|
||||
File not found: /root/code-server/lib/vscode/node_modules/vsda/rust/web/vsda_bg.wasm
|
||||
File not found: /root/code-server/lib/vscode/node_modules/vsda/rust/web/vsda.js
|
||||
132
local/code-server/coder-logs/code-server-stdout.log
Normal file
132
local/code-server/coder-logs/code-server-stdout.log
Normal file
@ -0,0 +1,132 @@
|
||||
[2025-02-08T07:02:34.881Z] info code-server 4.95.3 b0c935a6e0742adde9f7a5f6e5816553ee0e7ffb
|
||||
[2025-02-08T07:02:34.882Z] info Using user-data-dir /root/.local/share/code-server
|
||||
[2025-02-08T07:02:34.893Z] info Using config file /root/.config/code-server/config.yaml
|
||||
[2025-02-08T07:02:34.893Z] info HTTP server listening on http://0.0.0.0:8080/
|
||||
[2025-02-08T07:02:34.893Z] info - Authentication is enabled
|
||||
[2025-02-08T07:02:34.893Z] info - Using password from /root/.config/code-server/config.yaml
|
||||
[2025-02-08T07:02:34.894Z] info - Not serving HTTPS
|
||||
[2025-02-08T07:02:34.894Z] info Session server listening on /root/.local/share/code-server/code-server-ipc.sock
|
||||
[07:02:45]
|
||||
|
||||
|
||||
|
||||
|
||||
[07:02:45] Extension host agent started.
|
||||
[07:02:45] Started initializing default profile extensions in extensions installation folder. file:///root/.local/share/code-server/extensions
|
||||
[07:02:45] Completed initializing default profile extensions in extensions installation folder. file:///root/.local/share/code-server/extensions
|
||||
[07:03:37] [172.17.0.1][18fbb52b][ManagementConnection] New connection established.
|
||||
[07:03:37] [172.17.0.1][3b58f5c2][ExtensionHostConnection] New connection established.
|
||||
[07:03:37] [172.17.0.1][3b58f5c2][ExtensionHostConnection] <895> Launched Extension Host Process.
|
||||
[07:09:23] Getting Manifest... hamza-aziane.obsidian-dark
|
||||
[07:09:25] Installing extension: hamza-aziane.obsidian-dark {
|
||||
isMachineScoped: false,
|
||||
installOnlyNewlyAddedFromExtensionPack: true,
|
||||
isApplicationScoped: false,
|
||||
profileLocation: gr {
|
||||
scheme: 'file',
|
||||
authority: '',
|
||||
path: '/root/.local/share/code-server/extensions/extensions.json',
|
||||
query: '',
|
||||
fragment: '',
|
||||
_formatted: 'file:///root/.local/share/code-server/extensions/extensions.json',
|
||||
_fsPath: '/root/.local/share/code-server/extensions/extensions.json'
|
||||
},
|
||||
productVersion: { version: '1.95.3', date: '2024-11-15T19:35:09.428Z' }
|
||||
}
|
||||
[07:09:27] Extension signature verification is not done: hamza-aziane.obsidian-dark
|
||||
[07:09:27] Extracted extension to file:///root/.local/share/code-server/extensions/hamza-aziane.obsidian-dark-1.0.0-universal: hamza-aziane.obsidian-dark
|
||||
[07:09:27] Renamed to /root/.local/share/code-server/extensions/hamza-aziane.obsidian-dark-1.0.0-universal
|
||||
[07:09:27] Extension installed successfully: hamza-aziane.obsidian-dark file:///root/.local/share/code-server/extensions/extensions.json
|
||||
[07:14:17] Getting Manifest... esbenp.prettier-vscode
|
||||
[07:14:19] Installing extension: esbenp.prettier-vscode {
|
||||
isMachineScoped: false,
|
||||
installPreReleaseVersion: false,
|
||||
pinned: false,
|
||||
installOnlyNewlyAddedFromExtensionPack: true,
|
||||
isApplicationScoped: false,
|
||||
profileLocation: gr {
|
||||
scheme: 'file',
|
||||
authority: '',
|
||||
path: '/root/.local/share/code-server/extensions/extensions.json',
|
||||
query: '',
|
||||
fragment: '',
|
||||
_formatted: 'file:///root/.local/share/code-server/extensions/extensions.json',
|
||||
_fsPath: '/root/.local/share/code-server/extensions/extensions.json'
|
||||
},
|
||||
productVersion: { version: '1.95.3', date: '2024-11-15T19:35:09.428Z' }
|
||||
}
|
||||
[07:14:22] Extension signature verification is not done: esbenp.prettier-vscode
|
||||
[07:14:22] Extracted extension to file:///root/.local/share/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal: esbenp.prettier-vscode
|
||||
[07:14:22] Renamed to /root/.local/share/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal
|
||||
[07:14:22] Extension installed successfully: esbenp.prettier-vscode file:///root/.local/share/code-server/extensions/extensions.json
|
||||
[07:14:32] Getting Manifest... mads-hartmann.bash-ide-vscode
|
||||
[07:14:33] Installing extension: mads-hartmann.bash-ide-vscode {
|
||||
isMachineScoped: false,
|
||||
installPreReleaseVersion: false,
|
||||
pinned: false,
|
||||
installOnlyNewlyAddedFromExtensionPack: true,
|
||||
isApplicationScoped: false,
|
||||
profileLocation: gr {
|
||||
scheme: 'file',
|
||||
authority: '',
|
||||
path: '/root/.local/share/code-server/extensions/extensions.json',
|
||||
query: '',
|
||||
fragment: '',
|
||||
_formatted: 'file:///root/.local/share/code-server/extensions/extensions.json',
|
||||
_fsPath: '/root/.local/share/code-server/extensions/extensions.json'
|
||||
},
|
||||
productVersion: { version: '1.95.3', date: '2024-11-15T19:35:09.428Z' }
|
||||
}
|
||||
[07:14:36] Extension signature verification is not done: mads-hartmann.bash-ide-vscode
|
||||
[07:14:36] Extracted extension to file:///root/.local/share/code-server/extensions/mads-hartmann.bash-ide-vscode-1.38.0-universal: mads-hartmann.bash-ide-vscode
|
||||
[07:14:36] Renamed to /root/.local/share/code-server/extensions/mads-hartmann.bash-ide-vscode-1.38.0-universal
|
||||
[07:14:36] Extension installed successfully: mads-hartmann.bash-ide-vscode file:///root/.local/share/code-server/extensions/extensions.json
|
||||
[07:15:06] Getting Manifest... oven.bun-vscode
|
||||
[07:15:08] Installing extension: oven.bun-vscode {
|
||||
isMachineScoped: false,
|
||||
installPreReleaseVersion: false,
|
||||
pinned: false,
|
||||
installOnlyNewlyAddedFromExtensionPack: true,
|
||||
isApplicationScoped: false,
|
||||
profileLocation: gr {
|
||||
scheme: 'file',
|
||||
authority: '',
|
||||
path: '/root/.local/share/code-server/extensions/extensions.json',
|
||||
query: '',
|
||||
fragment: '',
|
||||
_formatted: 'file:///root/.local/share/code-server/extensions/extensions.json',
|
||||
_fsPath: '/root/.local/share/code-server/extensions/extensions.json'
|
||||
},
|
||||
productVersion: { version: '1.95.3', date: '2024-11-15T19:35:09.428Z' }
|
||||
}
|
||||
[07:15:10] Extension signature verification is not done: oven.bun-vscode
|
||||
[07:15:10] Extracted extension to file:///root/.local/share/code-server/extensions/oven.bun-vscode-0.0.8-universal: oven.bun-vscode
|
||||
[07:15:10] Renamed to /root/.local/share/code-server/extensions/oven.bun-vscode-0.0.8-universal
|
||||
[07:15:10] Extension installed successfully: oven.bun-vscode file:///root/.local/share/code-server/extensions/extensions.json
|
||||
[07:16:19] Getting Manifest... mikestead.dotenv
|
||||
[07:16:21] Installing extension: mikestead.dotenv {
|
||||
isMachineScoped: false,
|
||||
installPreReleaseVersion: false,
|
||||
pinned: false,
|
||||
installOnlyNewlyAddedFromExtensionPack: true,
|
||||
isApplicationScoped: false,
|
||||
profileLocation: gr {
|
||||
scheme: 'file',
|
||||
authority: '',
|
||||
path: '/root/.local/share/code-server/extensions/extensions.json',
|
||||
query: '',
|
||||
fragment: '',
|
||||
_formatted: 'file:///root/.local/share/code-server/extensions/extensions.json',
|
||||
_fsPath: '/root/.local/share/code-server/extensions/extensions.json'
|
||||
},
|
||||
productVersion: { version: '1.95.3', date: '2024-11-15T19:35:09.428Z' }
|
||||
}
|
||||
[07:16:23] Extension signature verification is not done: mikestead.dotenv
|
||||
[07:16:23] Extracted extension to file:///root/.local/share/code-server/extensions/mikestead.dotenv-1.0.1-universal: mikestead.dotenv
|
||||
[07:16:23] Renamed to /root/.local/share/code-server/extensions/mikestead.dotenv-1.0.1-universal
|
||||
[07:16:23] Extension installed successfully: mikestead.dotenv file:///root/.local/share/code-server/extensions/extensions.json
|
||||
[07:18:22] [172.17.0.1][18fbb52b][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
|
||||
[07:18:23] [172.17.0.1][5dada655][ManagementConnection] New connection established.
|
||||
[07:18:24] [172.17.0.1][65da025a][ExtensionHostConnection] New connection established.
|
||||
[07:18:24] [172.17.0.1][65da025a][ExtensionHostConnection] <14933> Launched Extension Host Process.
|
||||
[07:23:24] [172.17.0.1][3b58f5c2][ExtensionHostConnection] <895> Extension Host Process exited with code: 0, signal: null.
|
||||
9
local/code-server/coder.json
Normal file
9
local/code-server/coder.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"query": {
|
||||
"folder": "/root/workspace"
|
||||
},
|
||||
"update": {
|
||||
"checked": 1738998217373,
|
||||
"version": "4.96.4"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/typescript-node/.devcontainer/base.Dockerfile
|
||||
|
||||
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
|
||||
ARG VARIANT="18-bullseye"
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
|
||||
|
||||
# [Optional] Uncomment this section to install additional OS packages.
|
||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -y install --no-install-recommends php
|
||||
|
||||
# [Optional] Uncomment if you want to install an additional version of node using nvm
|
||||
# ARG EXTRA_NODE_VERSION=10
|
||||
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
|
||||
|
||||
# [Optional] Uncomment if you want to install more global node packages
|
||||
# RUN su node -c "npm install -g <your-package-list -here>"
|
||||
@ -0,0 +1,33 @@
|
||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
||||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.209.6/containers/typescript-node
|
||||
{
|
||||
"name": "Node.js & TypeScript",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
|
||||
// Append -bullseye or -buster to pin to an OS version.
|
||||
// Use -bullseye variants on local on arm64/Apple Silicon.
|
||||
"args": {
|
||||
"VARIANT": "18-bullseye"
|
||||
}
|
||||
},
|
||||
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {},
|
||||
|
||||
// Add the IDs of extensions you want installed when the container is created.
|
||||
"extensions": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode",
|
||||
"streetsidesoftware.code-spell-checker"
|
||||
],
|
||||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
"postCreateCommand": "yarn install",
|
||||
|
||||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "node"
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
/src/worker/*.js
|
||||
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
|
||||
<Metadata>
|
||||
<Identity Language="en-US" Id="prettier-vscode" Version="11.0.0" Publisher="esbenp" />
|
||||
<DisplayName>Prettier - Code formatter</DisplayName>
|
||||
<Description xml:space="preserve">Code formatter using prettier</Description>
|
||||
<Tags>multi-root ready,prettier,formatter,javascript,handlebars,js,jsx,flow,typescript,ts,json,css,less,scss,styled-components,styled-jsx,markdown,md,commonmark,mdx,php,pug,ruby,swift,html,vue,ember,glimmer,angular,graphql,yaml,yml,ignore,__ext_graphql,__ext_vue,__ext_hbs,__ext_handlebars,__web_extension,__sponsor_extension</Tags>
|
||||
<Categories>Formatters</Categories>
|
||||
<GalleryFlags>Public</GalleryFlags>
|
||||
|
||||
<Properties>
|
||||
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.80.0" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="workspace,web" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Code.SponsorLink" Value="https://opencollective.com/prettier" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/prettier/prettier-vscode.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/prettier/prettier-vscode.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/prettier/prettier-vscode.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/prettier/prettier-vscode/issues" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Branding.Color" Value="#ffe04b" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Branding.Theme" Value="light" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Content.Pricing" Value="Free"/>
|
||||
|
||||
|
||||
|
||||
</Properties>
|
||||
<License>extension/LICENSE.txt</License>
|
||||
<Icon>extension/icon.png</Icon>
|
||||
</Metadata>
|
||||
<Installation>
|
||||
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
|
||||
</Installation>
|
||||
<Dependencies/>
|
||||
<Assets>
|
||||
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/icon.png" Addressable="true" />
|
||||
</Assets>
|
||||
</PackageManifest>
|
||||
@ -0,0 +1,655 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to the "prettier-vscode" extension will be documented in this file.
|
||||
|
||||
<!-- Check [Keep a Changelog](https://keepachangelog.com/) for recommendations on how to structure this file. -->
|
||||
|
||||
## [11.0.0]
|
||||
|
||||
- [BREAKING CHANGE] Prevent `.editorconfig` from satisfying the `requireConfig` setting (#2708) - Thanks to [@redoPop](https://github.com/redoPop)
|
||||
- Fix issue where formatting multiple files in a workspace with multiple instances of Prettier could result in files being overwritten with the contents of other files (#3423, [#3040](https://github.com/prettier/prettier-vscode/issues/3040)) - Thanks to [@bob-difronzo](https://github.com/bob-difronzo)
|
||||
- Added Language Status Item for Prettier
|
||||
- Add support for `experimentalTernaries` option
|
||||
|
||||
## [10.5.0]
|
||||
|
||||
- Extend list of Prettier config files by ECMAScript module extentions
|
||||
|
||||
## [10.4.0]
|
||||
|
||||
- Fixed config resolution that caused plugins to be ignored when using Prettier 3.1.1 or later. (#3252)
|
||||
|
||||
## [10.3.0]
|
||||
|
||||
- Module path can be a dir when loading prettier version
|
||||
- Add language-override support for VSCode configuration.
|
||||
|
||||
## [10.2.0]
|
||||
|
||||
- Fixed the issue where VSCode was misrecognizing the path in output panel due to added quotes.
|
||||
- Fix module resolution with `prettierPath` setting
|
||||
|
||||
## [10.1.0]
|
||||
|
||||
Reverts back to prettier 2.x by default due to issues with extension
|
||||
|
||||
## [10.0.0]
|
||||
|
||||
Use Prettier 3.0 by default.
|
||||
Change default configuration for trailingComma to all to match Prettier 3.0.
|
||||
|
||||
## [9.19.0]
|
||||
|
||||
- Reverts change to `prettierPath` resolution. (#3045)
|
||||
|
||||
## [9.18.0]
|
||||
|
||||
- Support new config file types when using Prettier 3.0
|
||||
- Support for Prettier 3.0 plugin resolution
|
||||
|
||||
## [9.17.0]
|
||||
|
||||
- Fix plugins `parser` not inferred - Thanks to [@u3u](https://github.com/u3u)
|
||||
- Fix module resolution with `prettierPath` setting
|
||||
|
||||
## [9.16.0]
|
||||
|
||||
- Run only Prettier v3 in worker_threads. Run v2 in main thread.
|
||||
|
||||
## [9.15.0]
|
||||
|
||||
- Run Prettier in worker_threads for v3.
|
||||
|
||||
## [9.14.0]
|
||||
|
||||
- Fixes a bug in Remote SSH that had been occurring since VSCode 1.79.
|
||||
|
||||
## [9.13.0]
|
||||
|
||||
- Prettier 2.8.8
|
||||
|
||||
## [9.12.1]
|
||||
|
||||
- Fix typo in translations for zh-cn - Thanks to [@fisker](https://github.com/fisker)
|
||||
|
||||
## [9.12.0]
|
||||
|
||||
- Support Prettier v3. Not shipped by default, requires project install - Thanks to [@sosukesuzuki](https://github.com/sosukesuzuki)
|
||||
- Improved translations for zh-tw and zh-cn - Thanks to [@fisker](https://github.com/fisker) and [@Mrbunker](https://github.com/Mrbunker)
|
||||
|
||||
## [9.11.0]
|
||||
|
||||
- Prettier 2.8.7
|
||||
|
||||
## [9.10.4]
|
||||
|
||||
- Update description of vueIndentScriptAndStyle option
|
||||
|
||||
## [9.10.3]
|
||||
|
||||
- Prettier 2.8.0
|
||||
- Updated dependancies
|
||||
|
||||
## [9.9.0]
|
||||
|
||||
- Use theme colors on status bar background for errors and warnings ([@zardoy](https://github.com/zardoy))
|
||||
- Reduce extension size ([@kidonng](https://github.com/kidonng))
|
||||
|
||||
## [9.8.0]
|
||||
|
||||
- Added VS Code sponsorship link
|
||||
- Use config from `.prettierrc` when formatting VS Code user `settings.json`. Fixes [[#2226](https://github.com/prettier/prettier-vscode/issues/2226)].
|
||||
- Improved support for pnpm ([@fz6m](https://github.com/fz6m))
|
||||
- Improved support for global modules ([@ehoogeveen-medweb](https://github.com/ehoogeveen-medweb))
|
||||
- Disallow range formatting for Vue and Handlebars as Prettier doesn't support that
|
||||
|
||||
## [9.7.0]
|
||||
|
||||
- Added [`singleAttributePerLine`](https://prettier.io/docs/en/options.html#single-attribute-per-line) setting (Prettier 2.6.0)
|
||||
- Added [`bracketSameLine`](https://prettier.io/docs/en/options.html#bracket-line) setting (Prettier 2.4.0)
|
||||
- Added deprecation notice for [`jsxBracketSameLine`](https://prettier.io/docs/en/options.html#deprecated-jsx-brackets) setting (Prettier 2.4.0)
|
||||
- Allow formatting ranges in `vue`.
|
||||
-
|
||||
|
||||
## [9.6.0]
|
||||
|
||||
- Prettier 2.7.1
|
||||
- Register `mongodb` in `vscodeLanguageIds` to support formatting mongodb queries in VS Code
|
||||
- Search for ignore file in all containing workspace folders, not just innermost
|
||||
- Fix wrong time unit in log.
|
||||
- Allow formatting ranges in `jsonc` (JSON with Comments).
|
||||
- Fix support for using a globally installed version of prettier.
|
||||
|
||||
## [9.5.0]
|
||||
|
||||
- Fix `"editor.formatOnSaveMode": "modifications"`/`"modificationsIfAvailable"`
|
||||
|
||||
## [9.4.0]
|
||||
|
||||
- Prettier 2.6.1
|
||||
|
||||
## [9.3.0]
|
||||
|
||||
- Remove `.gts` and `.gjs` from Handlebars extensions
|
||||
|
||||
## [9.2.0]
|
||||
|
||||
- Clear cache on reload (#2371)
|
||||
|
||||
## [9.1.1]
|
||||
|
||||
- Changed build target to ES2020 to reduce module size
|
||||
|
||||
## [9.1.0]
|
||||
|
||||
- Upgraded to Prettier 2.5.1
|
||||
- Handlebars support ([@lifeart](https://github.com/lifeart))
|
||||
|
||||
## [9.0.1]
|
||||
|
||||
- Changed schemastore.com URLs to use HTTPS
|
||||
|
||||
## [9.0.0]
|
||||
|
||||
- Support for browser VS Code
|
||||
- Support for virtual file systems
|
||||
|
||||
## [8.2.0]
|
||||
|
||||
- Updated Prettier to 2.4.1
|
||||
- VS Code version to 1.60.0
|
||||
|
||||
## [8.1.0]
|
||||
|
||||
- Setting `requireConfig` no longer accepts `.editorconfig` as a valid config.
|
||||
|
||||
## [8.0.1]
|
||||
|
||||
- Forced version of vsce on build
|
||||
|
||||
## [8.0.0]
|
||||
|
||||
- Updated Prettier to 2.3.1
|
||||
- Minimum supported VS Code version is now 1.57.0
|
||||
- Added `id` and `name` properties to status bar (#2003)
|
||||
- Uses VS Code [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust)
|
||||
|
||||
## [7.1.0]
|
||||
|
||||
- Revert bad changes from 7.0.0, will republish as 8.0.0
|
||||
|
||||
## [7.0.0]
|
||||
|
||||
- Bad release, do not use.
|
||||
|
||||
## [6.4.0]
|
||||
|
||||
- Updated Prettier to 2.3.0
|
||||
- Forced mode now ignores `requirePragma` config
|
||||
- Fix mismatch of option name `ignore` in description of HTML Whitespace Sensitivity ([#1941](https://github.com/prettier/prettier-vscode/pull/1941))
|
||||
|
||||
## [6.3.2]
|
||||
|
||||
- Removed loading status bar state
|
||||
|
||||
## [6.3.1]
|
||||
|
||||
- Updates to formatter registration
|
||||
|
||||
## [6.3.0]
|
||||
|
||||
- Removed notifications, all messages logged with status icon update.
|
||||
|
||||
## [6.2.1]
|
||||
|
||||
- Fixed regressions where VS Code settings `settings.json` could not be formatted
|
||||
|
||||
## [6.2.0]
|
||||
|
||||
- Stable 6.0 release, see Beta releases for changes
|
||||
|
||||
## [6.1.0] Beta
|
||||
|
||||
- Added command to force formatting regardless of ignores `Format Document (Forced)`
|
||||
|
||||
## [6.0.0] Beta
|
||||
|
||||
- Automatically detect package manager
|
||||
- Delayed prettier registration to improve performance on large projects
|
||||
- Status bar state and icons updates
|
||||
- Prompt to allow Prettier module to load
|
||||
- Added debug mode for logging
|
||||
- Removed config for `disabledLanguages`
|
||||
|
||||
## [5.9.2]
|
||||
|
||||
- Reverted automatical detection of package manager
|
||||
|
||||
## [5.9.1]
|
||||
|
||||
- Removed Status bar color
|
||||
|
||||
## [5.9.0]
|
||||
|
||||
- Automatically detect package manager
|
||||
- Move check mark in status bar to left side to match ESLint
|
||||
- Status bar background to `statusBarItem.errorBackground` color on error
|
||||
|
||||
## [5.8.0]
|
||||
|
||||
- Updated prettier to 2.2.0
|
||||
|
||||
## [5.7.2]
|
||||
|
||||
- Updated prettier to 2.1.2
|
||||
|
||||
## [5.7.1]
|
||||
|
||||
- Log the location of the prettier config file
|
||||
|
||||
## [5.7.0]
|
||||
|
||||
- Updated prettier to 2.1.1
|
||||
|
||||
## [5.6.0]
|
||||
|
||||
- Activation on `onStartupFinished` to reduce impact on VS Code start.
|
||||
|
||||
## [5.5.0]
|
||||
|
||||
- Added [enable](https://github.com/prettier/prettier-vscode#enable) setting.
|
||||
|
||||
## [5.4.0]
|
||||
|
||||
- Added [Embedded Language Formatting](https://prettier.io/docs/en/options.html#embedded-language-formatting) option.
|
||||
- Throttling of reloads on watched files to improve performance on large projects.
|
||||
|
||||
## [5.3.0]
|
||||
|
||||
- Refactoring of how the extension registers formatters to support file extension that don't have a language ID.
|
||||
- Added support for [custom document selectors](https://github.com/prettier/prettier-vscode#prettierdocumentselectors) to provide formatting on custom languages/extensions.
|
||||
|
||||
## [5.2.1]
|
||||
|
||||
- Support for additional configuration file extensions (`toml`, `cls`).
|
||||
|
||||
## [5.2.0]
|
||||
|
||||
- Updated prettier to 2.1.0
|
||||
|
||||
## [5.1.3]
|
||||
|
||||
- Improved error output of certain plugin exceptions.
|
||||
|
||||
## [5.1.2]
|
||||
|
||||
- Added error logging for unusual prettier exceptions.
|
||||
|
||||
## [5.1.0]
|
||||
|
||||
- Resolves issue where untitled JSON files were resolved to `json-stringify` parser. (#1435)
|
||||
|
||||
## [5.0.1]
|
||||
|
||||
- Updated modules
|
||||
- New build process
|
||||
|
||||
## [5.0.0]
|
||||
|
||||
- Removed support for legacy linter integration. [See documentation](https://github.com/prettier/prettier-vscode#linter-integration) on how to configure linters.
|
||||
|
||||
## [4.7.0]
|
||||
|
||||
- Adds support for formatting VS Code settings files (settings.json). (#1343)
|
||||
|
||||
## [4.6.0]
|
||||
|
||||
- Update loading implicit Prettier dep from `node_modules` to only occur if explicit `package.json` dep is not found in a parent directory
|
||||
- Show a custom error message / notification in the case where `prettier.prettierPath` does not reference an instance of Prettier
|
||||
|
||||
## [4.5.0]
|
||||
|
||||
- Updated prettier to 2.0.5
|
||||
|
||||
## [4.4.0]
|
||||
|
||||
- Reverted change that attempts to resolve config based on prettier version.
|
||||
|
||||
## [4.3.0]
|
||||
|
||||
- Removed AppInsights telemetry as its no longer needed
|
||||
- Updated instructions on how to use linters
|
||||
- Added log warning about legacy linter integrations
|
||||
|
||||
## [4.2.0]
|
||||
|
||||
- Use default configuration based on the version of prettier
|
||||
|
||||
## [4.1.1]
|
||||
|
||||
- Updated prettier to 2.0.4
|
||||
|
||||
## [4.1.0]
|
||||
|
||||
- Support loading Prettier from `node_modules` even if it doesn't appear as a direct dependency in a `package.json`
|
||||
- Honor project-scoped config when loading module (#1222, [#950](https://github.com/prettier/prettier-vscode/issues/950))
|
||||
- Added configuration option `withNodeModules` to enable processing of files in the `node_modules` folder
|
||||
- Updated prettier to 2.0.3 (#1289)
|
||||
|
||||
## [4.0.0]
|
||||
|
||||
- Updated prettier to 2.0 - [See changes here](https://prettier.io/blog/2020/03/21/2.0.0.html)
|
||||
- Change default configuration for `trailingComma` to `es5` to match Prettier 2.0
|
||||
- Change default configuration for `arrowParens` to `always` to match Prettier 2.0
|
||||
- Change default configuration for `endOfLine` to `lf` to match Prettier 2.0
|
||||
- Updated module dependencies
|
||||
- Removed deprecated configuration options
|
||||
|
||||
## [3.20.0]
|
||||
|
||||
- No longer loads prettier when `requireConfig` is `true` and no config is found. (#1161)
|
||||
- Minor logging improvements
|
||||
|
||||
## [3.19.0]
|
||||
|
||||
- Notifications only show when running formatter
|
||||
- Removed logs for status bar events
|
||||
|
||||
## [3.18.0]
|
||||
|
||||
- Fixed a bug with the prettier output open command
|
||||
- Upgraded module dependencies
|
||||
|
||||
## [3.17.0]
|
||||
|
||||
- Due to performance issues, global module resolution is now off by default. Enable by setting `prettier.resolveGlobalModules` to `true`
|
||||
|
||||
## [3.16.0]
|
||||
|
||||
- Show error when prettier configuration file is invalid
|
||||
- Removed unused debug tracer on module resolution
|
||||
|
||||
## [3.15.0]
|
||||
|
||||
- Always format untitled files, even when `requireConfig` setting is enabled
|
||||
|
||||
## [3.14.0]
|
||||
|
||||
- Fixed an issue with global module resolution
|
||||
|
||||
## [3.13.0]
|
||||
|
||||
- Added support for global module resolution
|
||||
- Added setting `packageManager` to determine which package manager to use for global module resolution
|
||||
- Fixed issue where unsaved HTML files were resolved as Angular
|
||||
|
||||
## [3.12.0]
|
||||
|
||||
- Reverted range filter on formatter registration due to problems, needs more investigation
|
||||
- Added additional details to description of `requireConfiguration` option
|
||||
|
||||
## [3.11.0]
|
||||
|
||||
- Additional logging for errors loading config
|
||||
- Updated status icon to not error states
|
||||
|
||||
## [3.10.0]
|
||||
|
||||
- Added setting `prettier.useEditorConfig` (defaults to `true`) to allow disabling resolving `.editorconfig` for Prettier config
|
||||
- Added additional logging
|
||||
- Added `pattern` filter to formatter registrations to avoid registering incorrectly on multi-workspace projects
|
||||
- Removed some unused localization code
|
||||
|
||||
## [3.9.0]
|
||||
|
||||
- Improved error logging.
|
||||
- Bumped dependencies and type definitions to latest
|
||||
- More information in readme about configuration
|
||||
|
||||
## [3.8.0]
|
||||
|
||||
- Fixed issue where VS Code and local config where merged. If local config is present, only it will be used. [#1074](https://github.com/prettier/prettier-vscode/issues/1074)
|
||||
|
||||
## [3.7.0]
|
||||
|
||||
- Removed deprecation message from `requireConfig` (Was added by mistake). [#1056](https://github.com/prettier/prettier-vscode/issues/1056)
|
||||
- Sets `resolveConfig: true` to allow parser overrides on [Prettier 1.19+](https://prettier.io/blog/2019/11/09/1.19.0.html#api). [#1067](https://github.com/prettier/prettier-vscode/issues/1067)
|
||||
- Fix for finding local `prettier` module in packages located in `node_modules` dirs
|
||||
- Added doc on what languages support range formatting
|
||||
|
||||
## [3.6.0]
|
||||
|
||||
- Added back status bar button
|
||||
|
||||
## [3.5.1]
|
||||
|
||||
- Add command `Prettier: Create Configuration File` to create a basic `.prettierrc` file
|
||||
|
||||
## [3.5.0]
|
||||
|
||||
- Fixed issue resolving user home files on mac. i.e. (`~/.prettierrc`) (#1045)
|
||||
- Improved tests for config resolution
|
||||
|
||||
## [3.4.0]
|
||||
|
||||
- Adds back VS Code config
|
||||
|
||||
## [3.3.0]
|
||||
|
||||
- Bug fixes
|
||||
- Change telemetry metric names
|
||||
|
||||
## [3.2.0]
|
||||
|
||||
- Removed support for Prettier versions older than 1.13.0.
|
||||
- No longer bundling linters with extension - to use install them in your package.json.
|
||||
- Use Prettier as default resolver of formatter instead of VS Code.
|
||||
- Use Prettier to determine if a file is ignored or not instead of custom logic.
|
||||
- Support for formatting of untitled files when the language is set by VS Code.
|
||||
- Set file path config on format to assist with parser resolution.
|
||||
- Less fallbacks - if you have local prettier installed it will always use that. Before if your local prettier didn't support things we would fall back to bundled prettier - this caused many errors and inconsistent behavior.
|
||||
- Removed toolbar button.
|
||||
- Deprecated linter configuration settings.
|
||||
- Enhanced logging.
|
||||
- Extension built with webpack.
|
||||
- Memoize package path lookup to improve perf of repeated calls to same file.
|
||||
- Shows error message when outdated versions of prettier are used.
|
||||
- Refreshes modules without restart for cases where prettier version or plugins are installed locally.
|
||||
- Registers `.graphql` files as `graphql` language in order to provide formatting. (#989)
|
||||
- Ignore files are only read from the workspace root folder to behave the [same as prettier](https://github.com/prettier/prettier/issues/4081).
|
||||
- Added configuration option `prettier.prettierPath` to override module resolution.
|
||||
- Added configuration option `prettier.configPath` to override configuration file resolution.
|
||||
|
||||
## [2.3.0]
|
||||
|
||||
- Updated VS Code Version to 1.34.0
|
||||
- Changed App Insights api key
|
||||
|
||||
## [2.2.0]
|
||||
|
||||
- Added App Insights telemetry to track feature usage.
|
||||
|
||||
## [2.1.0]
|
||||
|
||||
- Deprecated support for ESLint, TSLint, and Stylelint. [See documentation](https://github.com/prettier/prettier-vscode#linter-integration)
|
||||
|
||||
## [1.12.0]
|
||||
|
||||
- Fixed issue where error output was used before initialized (#918)
|
||||
|
||||
## [1.11.0]
|
||||
|
||||
- Localization support for `zh-cn` and `zh-tw`
|
||||
- Fixed issue where text-fixtures were bundled in the extension.
|
||||
|
||||
## [1.10.0]
|
||||
|
||||
- Prettier [1.18](https://prettier.io/blog/2019/06/06/1.18.0.html)
|
||||
- Docs now explain how to lint TypeScript code with ESLint.
|
||||
- Improve supported language resolution with local Prettier instances
|
||||
- Prettier Plugin Support
|
||||
- prettier-eslint 9.0.0
|
||||
|
||||
## [1.9.0]
|
||||
|
||||
- Prettier [1.17](https://prettier.io/blog/2019/04/12/1.17.0.html)
|
||||
- New setting `quoteProps`. (prettier 1.17)
|
||||
|
||||
## [1.8.0]
|
||||
|
||||
- Prettier [1.16](https://prettier.io/blog/2019/01/20/1.16.0.html)
|
||||
- prettier-tslint 0.4.2
|
||||
|
||||
## [1.7.0]
|
||||
|
||||
- Validate the `"prettier"` key in `package.json` using the prettier settings schema
|
||||
- Prettier [1.15](https://prettier.io/blog/2018/11/07/1.15.0.html)
|
||||
- New options: jsxSingleQuote, htmlWhitespaceSensitivity and endOfLine (More info in readme).
|
||||
|
||||
## [1.6.0]
|
||||
|
||||
- disableLanguages only in User / Workspace settings (no more in folder settings).It allows to register formatters for every supported language.
|
||||
- Prettier [1.14](https://prettier.io/blog/2018/07/29/1.14.0.html)
|
||||
- New option: tslintIntegration (boolean) use `prettier-tslint` instead of `prettier`
|
||||
|
||||
## [1.5.0]
|
||||
|
||||
- Revert notification popup: remove it.
|
||||
- fix parser inference
|
||||
|
||||
## [1.4.0]
|
||||
|
||||
- [prettier 1.13.4](https://prettier.io/blog/2018/05/27/1.13.0.html)
|
||||
- prettier-stylelint 0.4.2
|
||||
|
||||
## [1.3.1]
|
||||
|
||||
- [prettier 1.12.1](https://prettier.io/blog/2018/04/11/1.12.0.html)
|
||||
|
||||
## [1.3.0]
|
||||
|
||||
- [prettier 1.12.0](https://prettier.io/blog/2018/04/11/1.12.0.html)
|
||||
|
||||
## [1.2.0]
|
||||
|
||||
- [Prettier 1.11.1](https://prettier.io/blog/2018/02/26/1.11.0.html)
|
||||
|
||||
## [1.1.3]
|
||||
|
||||
- Improve prettier resolution algorithm for monorepos
|
||||
- prettier-eslint@8.8.1
|
||||
- `vue` is now disabled by default. Opt-in by removing `vue` from disableLanguages setting
|
||||
|
||||
## [1.1.2]
|
||||
|
||||
- prettier-eslint@8.3.1 revert previous update
|
||||
|
||||
## [1.1.1]
|
||||
|
||||
- prettier-eslint@8.7.5
|
||||
|
||||
## [1.1.0]
|
||||
|
||||
- Disabling a language `disableLanguages` now allows to use an other formatter. NOT when disabling in a sub workspace folder (noop)
|
||||
- Prettier 1.10, `vue` `jsonc` `postcss` support.
|
||||
|
||||
## [1.0.0]
|
||||
|
||||
- Prettier 1.9
|
||||
- New option: requireConfig (boolean) Format only files which have a prettier config (.prettierrc, ...)
|
||||
- Don't merge editor's options into prettier config
|
||||
|
||||
## [0.25.0]
|
||||
|
||||
- Multi-root support.
|
||||
- Removed all `*Enable` settings, these are now inferred from Prettier itself. Use scoped `editor.formatOnSave` to disable formatting some languages on save.
|
||||
(See README)
|
||||
- Markdown support
|
||||
- Prettier 1.8.2
|
||||
|
||||
## [0.24.0]
|
||||
|
||||
- new setting, ignorePath. Ignore files.
|
||||
- Eslint now also runs on TypeScript files.
|
||||
- new setting, stylelintIntegration. prettier + stylelint.
|
||||
- Prettier 1.7
|
||||
|
||||
## [0.23.1]
|
||||
|
||||
- Prettier 1.6.1
|
||||
|
||||
## [0.23.0]
|
||||
|
||||
- Read configuration from files.
|
||||
- Prettier 1.6
|
||||
|
||||
## [0.22.0]
|
||||
|
||||
- Changed Status bar: hide/show depending on active editor.
|
||||
- Fix local resolution.
|
||||
|
||||
## [0.21.0]
|
||||
|
||||
- Reworked error messages. They are now in a dedicated output channel.
|
||||
|
||||
## [0.20.0]
|
||||
|
||||
- Prettier 1.5
|
||||
- Added JSON and GraphQL formatting (Range formatting disabled)
|
||||
- Disable range formatting with postcss parser (broken)
|
||||
|
||||
## [0.19.1]
|
||||
|
||||
- Fix sass language id (sass -> scss)
|
||||
- Update prettier to 1.4.4
|
||||
- Update prettier-eslint to 6.3.0
|
||||
|
||||
## [0.19.0]
|
||||
|
||||
- Option to select language ids prettier will run on.
|
||||
- Prettier 1.4.2
|
||||
|
||||
## [0.18.0]
|
||||
|
||||
- Prettier 1.4
|
||||
- Now also formats CSS and TypeScript
|
||||
- Format Selection highly improved.
|
||||
|
||||
## [0.17.0]
|
||||
|
||||
- Bump dependencies.
|
||||
- `jsx` language support in addition to `javascript` and `javascriptreact`.
|
||||
|
||||
## [0.16.0]
|
||||
|
||||
- New setting eslintIntegration. Use `prettier-eslint` under the hood.
|
||||
|
||||
## [0.14.0]
|
||||
|
||||
- Bundled with prettier 1.1.0
|
||||
- New setting `useTabs`. (prettier 1.0)
|
||||
- New setting `semi`. (prettier 1.0)
|
||||
|
||||
## [0.13.0]
|
||||
|
||||
- Local prettier has to be _explicitly_ installed (dependencies or devDependencies)
|
||||
|
||||
## [0.11.0]
|
||||
|
||||
- Resolve 'prettier' against formatted file. Nearest upward _node_modules/prettier_
|
||||
|
||||
## [0.10.0]
|
||||
|
||||
- New setting `jsxBracketSameLine`. (prettier 0.17.0)
|
||||
- Changed `trailingComma` setting `['none', 'es5', 'all']` (prettier 0.19.0)
|
||||
|
||||
## [0.7.0]
|
||||
|
||||
- Removed `Prettier` action.
|
||||
- Use vscode actions `Format Document` and `Format Selection`.
|
||||
- Removed `prettier.formatOnSave` setting in favor of the more general setting `editor.formatOnSave`
|
||||
- Deprecated `useFlowParser` setting. Introduced `parser` setting. (Since prettier 0.0.10)
|
||||
|
||||
## [0.1.0]
|
||||
|
||||
- Initial release
|
||||
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Esben Petersen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@ -0,0 +1,348 @@
|
||||
# Prettier Formatter for Visual Studio Code
|
||||
|
||||
[Prettier](https://prettier.io/) is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
|
||||
|
||||
<p align="center">
|
||||
<em>
|
||||
JavaScript
|
||||
· TypeScript
|
||||
· Flow
|
||||
· JSX
|
||||
· JSON
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
CSS
|
||||
· SCSS
|
||||
· Less
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
HTML
|
||||
· Vue
|
||||
· Angular
|
||||
</em>
|
||||
<em>
|
||||
HANDLEBARS
|
||||
· Ember
|
||||
· Glimmer
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
GraphQL
|
||||
· Markdown
|
||||
· YAML
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
<a href="https://prettier.io/docs/en/plugins.html">
|
||||
Your favorite language?
|
||||
</a>
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/prettier/prettier-vscode/actions?query=workflow%3AMain">
|
||||
<img alt="Build Status" src="https://github.com/prettier/prettier-vscode/workflows/Main/badge.svg?branch=main"></a>
|
||||
<a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">
|
||||
<img alt="VS Code Marketplace Downloads" src="https://img.shields.io/visual-studio-marketplace/d/esbenp.prettier-vscode"></a>
|
||||
<a href="https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode">
|
||||
<img alt="VS Code Marketplace Installs" src="https://img.shields.io/visual-studio-marketplace/i/esbenp.prettier-vscode"></a>
|
||||
<a href="#badge">
|
||||
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>
|
||||
<a href="https://twitter.com/PrettierCode">
|
||||
<img alt="Follow Prettier on Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square"></a>
|
||||
</p>
|
||||
|
||||
## Installation
|
||||
|
||||
Install through VS Code extensions. Search for `Prettier - Code formatter`
|
||||
|
||||
[Visual Studio Code Market Place: Prettier - Code formatter](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
|
||||
|
||||
Can also be installed in VS Code: Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
|
||||
|
||||
```
|
||||
ext install esbenp.prettier-vscode
|
||||
```
|
||||
|
||||
### Default Formatter
|
||||
|
||||
To ensure that this extension is used over other extensions you may have installed, be sure to set it as the default formatter in your VS Code settings. This setting can be set for all languages or by a specific language.
|
||||
|
||||
```json
|
||||
{
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If you want to disable Prettier on a particular language you can either create a `.prettierignore` file or you can use VS Code's `editor.defaultFormatter` settings.
|
||||
|
||||
The following will use Prettier for all languages except Javascript.
|
||||
|
||||
```json
|
||||
{
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "<another formatter>"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The following will use Prettier for only Javascript.
|
||||
|
||||
```json
|
||||
{
|
||||
"editor.defaultFormatter": "<another formatter>",
|
||||
"[javascript]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Additionally, you can disable format on save for specific languages if you don't want them to be automatically formatted.
|
||||
|
||||
```json
|
||||
{
|
||||
"[javascript]": {
|
||||
"editor.formatOnSave": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Prettier Resolution
|
||||
|
||||
This extension will use prettier from your project's local dependencies (recommended). When the `prettier.resolveGlobalModules` is set to `true` the extension can also attempt to resolve global modules. Should prettier not be installed locally with your project's dependencies or globally on the machine, the version of prettier that is bundled with the extension will be used.
|
||||
|
||||
To install prettier in your project and pin its version [as recommended](https://prettier.io/docs/en/install.html), run:
|
||||
|
||||
```
|
||||
npm install prettier -D --save-exact
|
||||
```
|
||||
|
||||
> NOTE: You will be prompted to confirm that you want the extension to load a Prettier module. This is done to ensure that you are not loading a module or script that is not trusted.
|
||||
|
||||
### Prettier Version 3
|
||||
|
||||
Prettier's preview version 3 is supported as of version 9.12.0. It is not included in the extension by default, but can be used by installing locally in your project. Version 10.0.0 of this extension will include prettier 3.0.0 after it is out of preview. To try version 3 now run the following in your project:
|
||||
|
||||
```base
|
||||
npm i prettier@3.0.0-alpha.6 -D
|
||||
```
|
||||
|
||||
### Plugins
|
||||
|
||||
This extension supports [Prettier plugins](https://prettier.io/docs/en/plugins.html) when you are using a locally or globally resolved version of prettier. If you have Prettier and a plugin registered in your `package.json`, this extension will attempt to register the language and provide automatic code formatting for the built-in and plugin languages.
|
||||
|
||||
## Configuration
|
||||
|
||||
There are multiple options for configuring Prettier with this extension. You can use [VS Code settings](#prettier-settings), [prettier configuration files](https://prettier.io/docs/en/configuration.html), or an `.editorconfig` file. The VS Code settings are meant to be used as a fallback and are generally intended only for use on non-project files. **It is recommended that you always include a prettier configuration file in your project specifying all settings for your project.** This will ensure that no matter how you run prettier - from this extension, from the CLI, or from another IDE with Prettier, the same settings will get applied.
|
||||
|
||||
Using [Prettier Configuration files](https://prettier.io/docs/en/configuration.html) to set formatting options is the recommended approach. Options are searched recursively down from the file being formatted so if you want to apply prettier settings to your entire project simply set a configuration in the root. Settings can also be configured through VS Code - however, these settings will only apply while running the extension, not when running prettier through the command line.
|
||||
|
||||
### Configuring Default Options
|
||||
|
||||
Some users may not wish to create a new Prettier config for every project or use the VS Code settings. In order to set a default configuration, set [`prettier.configPath`](https://github.com/prettier/prettier-vscode#prettierconfigpath). However, be careful, if this is set this value will always be used and local configuration files will be ignored.
|
||||
|
||||
### Visual Studio Code Settings
|
||||
|
||||
You can use [VS Code settings](#prettier-settings) to configure prettier. Settings will be read from (listed by priority):
|
||||
|
||||
1. [Prettier configuration file](https://prettier.io/docs/en/configuration.html)
|
||||
1. `.editorconfig`
|
||||
1. Visual Studio Code Settings (Ignored if any other configuration is present)
|
||||
|
||||
> NOTE: If any local configuration file is present (i.e. `.prettierrc`) the VS Code settings will **NOT** be used.
|
||||
|
||||
## Usage
|
||||
|
||||
### Using Command Palette (CMD/CTRL + Shift + P)
|
||||
|
||||
```
|
||||
1. CMD + Shift + P -> Format Document
|
||||
OR
|
||||
1. Select the text you want to Prettify
|
||||
2. CMD + Shift + P -> Format Selection
|
||||
```
|
||||
|
||||
### Keyboard Shortcuts
|
||||
|
||||
Visual Studio Code provides [default keyboard shortcuts](https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference) for code formatting. You can learn about these for each platform in the [VS Code documentation](https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference).
|
||||
|
||||
If you don't like the defaults, you can rebind `editor.action.formatDocument` and `editor.action.formatSelection` in the keyboard shortcuts menu of vscode.
|
||||
|
||||
### Format On Save
|
||||
|
||||
Respects `editor.formatOnSave` setting.
|
||||
|
||||
You can turn on format-on-save on a per-language basis by scoping the setting:
|
||||
|
||||
```json
|
||||
// Set the default
|
||||
"editor.formatOnSave": false,
|
||||
// Enable per-language
|
||||
"[javascript]": {
|
||||
"editor.formatOnSave": true
|
||||
}
|
||||
```
|
||||
|
||||
### Format Selection
|
||||
|
||||
Format selection works on several languages depending on what Prettier itself supports. The following languages currently are supported:
|
||||
|
||||
```
|
||||
javascript
|
||||
javascriptreact
|
||||
typescript
|
||||
typescriptreact
|
||||
json
|
||||
graphql
|
||||
handlebars
|
||||
```
|
||||
|
||||
### Format Document (Forced)
|
||||
|
||||
If you would like to format a document that is configured to be ignored by Prettier either because it is in a `.prettierignore` file or part of a normally excluded location like `node_modules`, you can run the command **Format Document (Forced)** to force the document to be formatted. Forced mode will also ignore any config for `requirePragma` allowing you to format files without the pragma comment present.
|
||||
|
||||
## Linter Integration
|
||||
|
||||
The recommended way of integrating with linters is to let Prettier do the formatting and configure the linter to not deal with formatting rules. You can find instructions on how to configure each linter on the Prettier docs site. You can then use each of the linting extensions as you normally would. For details refer to the [Prettier documentation](https://prettier.io/docs/en/integrating-with-linters.html).
|
||||
|
||||
## Workspace Trust
|
||||
|
||||
This extension utilizes VS Code [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust) features. When this extension is run on an untrusted workspace, it will only use the built in version of prettier. No plugins, local, or global modules will be supported. Additionally, certain settings are also restricted - see each setting for details.
|
||||
|
||||
## Settings
|
||||
|
||||
### Prettier Settings
|
||||
|
||||
All prettier options can be configured directly in this extension. These settings are used as a fallback when no configuration file is present in your project, see the [configuration](#configuration) section of this document for more details. For reference on the options see the [prettier documentation](https://prettier.io/docs/en/options.html).
|
||||
|
||||
> The default values of these configurations are always to their Prettier 2.0 defaults. In order to use defaults from earlier versions of prettier you must set them manually using your VS Code settings or local project configurations.
|
||||
|
||||
```
|
||||
prettier.arrowParens
|
||||
prettier.bracketSpacing
|
||||
prettier.endOfLine
|
||||
prettier.htmlWhitespaceSensitivity
|
||||
prettier.insertPragma
|
||||
prettier.singleAttributePerLine
|
||||
prettier.bracketSameLine
|
||||
prettier.jsxBracketSameLine
|
||||
prettier.jsxSingleQuote
|
||||
prettier.printWidth
|
||||
prettier.proseWrap
|
||||
prettier.quoteProps
|
||||
prettier.requirePragma
|
||||
prettier.semi
|
||||
prettier.singleQuote
|
||||
prettier.tabWidth
|
||||
prettier.trailingComma
|
||||
prettier.useTabs
|
||||
prettier.vueIndentScriptAndStyle
|
||||
prettier.embeddedLanguageFormatting
|
||||
prettier.experimentalTernaries
|
||||
```
|
||||
|
||||
### Extension Settings
|
||||
|
||||
These settings are specific to VS Code and need to be set in the VS Code settings file. See the [documentation](https://code.visualstudio.com/docs/getstarted/settings) for how to do that.
|
||||
|
||||
#### prettier.enable (default: `true`)
|
||||
|
||||
Controls whether prettier is enabled or not. You must restart VS Code when you change this setting.
|
||||
|
||||
#### prettier.requireConfig (default: `false`)
|
||||
|
||||
Require a prettier configuration file to format files. Untitled files will still be formatted using the VS Code Prettier configuration even with this option set to `true`.
|
||||
|
||||
#### prettier.ignorePath (default: `.prettierignore`)
|
||||
|
||||
Supply the path to an ignore file such as `.gitignore` or `.prettierignore`.
|
||||
Files which match will not be formatted. Set to `null` to not read ignore files.
|
||||
|
||||
**Note, if this is set, this value will always be used and local ignore files will be ignored.**
|
||||
|
||||
**Disabled on untrusted workspaces**
|
||||
|
||||
#### prettier.configPath
|
||||
|
||||
Supply a custom path to the prettier configuration file.
|
||||
|
||||
**Note, if this is set, this value will always be used and local configuration files will be ignored. A better option for global defaults is to put a `~/.prettierrc` file in your home directory.**
|
||||
|
||||
**Disabled on untrusted workspaces**
|
||||
|
||||
#### prettier.prettierPath
|
||||
|
||||
Supply a custom path to the prettier module. This path should be to the module folder, not the bin/script path. i.e. `./node_modules/prettier`, not `./bin/prettier`.
|
||||
|
||||
**Disabled on untrusted workspaces**
|
||||
|
||||
#### prettier.resolveGlobalModules (default: `false`)
|
||||
|
||||
When enabled, this extension will attempt to use global npm or yarn modules if local modules cannot be resolved.
|
||||
|
||||
> NOTE: This setting can have a negative performance impact, particularly on Windows when you have attached network drives. Only enable this if you must use global modules. It is recommended that you always use local modules when possible.
|
||||
|
||||
**Note: Disabling a language enabled in a parent folder will prevent formatting instead of letting any other formatter to run**
|
||||
|
||||
**Disabled on untrusted workspaces**
|
||||
|
||||
#### prettier.documentSelectors
|
||||
|
||||
A list of [glob patterns](https://code.visualstudio.com/api/references/vscode-api#GlobPattern) to register Prettier formatter. Typically these will be in the format of `**/*.abc` to tell this extension to register itself as the formatter for all files with the `abc` extension. This feature can be useful when you have [overrides](https://prettier.io/docs/en/configuration.html#configuration-overrides) set in your config file to map custom extensions to a parser.
|
||||
|
||||
It is likely you will need to also update your prettier config. For example, if I register the following document selector by itself, Prettier still won't know what to do with that file. I either need a Prettier extension that formats `.abc` file format or I need to configure Prettier.
|
||||
|
||||
```json
|
||||
{
|
||||
"prettier.documentSelectors": ["**/*.abc"]
|
||||
}
|
||||
```
|
||||
|
||||
To tell Prettier how to format a file of type `.abc` I can set an override in the prettier config that makes this file type use the `babel` parser.
|
||||
|
||||
```json
|
||||
{
|
||||
"overrides": [
|
||||
{
|
||||
"files": "*.abc",
|
||||
"options": {
|
||||
"parser": "babel"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**Disabled on untrusted workspaces**
|
||||
|
||||
#### prettier.useEditorConfig (default: `true`)
|
||||
|
||||
Whether or not to take .editorconfig into account when parsing configuration. See the [prettier.resolveConfig docs](https://prettier.io/docs/en/api.html#prettierresolveconfigfilepath--options) for details.
|
||||
|
||||
**Disabled on untrusted workspaces (always false)**
|
||||
|
||||
#### prettier.withNodeModules (default: `false`)
|
||||
|
||||
Whether or not to process files in the `node_modules` folder.
|
||||
|
||||
**Disabled on untrusted workspaces**
|
||||
|
||||
## Error Messages
|
||||
|
||||
**Failed to load module. If you have prettier or plugins referenced in package.json, ensure you have run `npm install`**
|
||||
|
||||
When a `package.json` is present in your project and it contains prettier, plugins, or linter libraries this extension will attempt to load these modules from your `node_module` folder. If you see this error, it most likely means you need to run `npm install` or `yarn install` to install the packages in your `package.json`.
|
||||
|
||||
**Your project is configured to use an outdated version of prettier that cannot be used by this extension. Upgrade to the latest version of prettier.**
|
||||
|
||||
You must upgrade to a newer version of prettier.
|
||||
|
||||
**This workspace is not trusted. Using the bundled version of prettier.**
|
||||
|
||||
You must trust this workspace to use plugins and local/global modules. See: [Workspace Trust](https://code.visualstudio.com/docs/editor/workspace-trust)
|
||||
@ -0,0 +1,24 @@
|
||||
vscode-go
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Original Work Copyright (c) 2015-2020 Microsoft Corporation
|
||||
Current Work and Modifications Copyright (c) 2020-present The Go Authors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
2
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/dist/extension.js
vendored
Normal file
2
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/dist/extension.js
vendored
Normal file
File diff suppressed because one or more lines are too long
65
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/dist/web-extension.js
vendored
Normal file
65
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/dist/web-extension.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
||||
const{parentPort}=require("worker_threads"),path2ModuleCache=new Map;function requireInstance(e){let t=path2ModuleCache.get(e);if(!t){if(t=require(e),!t.format)throw new Error("wrong instance");path2ModuleCache.set(e,t)}return t}parentPort.on("message",(({type:e,id:t,payload:a})=>{switch(e){case"import":{const{modulePath:r}=a;try{const a=requireInstance(r);parentPort.postMessage({type:e,id:t,payload:{version:a.version}})}catch{parentPort.postMessage({type:e,id:t,payload:{version:null}})}break}case"callMethod":{const{modulePath:r,methodName:o,methodArgs:s}=a,n=a=>{parentPort.postMessage({type:e,id:t,payload:{result:a,isError:!0}})},p=a=>{parentPort.postMessage({type:e,id:t,payload:{result:a,isError:!1}})};let c,i=path2ModuleCache.get(r);if(!i)try{i=requireInstance(r)}catch(e){n(e)}try{c=i[o](...s)}catch(e){n(e)}if(c instanceof Promise){c.then((e=>{try{"getSupportInfo"===o&&(e={languages:e.languages}),p(e)}catch(e){n(e)}}),(e=>{n(e)}));break}try{"getSupportInfo"===o&&(c={languages:c.languages}),p(c)}catch(e){n(e)}break}}}));
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
5970
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/LICENSE
generated
vendored
Normal file
5970
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/LICENSE
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
109
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/README.md
generated
vendored
Normal file
109
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/README.md
generated
vendored
Normal file
@ -0,0 +1,109 @@
|
||||

|
||||
|
||||
<h2 align="center">Opinionated Code Formatter</h2>
|
||||
|
||||
<p align="center">
|
||||
<em>
|
||||
JavaScript
|
||||
· TypeScript
|
||||
· Flow
|
||||
· JSX
|
||||
· JSON
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
CSS
|
||||
· SCSS
|
||||
· Less
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
HTML
|
||||
· Vue
|
||||
· Angular
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
GraphQL
|
||||
· Markdown
|
||||
· YAML
|
||||
</em>
|
||||
<br />
|
||||
<em>
|
||||
<a href="https://prettier.io/docs/en/plugins.html">
|
||||
Your favorite language?
|
||||
</a>
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3AProd+branch%3Amain">
|
||||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/prod-test.yml?label=Prod&style=flat-square"></a>
|
||||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev+branch%3Amain">
|
||||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/dev-test.yml?label=Dev&style=flat-square"></a>
|
||||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint+branch%3Amain">
|
||||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/lint.yml?label=Lint&style=flat-square"></a>
|
||||
<a href="https://codecov.io/gh/prettier/prettier">
|
||||
<img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a>
|
||||
<a href="https://twitter.com/acdlite/status/974390255393505280">
|
||||
<img alt="Blazing Fast" src="https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-brightgreen.svg?style=flat-square"></a>
|
||||
<br/>
|
||||
<a href="https://www.npmjs.com/package/prettier">
|
||||
<img alt="npm version" src="https://img.shields.io/npm/v/prettier.svg?style=flat-square"></a>
|
||||
<a href="https://www.npmjs.com/package/prettier">
|
||||
<img alt="weekly downloads from npm" src="https://img.shields.io/npm/dw/prettier.svg?style=flat-square"></a>
|
||||
<a href="#badge">
|
||||
<img alt="code style: prettier" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a>
|
||||
<a href="https://twitter.com/PrettierCode">
|
||||
<img alt="Follow Prettier on Twitter" src="https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier&style=flat-square"></a>
|
||||
</p>
|
||||
|
||||
## Intro
|
||||
|
||||
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
|
||||
|
||||
### Input
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```js
|
||||
foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne());
|
||||
```
|
||||
|
||||
### Output
|
||||
|
||||
```js
|
||||
foo(
|
||||
reallyLongArg(),
|
||||
omgSoManyParameters(),
|
||||
IShouldRefactorThis(),
|
||||
isThereSeriouslyAnotherOne()
|
||||
);
|
||||
```
|
||||
|
||||
Prettier can be run [in your editor](https://prettier.io/docs/en/editors.html) on-save, in a [pre-commit hook](https://prettier.io/docs/en/precommit.html), or in [CI environments](https://prettier.io/docs/en/cli.html#list-different) to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!
|
||||
|
||||
---
|
||||
|
||||
**[Documentation](https://prettier.io/docs/en/)**
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
[Install](https://prettier.io/docs/en/install.html) ·
|
||||
[Options](https://prettier.io/docs/en/options.html) ·
|
||||
[CLI](https://prettier.io/docs/en/cli.html) ·
|
||||
[API](https://prettier.io/docs/en/api.html)
|
||||
|
||||
**[Playground](https://prettier.io/playground/)**
|
||||
|
||||
---
|
||||
|
||||
## Badge
|
||||
|
||||
Show the world you're using _Prettier_ → [](https://github.com/prettier/prettier)
|
||||
|
||||
```md
|
||||
[](https://github.com/prettier/prettier)
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
See [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||
64
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/bin-prettier.js
generated
vendored
Normal file
64
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/bin-prettier.js
generated
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
#!/usr/bin/env node
|
||||
"use strict";
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __commonJS = function(cb, mod) {
|
||||
return function __require() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
};
|
||||
|
||||
// node_modules/semver-compare/index.js
|
||||
var require_semver_compare = __commonJS({
|
||||
"node_modules/semver-compare/index.js": function(exports2, module2) {
|
||||
module2.exports = function cmp(a, b) {
|
||||
var pa = a.split(".");
|
||||
var pb = b.split(".");
|
||||
for (var i = 0; i < 3; i++) {
|
||||
var na = Number(pa[i]);
|
||||
var nb = Number(pb[i]);
|
||||
if (na > nb)
|
||||
return 1;
|
||||
if (nb > na)
|
||||
return -1;
|
||||
if (!isNaN(na) && isNaN(nb))
|
||||
return 1;
|
||||
if (isNaN(na) && !isNaN(nb))
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/please-upgrade-node/index.js
|
||||
var require_please_upgrade_node = __commonJS({
|
||||
"node_modules/please-upgrade-node/index.js": function(exports2, module2) {
|
||||
var semverCompare = require_semver_compare();
|
||||
module2.exports = function pleaseUpgradeNode2(pkg, opts) {
|
||||
var opts = opts || {};
|
||||
var requiredVersion = pkg.engines.node.replace(">=", "");
|
||||
var currentVersion = process.version.replace("v", "");
|
||||
if (semverCompare(currentVersion, requiredVersion) === -1) {
|
||||
if (opts.message) {
|
||||
console.error(opts.message(requiredVersion));
|
||||
} else {
|
||||
console.error(
|
||||
pkg.name + " requires at least version " + requiredVersion + " of Node, please upgrade"
|
||||
);
|
||||
}
|
||||
if (opts.hasOwnProperty("exitCode")) {
|
||||
process.exit(opts.exitCode);
|
||||
} else {
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// bin/prettier.js
|
||||
var pleaseUpgradeNode = require_please_upgrade_node();
|
||||
var packageJson = require("./package.json");
|
||||
pleaseUpgradeNode(packageJson);
|
||||
var cli = require("./cli.js");
|
||||
module.exports = cli.run(process.argv.slice(2));
|
||||
15364
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/cli.js
generated
vendored
Normal file
15364
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/cli.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1473
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/doc.js
generated
vendored
Normal file
1473
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/doc.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
38236
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/index.js
generated
vendored
Normal file
38236
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
21
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/package.json
generated
vendored
Normal file
21
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/package.json
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "prettier",
|
||||
"version": "2.8.8",
|
||||
"description": "Prettier is an opinionated code formatter",
|
||||
"bin": "./bin-prettier.js",
|
||||
"repository": "prettier/prettier",
|
||||
"funding": "https://github.com/prettier/prettier?sponsor=1",
|
||||
"homepage": "https://prettier.io",
|
||||
"author": "James Long",
|
||||
"license": "MIT",
|
||||
"main": "./index.js",
|
||||
"browser": "./standalone.js",
|
||||
"unpkg": "./standalone.js",
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
},
|
||||
"files": [
|
||||
"*.js",
|
||||
"esm/*.mjs"
|
||||
]
|
||||
}
|
||||
2
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-angular.js
generated
vendored
Normal file
2
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-angular.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
29
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-babel.js
generated
vendored
Normal file
29
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-babel.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
26
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-espree.js
generated
vendored
Normal file
26
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-espree.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
35
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-flow.js
generated
vendored
Normal file
35
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-flow.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
27
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-glimmer.js
generated
vendored
Normal file
27
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-glimmer.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
15
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-graphql.js
generated
vendored
Normal file
15
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-graphql.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
36
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-html.js
generated
vendored
Normal file
36
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-html.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
76
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-markdown.js
generated
vendored
Normal file
76
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-markdown.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
19
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-meriyah.js
generated
vendored
Normal file
19
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-meriyah.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
76
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-postcss.js
generated
vendored
Normal file
76
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-postcss.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
49
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-typescript.js
generated
vendored
Normal file
49
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-typescript.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
150
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-yaml.js
generated
vendored
Normal file
150
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/parser-yaml.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
116
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/standalone.js
generated
vendored
Normal file
116
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/standalone.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
8978
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/third-party.js
generated
vendored
Normal file
8978
local/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal/node_modules/prettier/third-party.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,9 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"properties": {
|
||||
"prettier": {
|
||||
"description": "Prettier configuration",
|
||||
"$ref": "https://json.schemastore.org/prettierrc"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,473 @@
|
||||
{
|
||||
"name": "prettier-vscode",
|
||||
"displayName": "Prettier - Code formatter",
|
||||
"description": "Code formatter using prettier",
|
||||
"version": "11.0.0",
|
||||
"publisher": "esbenp",
|
||||
"author": "Prettier <@prettiercode>",
|
||||
"galleryBanner": {
|
||||
"color": "#ffe04b",
|
||||
"theme": "light"
|
||||
},
|
||||
"sponsor": {
|
||||
"url": "https://opencollective.com/prettier"
|
||||
},
|
||||
"homepage": "https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/prettier/prettier-vscode.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/prettier/prettier-vscode/issues"
|
||||
},
|
||||
"engines": {
|
||||
"vscode": "^1.80.0"
|
||||
},
|
||||
"keywords": [
|
||||
"multi-root ready",
|
||||
"prettier",
|
||||
"formatter",
|
||||
"javascript",
|
||||
"handlebars",
|
||||
"js",
|
||||
"jsx",
|
||||
"flow",
|
||||
"typescript",
|
||||
"ts",
|
||||
"json",
|
||||
"css",
|
||||
"less",
|
||||
"scss",
|
||||
"styled-components",
|
||||
"styled-jsx",
|
||||
"markdown",
|
||||
"md",
|
||||
"commonmark",
|
||||
"mdx",
|
||||
"php",
|
||||
"pug",
|
||||
"ruby",
|
||||
"swift",
|
||||
"html",
|
||||
"vue",
|
||||
"ember",
|
||||
"glimmer",
|
||||
"angular",
|
||||
"graphql",
|
||||
"yaml",
|
||||
"yml"
|
||||
],
|
||||
"categories": [
|
||||
"Formatters"
|
||||
],
|
||||
"activationEvents": [
|
||||
"onStartupFinished"
|
||||
],
|
||||
"icon": "icon.png",
|
||||
"main": "./dist/extension",
|
||||
"browser": "./dist/web-extension",
|
||||
"scripts": {
|
||||
"clean": "node ./scripts/clean.js",
|
||||
"lint": "eslint -c .eslintrc.js --ext .ts .",
|
||||
"pretest": "yarn test-compile && cd test-fixtures/plugins && yarn install && cd ../plugins-pnpm && pnpm i && cd ../outdated && yarn install && cd ../module && yarn install && cd ../specific-version && yarn install && cd ../explicit-dep && yarn install && cd implicit-dep && yarn install && cd ../../v3 && yarn install && cd ../plugin-tailwindcss && npm i && cd ../v3-plugins && npm i && cd ../v3-plugin-override && yarn install",
|
||||
"prettier": "prettier --write '**/*.{ts,json,md,hbs,yml,js}'",
|
||||
"test-compile": "yarn clean && tsc -p ./ && yarn webpack && cp -r ./src/worker ./out",
|
||||
"test": "node ./out/test/runTests.js",
|
||||
"version": "node ./scripts/version.js && git add CHANGELOG.md",
|
||||
"vscode:prepublish": "webpack --mode production",
|
||||
"watch": "tsc --watch -p ./",
|
||||
"webpack-dev": "webpack --mode development --watch",
|
||||
"webpack": "webpack --mode development",
|
||||
"chrome": "yarn webpack && vscode-test-web --browserType=chromium --extensionDevelopmentPath=. .",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{ts,json,md,yml,hbs,js}": [
|
||||
"prettier --write"
|
||||
],
|
||||
"src/**/*.ts": [
|
||||
"eslint -c .eslintrc.js --ext .ts ."
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/glob": "^7.2.0",
|
||||
"@types/mocha": "^10.0.7",
|
||||
"@types/node": "20.11.30",
|
||||
"@types/prettier": "^2.7.2",
|
||||
"@types/resolve": "^1.20.3",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/sinon": "^17.0.3",
|
||||
"@types/tmp": "^0.2.6",
|
||||
"@types/vscode": "^1.80.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
||||
"@typescript-eslint/parser": "^5.45.0",
|
||||
"@vscode/test-electron": "^2.4.1",
|
||||
"@vscode/test-web": "^0.0.56",
|
||||
"copy-webpack-plugin": "^12.0.2",
|
||||
"eslint": "^8.31.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"fs-extra": "^11.2.0",
|
||||
"glob": "^7.2.0",
|
||||
"husky": "^9.1.4",
|
||||
"lint-staged": "^15.2.9",
|
||||
"mocha": "^10.7.3",
|
||||
"path-browserify": "^1.0.1",
|
||||
"process": "^0.11.10",
|
||||
"sinon": "^17.0.1",
|
||||
"tmp": "^0.2.3",
|
||||
"ts-loader": "^9.5.1",
|
||||
"typescript": "^4.6.3",
|
||||
"util": "^0.12.4",
|
||||
"vsce": "^2.15.0",
|
||||
"vscode-nls-dev": "^4.0.4",
|
||||
"webpack": "^5.93.0",
|
||||
"webpack-cli": "^5.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"find-up": "5.0.0",
|
||||
"prettier": "^2.8.8",
|
||||
"resolve": "^1.22.8",
|
||||
"semver": "^7.6.3",
|
||||
"vscode-nls": "^5.2.0"
|
||||
},
|
||||
"capabilities": {
|
||||
"virtualWorkspaces": true,
|
||||
"untrustedWorkspaces": {
|
||||
"supported": "limited",
|
||||
"description": "%ext.capabilities.untrustedWorkspaces.description%",
|
||||
"restrictedConfigurations": [
|
||||
"prettier.documentSelectors",
|
||||
"prettier.resolveGlobalModules",
|
||||
"prettier.ignorePath",
|
||||
"prettier.prettierPath",
|
||||
"prettier.configPath",
|
||||
"prettier.useEditorConfig",
|
||||
"prettier.resolveGlobalModules",
|
||||
"prettier.withNodeModules"
|
||||
]
|
||||
}
|
||||
},
|
||||
"contributes": {
|
||||
"configuration": {
|
||||
"type": "object",
|
||||
"title": "%ext.config.title%",
|
||||
"properties": {
|
||||
"prettier.disableLanguages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"deprecationMessage": "%ext.config.disableLanguagesDeprecation%",
|
||||
"markdownDescription": "%ext.config.disableLanguages%",
|
||||
"scope": "window"
|
||||
},
|
||||
"prettier.documentSelectors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"markdownDescription": "%ext.config.documentSelectors%",
|
||||
"scope": "window"
|
||||
},
|
||||
"prettier.enable": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%ext.config.enable%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.requireConfig": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.requireConfig%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.resolveGlobalModules": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.resolveGlobalModules%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.withNodeModules": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.withNodeModules%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.packageManager": {
|
||||
"scope": "resource",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"npm",
|
||||
"yarn",
|
||||
"pnpm"
|
||||
],
|
||||
"default": "npm",
|
||||
"deprecationMessage": "%ext.config.packageManagerDeprecation%",
|
||||
"markdownDescription": "%ext.config.packageManager%"
|
||||
},
|
||||
"prettier.useEditorConfig": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%ext.config.useEditorConfig%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.ignorePath": {
|
||||
"type": "string",
|
||||
"default": ".prettierignore",
|
||||
"markdownDescription": "%ext.config.ignorePath%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.prettierPath": {
|
||||
"type": "string",
|
||||
"markdownDescription": "%ext.config.prettierPath%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.configPath": {
|
||||
"type": "string",
|
||||
"markdownDescription": "%ext.config.configPath%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.enableDebugLogs": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.enableDebugLogs%",
|
||||
"scope": "resource"
|
||||
},
|
||||
"prettier.printWidth": {
|
||||
"type": "integer",
|
||||
"default": 80,
|
||||
"markdownDescription": "%ext.config.printWidth%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.tabWidth": {
|
||||
"type": "integer",
|
||||
"default": 2,
|
||||
"markdownDescription": "%ext.config.tabWidth%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.singleQuote": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.singleQuote%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.trailingComma": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"none",
|
||||
"es5",
|
||||
"all"
|
||||
],
|
||||
"default": "es5",
|
||||
"markdownDescription": "%ext.config.trailingComma%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.bracketSpacing": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%ext.config.bracketSpacing%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.singleAttributePerLine": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.singleAttributePerLine%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.bracketSameLine": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.bracketSameLine%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.jsxBracketSameLine": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.jsxBracketSameLine%",
|
||||
"deprecationMessage": "%ext.config.jsxBracketSameLineDeprecation%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.semi": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"markdownDescription": "%ext.config.semi%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.requirePragma": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.requirePragma%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.insertPragma": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.insertPragma%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.useTabs": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.useTabs%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.proseWrap": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"preserve",
|
||||
"always",
|
||||
"never"
|
||||
],
|
||||
"default": "preserve",
|
||||
"markdownDescription": "%ext.config.proseWrap%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.arrowParens": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"avoid",
|
||||
"always"
|
||||
],
|
||||
"default": "always",
|
||||
"markdownDescription": "%ext.config.arrowParens%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.jsxSingleQuote": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.jsxSingleQuote%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.htmlWhitespaceSensitivity": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"css",
|
||||
"strict",
|
||||
"ignore"
|
||||
],
|
||||
"default": "css",
|
||||
"markdownDescription": "%ext.config.htmlWhitespaceSensitivity%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.vueIndentScriptAndStyle": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.vueIndentScriptAndStyle%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.endOfLine": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"auto",
|
||||
"lf",
|
||||
"crlf",
|
||||
"cr"
|
||||
],
|
||||
"default": "lf",
|
||||
"markdownDescription": "%ext.config.endOfLine%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.quoteProps": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"as-needed",
|
||||
"consistent",
|
||||
"preserve"
|
||||
],
|
||||
"default": "as-needed",
|
||||
"markdownDescription": "%ext.config.quoteProps%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.embeddedLanguageFormatting": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"auto",
|
||||
"off"
|
||||
],
|
||||
"default": "auto",
|
||||
"markdownDescription": "%ext.config.embeddedLanguageFormatting%",
|
||||
"scope": "language-overridable"
|
||||
},
|
||||
"prettier.experimentalTernaries": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"markdownDescription": "%ext.config.experimentalTernaries%",
|
||||
"scope": "language-overridable"
|
||||
}
|
||||
}
|
||||
},
|
||||
"jsonValidation": [
|
||||
{
|
||||
"fileMatch": ".prettierrc",
|
||||
"url": "https://json.schemastore.org/prettierrc"
|
||||
},
|
||||
{
|
||||
"fileMatch": ".prettierrc.json",
|
||||
"url": "https://json.schemastore.org/prettierrc"
|
||||
},
|
||||
{
|
||||
"fileMatch": "package.json",
|
||||
"url": "./package-json-schema.json"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"id": "json",
|
||||
"filenames": [
|
||||
".prettierrc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ignore",
|
||||
"filenames": [
|
||||
".prettierignore"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "graphql",
|
||||
"extensions": [
|
||||
".graphql"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "vue",
|
||||
"extensions": [
|
||||
".vue"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "handlebars",
|
||||
"extensions": [
|
||||
".hbs",
|
||||
".handlebars"
|
||||
]
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
"command": "prettier.createConfigFile",
|
||||
"title": "%ext.command.createConfigFile.title%"
|
||||
},
|
||||
{
|
||||
"command": "prettier.forceFormatDocument",
|
||||
"title": "%ext.command.forceFormatDocument.title%",
|
||||
"when": "editorFocus"
|
||||
}
|
||||
]
|
||||
},
|
||||
"__metadata": {
|
||||
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
|
||||
"publisherDisplayName": "esbenp",
|
||||
"publisherId": "d16f4e39-2ffb-44e3-9c0d-79d873570e3a",
|
||||
"isPreReleaseVersion": false,
|
||||
"targetPlatform": "universal",
|
||||
"isApplicationScoped": false,
|
||||
"hasPreReleaseVersion": false,
|
||||
"installedTimestamp": 1738998862054,
|
||||
"pinned": false,
|
||||
"preRelease": false,
|
||||
"source": "gallery"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
{
|
||||
"ext.command.createConfigFile.title": "Prettier: Create Configuration File",
|
||||
"ext.command.forceFormatDocument.title": "Format Document (Forced)",
|
||||
"ext.config.arrowParens": "Include parentheses around a sole arrow function parameter.",
|
||||
"ext.config.bracketSpacing": "Controls the printing of spaces inside object literals.",
|
||||
"ext.config.configPath": "Path to the prettier configuration file.",
|
||||
"ext.config.disableLanguages": "A list of languages IDs to disable this extension on.",
|
||||
"ext.config.disableLanguagesDeprecation": "This feature is no longer supported. Instead, configure VS Code [default formatters](https://github.com/prettier/prettier-vscode#default-formatter) or use .prettierignore.",
|
||||
"ext.config.documentSelectors": "A list of [glob patterns](https://code.visualstudio.com/api/references/vscode-api#GlobPattern) to register Prettier formatter.",
|
||||
"ext.config.endOfLine": "Specify the end of line used by prettier.",
|
||||
"ext.config.htmlWhitespaceSensitivity": "Specify the global [whitespace sensitivity](https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting) for HTML files.\nValid options:\n- `css` - Respect the default value of CSS `display` property.\n- `strict` - Whitespaces are considered sensitive.\n- `ignore` - Whitespaces are considered insensitive.",
|
||||
"ext.config.ignorePath": "Path to a `.prettierignore` file.",
|
||||
"ext.config.insertPragma": "Prettier can insert a special `@format` marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the `--require-pragma` option. If there is already a docblock at the top of the file then this option will add a newline to it with the `@format` marker.",
|
||||
"ext.config.singleAttributePerLine": "Enforces single attribute per line in HTML, JSX, Vue and Angular.",
|
||||
"ext.config.bracketSameLine": "Puts the `>` of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).",
|
||||
"ext.config.jsxBracketSameLine": "Puts the `>` of a multi-line jsx element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).",
|
||||
"ext.config.jsxBracketSameLineDeprecation": "This option has been deprecated in v2.4.0, use `bracketSameLine` instead.",
|
||||
"ext.config.jsxSingleQuote": "Use single quotes instead of double quotes in JSX.",
|
||||
"ext.config.packageManager": "The package manager you use to install node modules.",
|
||||
"ext.config.packageManagerDeprecation": "Package manager is now automatically detected by VS Code. This setting is no longer used.",
|
||||
"ext.config.parser": "Override the parser. You shouldn't have to change this setting.",
|
||||
"ext.config.parserDeprecationMessage": "This setting is no longer supported. Use a prettier configuration file instead.",
|
||||
"ext.config.prettierPath": "Path to the `prettier` module, eg: `./node_modules/prettier`.",
|
||||
"ext.config.printWidth": "Fit code within this line limit.",
|
||||
"ext.config.proseWrap": "(Markdown) wrap prose over multiple lines.",
|
||||
"ext.config.quoteProps": "Change when properties in objects are quoted.\nValid options:\n- `\"as-needed\"` - Only add quotes around object properties where required.\n- `\"consistent\"` - If at least one property in an object requires quotes, quote all properties.\n- `\"preserve\"` - Respect the input use of quotes in object properties.",
|
||||
"ext.config.requireConfig": "Require a prettier configuration file to format. See [documentation for valid configuration files](https://prettier.io/docs/en/configuration.html).\n\n> _Note, untitled files will still be formatted using the VS Code prettier settings even when this setting is set._",
|
||||
"ext.config.requirePragma": "Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier.",
|
||||
"ext.config.resolveGlobalModules": "When enabled, this extension will attempt to use global npm or yarn modules if local modules cannot be resolved.\n> _This setting can have a negative performance impact, particularly on Windows when you have attached network drives. Only enable this if you must use global modules._",
|
||||
"ext.config.withNodeModules": "This extension will process files in `node_modules`.",
|
||||
"ext.config.semi": "Whether to add a semicolon at the end of every line.",
|
||||
"ext.config.singleQuote": "Use single instead of double quotes.",
|
||||
"ext.config.tabWidth": "Number of spaces it should use per tab.",
|
||||
"ext.config.title": "Prettier",
|
||||
"ext.config.trailingComma": "Controls the printing of trailing commas wherever possible. \nValid options:\n- `none` - No trailing commas\n- `es5` - Trailing commas where valid in ES5 (objects, arrays, etc)\n- `all` - Trailing commas wherever possible (function arguments)",
|
||||
"ext.config.useEditorConfig": "Whether or not to take `.editorconfig` into account when parsing configuration. See the [`prettier.resolveConfig`](https://prettier.io/docs/en/api.html) docs for details.",
|
||||
"ext.config.useTabs": "Indent lines with tabs.",
|
||||
"ext.config.vueIndentScriptAndStyle": "Whether or not to indent the code inside `<script>` and `<style>` tags in Vue SFC files.",
|
||||
"ext.config.embeddedLanguageFormatting": "Control whether Prettier formats quoted code embedded in the file.",
|
||||
"ext.config.enable": "Controls whether Prettier is enabled or not. Reload required.",
|
||||
"ext.config.enableDebugLogs": "Enable debug logs for troubleshooting.",
|
||||
"ext.config.experimentalTernaries": "Try prettier's [new ternary formatting](https://github.com/prettier/prettier/pull/13183) before it becomes the default behavior.",
|
||||
"ext.capabilities.untrustedWorkspaces.description": "Only the built-in version of Prettier will be used when running in untrusted mode."
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
{
|
||||
"ext.command.createConfigFile.title": "Prettier:选择配置文件",
|
||||
"ext.command.forceFormatDocument.title": "格式化文件(强制)",
|
||||
"ext.config.arrowParens": "箭头函数仅有一个参数时,参数是否添加括号。",
|
||||
"ext.config.bracketSpacing": "在对象字面量的花括号内侧使用空格作为间隔。",
|
||||
"ext.config.configPath": "指定 Prettier 配置文件的路径。",
|
||||
"ext.config.documentSelectors": "指定一个 [glob patterns](https://code.visualstudio.com/api/references/vscode-api#GlobPattern) 列表,使匹配的文件也启用 Prettier。",
|
||||
"ext.config.endOfLine": "指定 Prettier 使用的换行符。",
|
||||
"ext.config.htmlWhitespaceSensitivity": "指定 HTML 文件的[空白字符敏感度](https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting)。\n可选项:\n- `css` - 以 CSS 的 `display` 属性为准。\n- `strict` - 空白字符敏感。\n- `ignore` - 空白字符不敏感。",
|
||||
"ext.config.ignorePath": "指定 `.prettierignore` 文件路径。",
|
||||
"ext.config.insertPragma": "Prettier 可以在文件头部插入特定的 `@format` 标记以表示该文件已被 Prettier 格式化过。该选项一般和 `--require-pragma` 选项配合使用。如果文件头部已有 docblock 注释,则会在其之后新增一行并插入 `@format` 标记。",
|
||||
"ext.config.singleAttributePerLine": "会在 HTML、JSX、Vue 和 Angular 中格式化为每个属性单独占一行。",
|
||||
"ext.config.bracketSameLine": "会把多行的 HTML (包括 HTML、JSX、Vue 和 Angular) 元素的 `>` 放在最后一个属性的末尾,而不是另起一行(自闭合标签不受该选项控制)。",
|
||||
"ext.config.jsxSingleQuote": "JSX 中使用单引号而不是双引号。",
|
||||
"ext.config.prettierPath": "`prettier` 包路径,如 `./node_modules/prettier`。",
|
||||
"ext.config.printWidth": "每行代码的长度限制。",
|
||||
"ext.config.proseWrap": "( Markdown ) 文本换行。",
|
||||
"ext.config.quoteProps": "指定对象字面量中的属性名引号添加方式。\n可选项: \n- `as-needed` - 只在需要的情况下加引号。\n- `consistent` - 有一个需要引号就给其他都统一加上。\n - `preserve` - 保留用户输入的引号。",
|
||||
"ext.config.requireConfig": "Prettier 配置文件(如 `.prettierrc`)必须存在。详见 [配置文件的文档说明](https://prettier.io/docs/en/configuration.html)。\n\n_注意:未命名文件仍会使用 `VS Code` 的 `setting.json` 中的配置进行格式化,不受该选项影响。_",
|
||||
"ext.config.requirePragma": "Prettier 可以限制只对包含特定注释的文件进行格式化,这个特定的注释称为 pragma。这对于那些大型的、尚未采用 Prettier 的代码仓库逐步引入 Prettier 非常有用。",
|
||||
"ext.config.resolveGlobalModules": "如果在当前项目中找不到 `prettier` 包时尝试使用 npm 或 yarn 全局安装的包。\n>_该设置可能影响性能,特别是在 Windows 中挂载了网络磁盘的时候。只有在你需要使用全局安装的包时再启用。_",
|
||||
"ext.config.withNodeModules": "允许 Prettier 格式化 `node_modules` 中的文件。",
|
||||
"ext.config.semi": "在所有代码语句的末尾添加分号。",
|
||||
"ext.config.singleQuote": "使用单引号而不是双引号。",
|
||||
"ext.config.tabWidth": "指定一个制表符等于的空格数。",
|
||||
"ext.config.title": "Prettier",
|
||||
"ext.config.trailingComma": "指定添加尾后逗号的方式。\n选项:\n- `none` - 无尾后逗号。\n- `es5` - 在 ES5 中有效的尾后逗号(如对象与数组等)。\n- `all` - 尽可能添加尾后逗号(如函数的参数列表)。",
|
||||
"ext.config.useEditorConfig": "使用 `.editorconfig` 中的配置选项。详见 [`prettier.resolveConfig`](https://prettier.io/docs/en/api.html) 文档。",
|
||||
"ext.config.useTabs": "使用制表符缩进,而不是空格缩进。",
|
||||
"ext.config.vueIndentScriptAndStyle": "缩进 Vue SFC 文件中的 `<script>` 和 `<style>` 标签。",
|
||||
"ext.config.embeddedLanguageFormatting": "控制嵌入的其他语言代码格式化。",
|
||||
"ext.config.enable": "启用 Prettier。",
|
||||
"ext.config.enableDebugLogs": "启用调试日志。",
|
||||
"ext.capabilities.untrustedWorkspaces.description": "在不受信任模式下只会使用内置的 Prettier 版本。"
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
{
|
||||
"ext.command.createConfigFile.title": "Prettier: 建立組態檔",
|
||||
"ext.command.forceFormatDocument.title": "排版文件(強制)",
|
||||
"ext.config.arrowParens": "箭頭函式中只有一個參數也加上括號。",
|
||||
"ext.config.bracketSpacing": "控制物件字面值中兩側的留白。",
|
||||
"ext.config.configPath": "Prettier 組態檔的路徑。",
|
||||
"ext.config.disableLanguages": "針對這個套件要在某些語言停用的的 ID 清單。",
|
||||
"ext.config.disableLanguagesDeprecation": "這個功能已不再支援。請改用 VS Code 的 [default formatters](https://github.com/prettier/prettier-vscode#default-formatter) 或用 `.prettierignore`。",
|
||||
"ext.config.documentSelectors": "用於註冊 Prettier 排版器的 [glob patterns](https://code.visualstudio.com/api/references/vscode-api#GlobPattern) 清單。",
|
||||
"ext.config.endOfLine": "指定 Prettier 使用的結尾符號。",
|
||||
"ext.config.htmlWhitespaceSensitivity": "指定全域 HTML 檔案的[留白敏感度](https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting)。\n 可用的選項:\n- `css` - 遵照 CSS `display` 屬性的設定。\n- `strict` - 留白敏感。\n- `ignore` - 留白不敏感。",
|
||||
"ext.config.ignorePath": "`.prettierignore` 檔案的路徑。",
|
||||
"ext.config.insertPragma": "Prettier 可以在檔案頂部插入指定的 `@format` 記號做為表明檔案是經由 prettier 排版的。這個設定跟 `require-pragma` 選項協作有很好的效果。如果檔案頂部已有文件區塊,則會在其之後新增一列並插入 `@format` 記號。",
|
||||
"ext.config.jsxBracketSameLine": "會把多列的 jsx 元素的 `>` 放在最後一列的結尾而不是單獨放在新的一列。",
|
||||
"ext.config.jsxSingleQuote": "在 JSX 中使用單引號而不是雙引號。",
|
||||
"ext.config.packageManager": "你用於安裝 node modules 的套件管理器。",
|
||||
"ext.config.packageManagerDeprecation": "套件管理器目前會經由 VS Code 進行偵測。這個設定已不再使用。",
|
||||
"ext.config.parser": "覆寫解析器。你不應變更這個設定。",
|
||||
"ext.config.parserDeprecationMessage": "這個設定已不再支援。請改用 prettier 組態檔。",
|
||||
"ext.config.prettierPath": "`prettier` 模組的路徑,如 `./node_modules/prettier`。",
|
||||
"ext.config.printWidth": "讓程式碼的每一列符合這個寬度限制。",
|
||||
"ext.config.proseWrap": "( Markdown ) 把文句換行成多列。",
|
||||
"ext.config.quoteProps": "物件的屬性會被加上引號。",
|
||||
"ext.config.requireConfig": "排版需要 prettier 組態檔。參閱[可用的組態檔文件](https://prettier.io/docs/en/configuration.html).\n\n> _注意,無標題檔案仍會使用 VS Code 的 prettier 設定進行排版,不受這個設定值影響。_",
|
||||
"ext.config.requirePragma": "Prettier 可以限制它自己只對包含特殊註解的檔案進行排版,這個特殊的註解成為 pragma ,位於檔案的最頂部。這對於想要對那些大型、未經過排版的程式碼緩步採納 prettier 非常有幫助。",
|
||||
"ext.config.resolveGlobalModules": "這個套件會在區域的模組找不到 prettier 模組時嘗試使用去全域的 npm 或 yarn 模組中尋找。\n> _這個設定會導致效能的負面影響,特別在 Windows 中有掛載網路磁碟機。只有在你必須使用全域模組的情況下再啟用。_",
|
||||
"ext.config.withNodeModules": "這個套件會對 node_modules 的檔案進行排版。",
|
||||
"ext.config.semi": "是否要在每一列的結尾加上分號。",
|
||||
"ext.config.singleQuote": "會使用單引號而非雙引號。",
|
||||
"ext.config.tabWidth": "每一個 tab 要使用多少個空格。",
|
||||
"ext.config.title": "Prettier",
|
||||
"ext.config.trailingComma": "在可能的情況下控制結尾的逗號。可用的選項:\n- `none` - 不要結尾逗號\n- `es5` - 只要合乎 ES5 規範就加上結尾逗號(物件、陣列等其他)\n- `all` - 只要可以就加上結尾逗號(函式引數)。",
|
||||
"ext.config.useEditorConfig": "在解析組態時是否要涵蓋 `.editorconfig` 。參閱 [`prettier.resolveConfig`](https://prettier.io/docs/en/api.html) 文件取得更多細節。",
|
||||
"ext.config.useTabs": "使用 tabs 來縮排。",
|
||||
"ext.config.vueIndentScriptAndStyle": "是否要在 Vue SFC 檔案中對 `<script>` 和 `<style>` 標籤內的程式碼縮排。",
|
||||
"ext.config.embeddedLanguageFormatting": "控制 Prettier 是否要針對遷入在檔案內的引用程式碼進行排版。",
|
||||
"ext.config.enable": "控制 prettier 啟用與否。",
|
||||
"ext.config.enableDebugLogs": "啟用偵錯紀錄來協助疑難排解。",
|
||||
"ext.capabilities.untrustedWorkspaces.description": "在非信任模式中只會用內建的 Prettier 版本。"
|
||||
}
|
||||
1
local/code-server/extensions/extensions.json
Normal file
1
local/code-server/extensions/extensions.json
Normal file
@ -0,0 +1 @@
|
||||
[{"identifier":{"id":"hamza-aziane.obsidian-dark","uuid":"22069586-6b97-4c5e-9c31-ca8e6a5667fe"},"version":"1.0.0","location":{"$mid":1,"path":"/root/.local/share/code-server/extensions/hamza-aziane.obsidian-dark-1.0.0-universal","scheme":"file"},"relativeLocation":"hamza-aziane.obsidian-dark-1.0.0-universal","metadata":{"installedTimestamp":1738998565086,"source":"gallery","id":"22069586-6b97-4c5e-9c31-ca8e6a5667fe","publisherId":"bd5ac280-e625-4f19-bbe6-bca8b6598c0a","publisherDisplayName":"Hamza-Aziane","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false}},{"identifier":{"id":"esbenp.prettier-vscode","uuid":"96fa4707-6983-4489-b7c5-d5ffdfdcce90"},"version":"11.0.0","location":{"$mid":1,"path":"/root/.local/share/code-server/extensions/esbenp.prettier-vscode-11.0.0-universal","scheme":"file"},"relativeLocation":"esbenp.prettier-vscode-11.0.0-universal","metadata":{"installedTimestamp":1738998859385,"pinned":false,"source":"gallery","id":"96fa4707-6983-4489-b7c5-d5ffdfdcce90","publisherId":"d16f4e39-2ffb-44e3-9c0d-79d873570e3a","publisherDisplayName":"esbenp","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false}},{"identifier":{"id":"mads-hartmann.bash-ide-vscode","uuid":"b1b0f283-8246-4e90-832e-a6c409d378d1"},"version":"1.38.0","location":{"$mid":1,"path":"/root/.local/share/code-server/extensions/mads-hartmann.bash-ide-vscode-1.38.0-universal","scheme":"file"},"relativeLocation":"mads-hartmann.bash-ide-vscode-1.38.0-universal","metadata":{"installedTimestamp":1738998873714,"pinned":false,"source":"gallery","id":"b1b0f283-8246-4e90-832e-a6c409d378d1","publisherId":"f40c9497-3e29-43d8-954d-e60d92bc26f0","publisherDisplayName":"mads-hartmann","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false}},{"identifier":{"id":"oven.bun-vscode","uuid":"2c58c6a8-c23c-4913-899e-17c90b15274e"},"version":"0.0.8","location":{"$mid":1,"path":"/root/.local/share/code-server/extensions/oven.bun-vscode-0.0.8-universal","scheme":"file"},"relativeLocation":"oven.bun-vscode-0.0.8-universal","metadata":{"installedTimestamp":1738998908155,"pinned":false,"source":"gallery","id":"2c58c6a8-c23c-4913-899e-17c90b15274e","publisherId":"b54c1447-f7ba-421e-be69-48e03c08f0d9","publisherDisplayName":"oven","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false}},{"identifier":{"id":"mikestead.dotenv","uuid":"532533c9-a894-4a58-9eee-bbfbe7c06f71"},"version":"1.0.1","location":{"$mid":1,"fsPath":"/root/.local/share/code-server/extensions/mikestead.dotenv-1.0.1-universal","external":"file:///root/.local/share/code-server/extensions/mikestead.dotenv-1.0.1-universal","path":"/root/.local/share/code-server/extensions/mikestead.dotenv-1.0.1-universal","scheme":"file"},"relativeLocation":"mikestead.dotenv-1.0.1-universal","metadata":{"installedTimestamp":1738998981178,"pinned":false,"source":"gallery","id":"532533c9-a894-4a58-9eee-bbfbe7c06f71","publisherId":"b6aa9b98-56e5-4846-b7d2-600d45fc63fc","publisherDisplayName":"mikestead","targetPlatform":"universal","updated":false,"isPreReleaseVersion":false,"hasPreReleaseVersion":false}}]
|
||||
@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
|
||||
<Metadata>
|
||||
<Identity Language="en-US" Id="obsidian-dark" Version="1.0.0" Publisher="Hamza-Aziane" />
|
||||
<DisplayName>Obsidian Dark</DisplayName>
|
||||
<Description xml:space="preserve">Elegant yet practical dark theme</Description>
|
||||
<Tags>theme,dark theme,obsidian,obsidian theme,obsidian dark theme,obsidian dark,elegant dark theme,practical dark theme,color-theme,__web_extension</Tags>
|
||||
<Categories>Themes</Categories>
|
||||
<GalleryFlags>Public</GalleryFlags>
|
||||
|
||||
<Properties>
|
||||
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.62.0" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="ui,workspace,web" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/Hamza-Aziane/obsidian-dark.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/Hamza-Aziane/obsidian-dark.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/Hamza-Aziane/obsidian-dark.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/Hamza-Aziane/obsidian-dark/issues" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="https://github.com/Hamza-Aziane/obsidian-dark#readme" />
|
||||
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
|
||||
|
||||
|
||||
</Properties>
|
||||
<License>extension/LICENSE.txt</License>
|
||||
<Icon>extension/icon.png</Icon>
|
||||
</Metadata>
|
||||
<Installation>
|
||||
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
|
||||
</Installation>
|
||||
<Dependencies/>
|
||||
<Assets>
|
||||
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.License" Path="extension/LICENSE.txt" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/icon.png" Addressable="true" />
|
||||
</Assets>
|
||||
</PackageManifest>
|
||||
@ -0,0 +1,9 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to the "obsidian-dark" extension will be documented in this file.
|
||||
|
||||
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Initial release
|
||||
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Hamza Aziane.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@ -0,0 +1,11 @@
|
||||
# Obsidian Dark Theme for VS Code
|
||||
|
||||

|
||||
|
||||
# Installation
|
||||
|
||||
1. Open **Extensions** sidebar panel in VS Code. `View → Extensions`
|
||||
2. Search for `Obsidian Dark` - find the one by **Hamza Aziane** - there maybe other ones with the same name so make sure you have the right one!
|
||||
3. Click **Install** to install it.
|
||||
4. Click **Reload** to reload the your editor
|
||||
5. Code > Preferences > Color Theme > **Obsidian Dark**
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 823 KiB |
@ -0,0 +1,50 @@
|
||||
{
|
||||
"name": "obsidian-dark",
|
||||
"displayName": "Obsidian Dark",
|
||||
"description": "Elegant yet practical dark theme",
|
||||
"publisher": "Hamza-Aziane",
|
||||
"version": "1.0.0",
|
||||
"icon": "icon.png",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Hamza-Aziane/obsidian-dark"
|
||||
},
|
||||
"keywords": [
|
||||
"theme",
|
||||
"dark theme",
|
||||
"obsidian",
|
||||
"obsidian theme",
|
||||
"obsidian dark theme",
|
||||
"obsidian dark",
|
||||
"elegant dark theme",
|
||||
"practical dark theme"
|
||||
],
|
||||
"engines": {
|
||||
"vscode": "^1.62.0"
|
||||
},
|
||||
"categories": [
|
||||
"Themes"
|
||||
],
|
||||
"contributes": {
|
||||
"themes": [
|
||||
{
|
||||
"label": "Obsidian Dark",
|
||||
"uiTheme": "vs-dark",
|
||||
"path": "./themes/Obsidian-Dark.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"__metadata": {
|
||||
"id": "22069586-6b97-4c5e-9c31-ca8e6a5667fe",
|
||||
"publisherId": "bd5ac280-e625-4f19-bbe6-bca8b6598c0a",
|
||||
"publisherDisplayName": "Hamza-Aziane",
|
||||
"targetPlatform": "universal",
|
||||
"isApplicationScoped": false,
|
||||
"isPreReleaseVersion": false,
|
||||
"hasPreReleaseVersion": false,
|
||||
"installedTimestamp": 1738998567621,
|
||||
"pinned": false,
|
||||
"preRelease": false,
|
||||
"source": "gallery"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,760 @@
|
||||
{
|
||||
"name": "Obsidian Dark",
|
||||
"type": "dark",
|
||||
"colors": {
|
||||
"focusBorder": "#195dc4",
|
||||
"foreground": "#C9D1D9",
|
||||
"descriptionForeground": "#8b949e",
|
||||
"errorForeground": "#f85149",
|
||||
"textLink.foreground": "#58a6ff",
|
||||
"textLink.activeForeground": "#58a6ff",
|
||||
"textBlockQuote.background": "#0c0e11",
|
||||
"textBlockQuote.border": "#30363d",
|
||||
"textCodeBlock.background": "#6e768166",
|
||||
"textPreformat.foreground": "#8b949e",
|
||||
"textSeparator.foreground": "#21262d",
|
||||
"button.background": "#08702e",
|
||||
"button.foreground": "#ffffff",
|
||||
"button.hoverBackground": "#2ea043",
|
||||
"button.secondaryBackground": "#282e33",
|
||||
"button.secondaryForeground": "#c9d1d9",
|
||||
"button.secondaryHoverBackground": "#30363d",
|
||||
"checkbox.background": "#161b22",
|
||||
"checkbox.border": "#30363d",
|
||||
"dropdown.background": "#161b22",
|
||||
"dropdown.border": "#30363d",
|
||||
"dropdown.foreground": "#c9d1d9",
|
||||
"dropdown.listBackground": "#161b22",
|
||||
"input.background": "#0d1117",
|
||||
"input.border": "#30363d",
|
||||
"input.foreground": "#c9d1d9",
|
||||
"input.placeholderForeground": "#484f58",
|
||||
"badge.foreground": "#f0f6fc",
|
||||
"badge.background": "#2e52b3",
|
||||
"progressBar.background": "#1f6feb",
|
||||
"titleBar.activeForeground": "#8b949e",
|
||||
"titleBar.activeBackground": "#0d1117",
|
||||
"titleBar.inactiveForeground": "#8b949e",
|
||||
"titleBar.inactiveBackground": "#0c0e11",
|
||||
"titleBar.border": "#30363d",
|
||||
"activityBar.foreground": "#c9d1d9",
|
||||
"activityBar.inactiveForeground": "#8b949e",
|
||||
"activityBar.background": "#141a25",
|
||||
"activityBarBadge.foreground": "#141a25",
|
||||
"activityBarBadge.background": "#d1a62e",
|
||||
"activityBar.activeBorder": "#dc6a19",
|
||||
"activityBar.border": "#30363d",
|
||||
"sideBar.foreground": "#c9d1d9",
|
||||
"sideBar.background": "#11151a",
|
||||
"sideBar.border": "#30363d",
|
||||
"sideBarTitle.foreground": "#c9d1d9",
|
||||
"sideBarSectionHeader.foreground": "#c9d1d9",
|
||||
"sideBarSectionHeader.background": "#141a25",
|
||||
"sideBarSectionHeader.border": "#30363d",
|
||||
"list.hoverForeground": "#c9d1d9",
|
||||
"list.inactiveSelectionForeground": "#c9d1d9",
|
||||
"list.activeSelectionForeground": "#c9d1d9",
|
||||
"list.hoverBackground": "#6e76811a",
|
||||
"list.inactiveSelectionBackground": "#6e768166",
|
||||
"list.activeSelectionBackground": "#6e768166",
|
||||
"list.focusForeground": "#c9d1d9",
|
||||
"list.focusBackground": "#388bfd26",
|
||||
"list.inactiveFocusBackground": "#388bfd26",
|
||||
"list.highlightForeground": "#58a6ff",
|
||||
"tree.indentGuidesStroke": "#21262d",
|
||||
"notificationCenterHeader.foreground": "#8b949e",
|
||||
"notificationCenterHeader.background": "#161b22",
|
||||
"notifications.foreground": "#c9d1d9",
|
||||
"notifications.background": "#161b22",
|
||||
"notifications.border": "#30363d",
|
||||
"notificationsErrorIcon.foreground": "#f85149",
|
||||
"notificationsWarningIcon.foreground": "#d29922",
|
||||
"notificationsInfoIcon.foreground": "#58a6ff",
|
||||
"pickerGroup.border": "#30363d",
|
||||
"pickerGroup.foreground": "#8b949e",
|
||||
"quickInput.background": "#161b22",
|
||||
"quickInput.foreground": "#c9d1d9",
|
||||
"statusBar.foreground": "#d1d3d6",
|
||||
"statusBar.background": "#0d1117",
|
||||
"statusBar.border": "#30363d",
|
||||
"statusBar.noFolderBackground": "#0d1117",
|
||||
"statusBar.debuggingBackground": "#da3633",
|
||||
"statusBar.debuggingForeground": "#f0f6fc",
|
||||
"statusBarItem.prominentBackground": "#161b22",
|
||||
"editorGroupHeader.tabsBackground": "#141a25",
|
||||
"editorGroupHeader.tabsBorder": "#30363d",
|
||||
"editorGroup.border": "#30363d",
|
||||
"tab.activeForeground": "#c9d1d9",
|
||||
"tab.inactiveForeground": "#8b949e",
|
||||
"tab.inactiveBackground": "#141a25",
|
||||
"tab.activeBackground": "#101318",
|
||||
"tab.hoverBackground": "#0d1117",
|
||||
"tab.unfocusedHoverBackground": "#6e76811a",
|
||||
"tab.border": "#30363d",
|
||||
"tab.unfocusedActiveBorderTop": "#30363d",
|
||||
"tab.activeBorder": "#0d1117",
|
||||
"tab.unfocusedActiveBorder": "#0d1117",
|
||||
"tab.activeBorderTop": "#dc6a19",
|
||||
"breadcrumb.foreground": "#8b949e",
|
||||
"breadcrumb.focusForeground": "#c9d1d9",
|
||||
"breadcrumb.activeSelectionForeground": "#8b949e",
|
||||
"breadcrumbPicker.background": "#161b22",
|
||||
"editor.foreground": "#c9d1d9",
|
||||
"editor.background": "#11151a",
|
||||
"editorWidget.background": "#161b22",
|
||||
"editor.foldBackground": "#6e76811a",
|
||||
"editor.lineHighlightBackground": "#6e76811a",
|
||||
"editorLineNumber.foreground": "#586470",
|
||||
"editorLineNumber.activeForeground": "#d3e2ec",
|
||||
"editorIndentGuide.background": "#21262d",
|
||||
"editorIndentGuide.activeBackground": "#30363d",
|
||||
"editorWhitespace.foreground": "#484f58",
|
||||
"editorCursor.foreground": "#58a6ff",
|
||||
"editor.findMatchBackground": "#ffd33d44",
|
||||
"editor.findMatchHighlightBackground": "#ffd33d22",
|
||||
"editor.linkedEditingBackground": "#3392FF22",
|
||||
"editor.inactiveSelectionBackground": "#3392FF22",
|
||||
"editor.selectionBackground": "#3392FF44",
|
||||
"editor.selectionHighlightBackground": "#17E5E633",
|
||||
"editor.selectionHighlightBorder": "#17E5E600",
|
||||
"editor.wordHighlightBackground": "#17E5E600",
|
||||
"editor.wordHighlightStrongBackground": "#17E5E600",
|
||||
"editor.wordHighlightBorder": "#17E5E699",
|
||||
"editor.wordHighlightStrongBorder": "#17E5E666",
|
||||
"editorBracketMatch.background": "#17E5E650",
|
||||
"editorBracketMatch.border": "#17E5E600",
|
||||
"editorGutter.modifiedBackground": "#bb800966",
|
||||
"editorGutter.addedBackground": "#2ea04366",
|
||||
"editorGutter.deletedBackground": "#f8514966",
|
||||
"diffEditor.insertedTextBackground": "#2ea04326",
|
||||
"diffEditor.removedTextBackground": "#f8514926",
|
||||
"scrollbar.shadow": "#0008",
|
||||
"scrollbarSlider.background": "#141a25",
|
||||
"scrollbarSlider.hoverBackground": "#484F5844",
|
||||
"scrollbarSlider.activeBackground": "#484F5888",
|
||||
"editorOverviewRuler.border": "#0c0e11",
|
||||
"panel.background": "#0c0e11",
|
||||
"panel.border": "#30363d",
|
||||
"panelTitle.activeBorder": "#dc6a19",
|
||||
"panelTitle.activeForeground": "#c9d1d9",
|
||||
"panelTitle.inactiveForeground": "#8b949e",
|
||||
"panelInput.border": "#30363d",
|
||||
"terminal.foreground": "#8b949e",
|
||||
"terminal.ansiBlack": "#484f58",
|
||||
"terminal.ansiRed": "#ff7b72",
|
||||
"terminal.ansiGreen": "#3fb950",
|
||||
"terminal.ansiYellow": "#d29922",
|
||||
"terminal.ansiBlue": "#58a6ff",
|
||||
"terminal.ansiMagenta": "#bc8cff",
|
||||
"terminal.ansiCyan": "#39c5cf",
|
||||
"terminal.ansiWhite": "#b1bac4",
|
||||
"terminal.ansiBrightBlack": "#6e7681",
|
||||
"terminal.ansiBrightRed": "#ffa198",
|
||||
"terminal.ansiBrightGreen": "#56d364",
|
||||
"terminal.ansiBrightYellow": "#e3b341",
|
||||
"terminal.ansiBrightBlue": "#79c0ff",
|
||||
"terminal.ansiBrightMagenta": "#d2a8ff",
|
||||
"terminal.ansiBrightCyan": "#56d4dd",
|
||||
"terminal.ansiBrightWhite": "#f0f6fc",
|
||||
"gitDecoration.addedResourceForeground": "#3fb950",
|
||||
"gitDecoration.modifiedResourceForeground": "#d29922",
|
||||
"gitDecoration.deletedResourceForeground": "#f85149",
|
||||
"gitDecoration.untrackedResourceForeground": "#5fca83",
|
||||
"gitDecoration.ignoredResourceForeground": "#484f58",
|
||||
"gitDecoration.conflictingResourceForeground": "#db6d28",
|
||||
"gitDecoration.submoduleResourceForeground": "#8b949e",
|
||||
"debugToolBar.background": "#161b22",
|
||||
"editor.stackFrameHighlightBackground": "#D2992225",
|
||||
"editor.focusedStackFrameHighlightBackground": "#3FB95025",
|
||||
"peekViewEditor.matchHighlightBackground": "#ffd33d33",
|
||||
"peekViewResult.matchHighlightBackground": "#ffd33d33",
|
||||
"peekViewEditor.background": "#0d111788",
|
||||
"peekViewResult.background": "#0d1117",
|
||||
"settings.headerForeground": "#8b949e",
|
||||
"settings.modifiedItemIndicator": "#bb800966"
|
||||
},
|
||||
"tokenColors": [
|
||||
{
|
||||
"name": "Global settings",
|
||||
"scope": "",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "String",
|
||||
"scope": "string",
|
||||
"settings": {
|
||||
"foreground": "#8fc778"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Punctuation",
|
||||
"scope": "punctuation, constant.other.symbol",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "String Escape",
|
||||
"scope": "constant.character.escape, text.html constant.character.entity.named",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Boolean",
|
||||
"scope": "constant.language.boolean",
|
||||
"settings": {
|
||||
"foreground": "#ff9cac"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Number",
|
||||
"scope": "constant.numeric",
|
||||
"settings": {
|
||||
"foreground": "#ee8f73"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Variable",
|
||||
"scope": "variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Other Keyword",
|
||||
"scope": "keyword.other",
|
||||
"settings": {
|
||||
"foreground": "#ee8f73"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Keyword",
|
||||
"scope": "keyword, modifier, variable.language.this, support.type.object, constant.language",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Function call",
|
||||
"scope": "entity.name.function, support.function",
|
||||
"settings": {
|
||||
"foreground": "#548ec5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Storage",
|
||||
"scope": "storage.type, storage.modifier, storage.control",
|
||||
"settings": {
|
||||
"foreground": "#8777e2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Modules",
|
||||
"scope": "support.module, support.node",
|
||||
"settings": {
|
||||
"foreground": "#e75e65",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Type",
|
||||
"scope": "support.type, constant.other.key",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Type",
|
||||
"scope": "entity.name.type, entity.other.inherited-class, entity.other",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Comment",
|
||||
"scope": "comment",
|
||||
"settings": {
|
||||
"foreground": "#61667e",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Comment",
|
||||
"scope": "comment punctuation.definition.comment, string.quoted.docstring",
|
||||
"settings": {
|
||||
"foreground": "#61667e",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Punctuation",
|
||||
"scope": "punctuation",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Class",
|
||||
"scope": "entity.name, entity.name.type.class, support.type, support.class, meta.use",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Class variable",
|
||||
"scope": "variable.object.property, meta.field.declaration entity.name.function",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Class method",
|
||||
"scope": "meta.definition.method entity.name.function",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Function definition",
|
||||
"scope": "meta.function entity.name.function",
|
||||
"settings": {
|
||||
"foreground": "#548ec5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Template expression",
|
||||
"scope": "template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Reset embedded/template expression colors",
|
||||
"scope": "meta.embedded, source.groovy.embedded, meta.template.expression",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "YAML key",
|
||||
"scope": "entity.name.tag.yaml",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON key",
|
||||
"scope": "meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON constant",
|
||||
"scope": "constant.language.json",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CSS class",
|
||||
"scope": "entity.other.attribute-name.class",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CSS ID",
|
||||
"scope": "entity.other.attribute-name.id",
|
||||
"settings": {
|
||||
"foreground": "#ee8f73"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CSS tag",
|
||||
"scope": "source.css entity.name.tag",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CSS properties",
|
||||
"scope": "support.type.property-name.css",
|
||||
"settings": {
|
||||
"foreground": "#5cb4b4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HTML tag outer",
|
||||
"scope": "meta.tag, punctuation.definition.tag",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HTML tag inner",
|
||||
"scope": "entity.name.tag",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HTML tag attribute",
|
||||
"scope": "entity.other.attribute-name",
|
||||
"settings": {
|
||||
"foreground": "#8777e2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "HTML entities",
|
||||
"scope": "punctuation.definition.entity.html",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown heading",
|
||||
"scope": "markup.heading",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown link text",
|
||||
"scope": "text.html.markdown meta.link.inline, meta.link.reference",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown list item",
|
||||
"scope": "text.html.markdown beginning.punctuation.definition.list",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown italic",
|
||||
"scope": "markup.italic",
|
||||
"settings": {
|
||||
"foreground": "#e75e65",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown bold",
|
||||
"scope": "markup.bold",
|
||||
"settings": {
|
||||
"foreground": "#e75e65",
|
||||
"fontStyle": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown bold italic",
|
||||
"scope": "markup.bold markup.italic, markup.italic markup.bold",
|
||||
"settings": {
|
||||
"foreground": "#e75e65",
|
||||
"fontStyle": "italic bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown code block",
|
||||
"scope": "markup.fenced_code.block.markdown punctuation.definition.markdown",
|
||||
"settings": {
|
||||
"foreground": "#8fc778"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown inline code",
|
||||
"scope": "markup.inline.raw.string.markdown",
|
||||
"settings": {
|
||||
"foreground": "#8fc778"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "INI property name",
|
||||
"scope": "keyword.other.definition.ini",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "INI section title",
|
||||
"scope": "entity.name.section.group-title.ini",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C# class",
|
||||
"scope": "source.cs meta.class.identifier storage.type",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C# class method",
|
||||
"scope": "source.cs meta.method.identifier entity.name.function",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C# function call",
|
||||
"scope": "source.cs meta.method-call meta.method, source.cs entity.name.function",
|
||||
"settings": {
|
||||
"foreground": "#548ec5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C# type",
|
||||
"scope": "source.cs storage.type",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C# return type",
|
||||
"scope": "source.cs meta.method.return-type",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C# preprocessor",
|
||||
"scope": "source.cs meta.preprocessor",
|
||||
"settings": {
|
||||
"foreground": "#61667e"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C# namespace",
|
||||
"scope": "source.cs entity.name.type.namespace",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSX Text",
|
||||
"scope": "meta.jsx.children, SXNested",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSX Components name",
|
||||
"scope": "support.class.component",
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "C-related Block Level Variables",
|
||||
"scope": "source.cpp meta.block variable.other",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Member Access Meta",
|
||||
"scope": "source.python meta.member.access.python",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Function Call",
|
||||
"scope": "source.python meta.function-call.python, meta.function-call.arguments",
|
||||
"settings": {
|
||||
"foreground": "#548ec5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Blocks",
|
||||
"scope": "meta.block",
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Function Call",
|
||||
"scope": "entity.name.function.call",
|
||||
"settings": {
|
||||
"foreground": "#548ec5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Namespaces",
|
||||
"scope": "source.php support.other.namespace, source.php meta.use support.class",
|
||||
"settings": {
|
||||
"foreground": "#d9dae2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Constant keywords",
|
||||
"scope": "constant.keyword",
|
||||
"settings": {
|
||||
"foreground": "#32c3fc",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Entity name",
|
||||
"scope": "entity.name.function",
|
||||
"settings": {
|
||||
"foreground": "#548ec5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markup Deleted",
|
||||
"scope": [
|
||||
"markup.deleted"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markup Inserted",
|
||||
"scope": [
|
||||
"markup.inserted"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#8fc778"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markup Underline",
|
||||
"scope": [
|
||||
"markup.underline"
|
||||
],
|
||||
"settings": {
|
||||
"fontStyle": "underline"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Keyword Control",
|
||||
"scope": [
|
||||
"keyword.control"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#32c3fc",
|
||||
"fontStyle": "italic"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown - Blockquote",
|
||||
"scope": [
|
||||
"markup.quote"
|
||||
],
|
||||
"settings": {
|
||||
"fontStyle": "italic",
|
||||
"foreground": "#32c3fc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown - Fenced Language",
|
||||
"scope": [
|
||||
"markup.fenced_code.block"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#d9dae290"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Markdown - Blockquote Punctuation",
|
||||
"scope": [
|
||||
"punctuation.definition.quote"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#ff9cac"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 0",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#8777e2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 1",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#e2bc52"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 2",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#ee8f73"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 3",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#e75e65"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 4",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#916b53"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 5",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#548ec5"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 6",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#ff9cac"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 7",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#8777e2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "JSON Key - Level 8",
|
||||
"scope": [
|
||||
"meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
|
||||
],
|
||||
"settings": {
|
||||
"foreground": "#8fc778"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"semanticHighlighting": true
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
|
||||
<Metadata>
|
||||
<Identity Language="en-US" Id="bash-ide-vscode" Version="1.38.0" Publisher="mads-hartmann" />
|
||||
<DisplayName>Bash IDE</DisplayName>
|
||||
<Description xml:space="preserve">A language server for Bash</Description>
|
||||
<Tags>shell script,bash script,bash,shellscript</Tags>
|
||||
<Categories>Other</Categories>
|
||||
<GalleryFlags>Public</GalleryFlags>
|
||||
|
||||
<Properties>
|
||||
<Property Id="Microsoft.VisualStudio.Code.Engine" Value="^1.44.0" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionDependencies" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionPack" Value="" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.ExtensionKind" Value="workspace" />
|
||||
<Property Id="Microsoft.VisualStudio.Code.LocalizedLanguages" Value="" />
|
||||
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Source" Value="https://github.com/bash-lsp/bash-language-server.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Getstarted" Value="https://github.com/bash-lsp/bash-language-server.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.GitHub" Value="https://github.com/bash-lsp/bash-language-server.git" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Support" Value="https://github.com/bash-lsp/bash-language-server/issues" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Links.Learn" Value="https://github.com/bash-lsp/bash-language-server#readme" />
|
||||
|
||||
|
||||
<Property Id="Microsoft.VisualStudio.Services.GitHubFlavoredMarkdown" Value="true" />
|
||||
<Property Id="Microsoft.VisualStudio.Services.Content.Pricing" Value="Free"/>
|
||||
|
||||
|
||||
|
||||
</Properties>
|
||||
|
||||
<Icon>extension/assets/bash-logo.png</Icon>
|
||||
</Metadata>
|
||||
<Installation>
|
||||
<InstallationTarget Id="Microsoft.VisualStudio.Code"/>
|
||||
</Installation>
|
||||
<Dependencies/>
|
||||
<Assets>
|
||||
<Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.Details" Path="extension/README.md" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Content.Changelog" Path="extension/CHANGELOG.md" Addressable="true" />
|
||||
<Asset Type="Microsoft.VisualStudio.Services.Icons.Default" Path="extension/assets/bash-logo.png" Addressable="true" />
|
||||
</Assets>
|
||||
</PackageManifest>
|
||||
@ -0,0 +1,210 @@
|
||||
# Bash IDE
|
||||
|
||||
## 1.38.0
|
||||
- Upgrade language server to 4.10.0.
|
||||
|
||||
## 1.37.0
|
||||
- Upgrade language server to 4.9.2.
|
||||
- Fix flags/options insertion issue.
|
||||
- More snippets.
|
||||
|
||||
## 1.36.0
|
||||
- Upgrade language server to 4.8.4.
|
||||
- Source error diagnostics ("Source command could not be analyzed") is now disabled by default and can be re-enable using the `enableSourceErrorDiagnostics` configuration flag.
|
||||
|
||||
## 1.35.0
|
||||
- Upgrade language server to 4.8.2.
|
||||
- ShellCheck: avoid using the diagnostic tag "deprecated" which renders diagnostics with a strike through
|
||||
|
||||
## 1.34.0
|
||||
|
||||
- Upgrade language server to 4.8.1.
|
||||
- Use ShellCheck directives when analyzing source commands
|
||||
- Support for bash options auto completions when using Brew or when `pkg-config` fails, but bash completions are found in `"${PREFIX:-/usr}/share/bash-completion/bash_completion"`
|
||||
|
||||
|
||||
## 1.33.0
|
||||
|
||||
- Upgrade language server to 4.6.2.
|
||||
- Remove diagnostics for missing nodes that turns out to be unstable (this was introduced in 1.30.0).
|
||||
- Support parsing `: "${VARIABLE:="default"}"` as a variable definition.
|
||||
|
||||
## 1.32.0
|
||||
|
||||
- Upgrade language server to 4.5.5.
|
||||
- Use sourcing info even if `includeAllWorkspaceSymbols` is true to ensure that files not matching the `globPattern` (and therefore not part of the background analysis) is still resolved based on source commands.
|
||||
|
||||
## 1.31.0
|
||||
|
||||
- Upgrade language server to 4.5.4.
|
||||
- Skip running ShellCheck for unsupported zsh files. We will still run it for bash like files without a shebang or without a known file extension.
|
||||
|
||||
## 1.30.0
|
||||
|
||||
- Upgrade language server to 4.5.3.
|
||||
- Fix issue where some features would work as expected in case of a syntax issue
|
||||
- Fixed `onReferences` to respect the `context.includeDeclaration` flag
|
||||
- Removed unnecessary dependency `urijs`
|
||||
|
||||
## 1.29.0
|
||||
|
||||
- Upgrade language server to 4.5.1.
|
||||
- Improved parsing of global declarations.
|
||||
- Skip completions in the middle of a non word when the following characters is not an empty list or whitespace.
|
||||
- Remove infrequent and rather useless "Failed to parse" diagnostics and the `highlightParsingErrors` configuration option – the tree sitter parser is actually rather good at error recovery. Note that these messages will now be shown in the log.
|
||||
|
||||
## 1.28.0
|
||||
|
||||
- Upgrade language server to 4.5.0.
|
||||
- Include 30 snippets for language constructs (e.g. `if`), builtins (e.g. `test`), expansions (e.g. `[##]`), and external programs (e.g. `sed`).
|
||||
- Improved source command parsing.
|
||||
- Includes diagnostics when we fail to analyze source commands.
|
||||
- Logging is improved and configurable.
|
||||
|
||||
## 1.27.0
|
||||
|
||||
- FAULTY RELEASE. The server was stuck on version 4.2.5, but new logging configuration was shipped which made the server fail loading the configuration.
|
||||
|
||||
## 1.26.0
|
||||
|
||||
- Upgrade language server to 4.2.5 fixing a critical performance issue for workspaces with many files.
|
||||
|
||||
## 1.25.0
|
||||
|
||||
- Upgrade language server to 4.2.4 with a better ShellCheck performance and support for resolving loop variables.
|
||||
|
||||
## 1.24.0
|
||||
|
||||
- Upgrade language server to 4.2.0.
|
||||
|
||||
## 1.23.0
|
||||
|
||||
- Upgrade language server to 4.1.2.
|
||||
|
||||
## 1.22.0
|
||||
|
||||
- Upgrade language server to 4.1.1.
|
||||
|
||||
## 1.21.0
|
||||
|
||||
- Upgrade language server to 4.1.0 that makes symbols lookup based on sourced files (using non dynamic statements like `source file.sh` or `. ~/file.inc`) instead of including all symbols from the workspace. We now also support jump-to-definition on the file path used in a source command. The new behavior can be disabled by turning on the `includeAllWorkspaceSymbols` configuration option.
|
||||
|
||||
## 1.20.1
|
||||
|
||||
- Upgrade language server to 4.0.1 that enables ShellCheck code actions (quick fixes), remove duplicated error codes, add URLs and tags, support parsing dialects (sh, bash, dash, ksh) but still fallback to bash, enable configuring ShellCheck arguments using the `shellcheckArguments` configuration parameter and allows for changing settings while the extension is running.
|
||||
|
||||
## 1.18.0
|
||||
|
||||
- Upgrade language server to 4.0.0-beta.1 that enables a better ShellCheck integration.
|
||||
|
||||
## 1.17.0
|
||||
|
||||
- Upgrade language server to 3.3.0 that enables faster background analysis and defaults to enabling ShellCheck linting the ShellCheck executable is found. We strongly recommend installing ShellCheck.
|
||||
|
||||
## 1.16.2
|
||||
|
||||
- Upgrade language server to 3.2.3
|
||||
|
||||
## 1.16.1
|
||||
|
||||
- Fix incorrect link in README
|
||||
|
||||
## 1.16.0
|
||||
|
||||
- Upgrade language server to 3.2.0
|
||||
|
||||
## 1.15.0
|
||||
|
||||
- Upgrade language server to 3.1.0
|
||||
|
||||
## 1.14.0
|
||||
|
||||
- Upgrade language server to 3.0.3 that includes support for Shellcheck linting (please follow https://github.com/koalaman/shellcheck#installing to install Shellcheck)
|
||||
|
||||
## 1.13.0
|
||||
|
||||
- Upgrade language server to 2.1.0
|
||||
|
||||
## 1.12.1
|
||||
|
||||
- Bug fix to fix server not starting
|
||||
|
||||
## 1.12.0
|
||||
|
||||
- Upgrade language server to 2.0.0
|
||||
|
||||
## 1.11.0
|
||||
|
||||
- Default configuration change: parsing errors are not highlighted as problems (as the grammar is buggy)
|
||||
|
||||
## 1.10.2
|
||||
|
||||
- Upgrade language server to 1.16.1 (fix brace expansion bug and crash when bash is not installed)
|
||||
|
||||
## 1.10.1
|
||||
|
||||
- Upgrade language server to 1.16.0 (improved completion support for parameters)
|
||||
|
||||
## 1.10.0
|
||||
|
||||
- Upgrade language server to 1.15.0 (improved hover and completion documentation)
|
||||
|
||||
## 1.9.1
|
||||
|
||||
- Upgrade language server to 1.13.1 (improved file lookup error handling)
|
||||
|
||||
## 1.9.0
|
||||
|
||||
- Upgrade language server to 1.13.0 (improved completion handler with suggestions based on variables and functions found in the workspace)
|
||||
|
||||
## 1.8.0
|
||||
|
||||
- Upgrade language server to 1.11.1 (support for workspace symbols). This can for example be used by doing `Command + P` and then write `# someSearchQuery`
|
||||
|
||||
## 1.7.0
|
||||
|
||||
- Upgrade language server to 1.10.0 (improved completion handler)
|
||||
|
||||
## 1.6.0
|
||||
|
||||
- Upgrade language server to 1.9.0 (skip analyzing files with a non-bash shebang)
|
||||
|
||||
## 1.5.0
|
||||
|
||||
- Upgrade language server to 1.8.0 (PATH tilde expansion, builtins and man pages formatting, pre-analyzes more files than just .sh)
|
||||
|
||||
* Make file glob configurable
|
||||
|
||||
- Remove unused `bashIde.path` configuration parameter
|
||||
|
||||
## 1.4.0
|
||||
|
||||
- Remove additional installation step by integrating the `bash-language-server` (version 1.6.1)
|
||||
|
||||
## 1.3.3
|
||||
|
||||
- Force people to upgrade their `bash-language-server` installation to `1.5.2`.
|
||||
|
||||
## 1.3.2
|
||||
|
||||
- Added a new configuration option `bashIde.highlightParsingErrors` which defaults
|
||||
to `true`. When enabled it will report parsing errors as 'problems'. This means you
|
||||
can now disable the error reporting which is convenient as `shellcheck` performs a
|
||||
better job of linting and our parser still has many issues.
|
||||
|
||||
## 1.3.1
|
||||
|
||||
- Added new configuration option `bashIde.path` for specifying the exact
|
||||
location of the binary.
|
||||
- Added new configuration option `bashIde.explainshellEndpoint` that you can use
|
||||
to enable explainshell integration.
|
||||
|
||||
## 1.3.0
|
||||
|
||||
- The client will now prompt to upgrade the Bash Language Server if you're running
|
||||
an old version.
|
||||
|
||||
## 1.2.1
|
||||
|
||||
- Attempt to support windows by appending `cmd` to the command to start the
|
||||
server.
|
||||
@ -0,0 +1,38 @@
|
||||
# Bash IDE
|
||||
|
||||
[](https://marketplace.visualstudio.com/items?itemName=mads-hartmann.bash-ide-vscode)
|
||||
[](https://marketplace.visualstudio.com/items?itemName=mads-hartmann.bash-ide-vscode)
|
||||
[](https://open-vsx.org/extension/mads-hartmann/bash-ide-vscode)
|
||||
|
||||
Visual Studio Code extension utilizing the [Bash Language Server](https://github.com/bash-lsp/bash-language-server/blob/HEAD/bash-lsp) and integrates with [explainshell][explainshell] and [shellcheck][shellcheck].
|
||||
|
||||
We strongly recommend that you install [shellcheck][shellcheck] to enable linting: https://github.com/koalaman/shellcheck#installing
|
||||
|
||||
## Features
|
||||
|
||||
- [x] Jump to declaration
|
||||
- [x] Find references
|
||||
- [x] Code Outline & Show Symbols
|
||||
- [x] Highlight occurrences
|
||||
- [x] Code completion
|
||||
- [x] Simple diagnostics reporting
|
||||
- [x] Documentation for flags on hover
|
||||
- [x] Workspace symbols
|
||||
- [ ] Rename symbol
|
||||
- [x] Snippets
|
||||
|
||||
## Configuration
|
||||
|
||||
To get documentation for flags on hover (thanks to explainshell), run a explainshell server and update your VS Code settings:
|
||||
|
||||
```
|
||||
"bashIde.explainshellEndpoint": "http://localhost:5000",
|
||||
```
|
||||
|
||||
For security reasons, it defaults to `""`, which disables explainshell integration. When set, this extension will send requests to the endpoint and displays documentation for flags. We recommend using a local Docker image (see https://github.com/bash-lsp/bash-language-server/issues/180).
|
||||
|
||||
[bash-lsp]: https://github.com/bash-lsp/bash-language-server
|
||||
[tree-sitter]: https://github.com/tree-sitter/tree-sitter
|
||||
[tree-sitter-bash]: https://github.com/tree-sitter/tree-sitter-bash
|
||||
[explainshell]: https://explainshell.com/
|
||||
[shellcheck]: https://www.shellcheck.net/
|
||||
@ -0,0 +1,30 @@
|
||||
const packageJson = require('../package.json')
|
||||
import { getDefaultConfiguration } from '../../server/src/config'
|
||||
import { LOG_LEVELS } from '../../server/src/util/logger'
|
||||
|
||||
const defaultConfig = getDefaultConfiguration()
|
||||
|
||||
describe('config', () => {
|
||||
const configProperties = packageJson.contributes.configuration.properties
|
||||
|
||||
it('prefixes all keys with "bashIde."', () => {
|
||||
for (const key of Object.keys(configProperties)) {
|
||||
expect(key).toMatch(/^bashIde\./)
|
||||
}
|
||||
})
|
||||
|
||||
it('has the same keys as the default configuration', () => {
|
||||
const configKeys = Object.keys(configProperties)
|
||||
.map((key) => key.replace(/^bashIde\./, ''))
|
||||
.sort()
|
||||
|
||||
const defaultConfigKeys = Object.keys(defaultConfig).sort()
|
||||
expect(configKeys).toEqual(defaultConfigKeys)
|
||||
})
|
||||
|
||||
it('matches the server log levels', () => {
|
||||
const configLogLevels = configProperties['bashIde.logLevel'].enum?.sort()
|
||||
expect(configLogLevels).toEqual(LOG_LEVELS.slice().sort())
|
||||
expect(LOG_LEVELS).toContain(configProperties['bashIde.logLevel'].default)
|
||||
})
|
||||
})
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
21
local/code-server/extensions/mads-hartmann.bash-ide-vscode-1.38.0-universal/node_modules/@nodelib/fs.scandir/LICENSE
generated
vendored
Normal file
21
local/code-server/extensions/mads-hartmann.bash-ide-vscode-1.38.0-universal/node_modules/@nodelib/fs.scandir/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Denis Malinochkin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
171
local/code-server/extensions/mads-hartmann.bash-ide-vscode-1.38.0-universal/node_modules/@nodelib/fs.scandir/README.md
generated
vendored
Normal file
171
local/code-server/extensions/mads-hartmann.bash-ide-vscode-1.38.0-universal/node_modules/@nodelib/fs.scandir/README.md
generated
vendored
Normal file
@ -0,0 +1,171 @@
|
||||
# @nodelib/fs.scandir
|
||||
|
||||
> List files and directories inside the specified directory.
|
||||
|
||||
## :bulb: Highlights
|
||||
|
||||
The package is aimed at obtaining information about entries in the directory.
|
||||
|
||||
* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional).
|
||||
* :gear: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type. See [`old` and `modern` mode](#old-and-modern-mode).
|
||||
* :link: Can safely work with broken symbolic links.
|
||||
|
||||
## Install
|
||||
|
||||
```console
|
||||
npm install @nodelib/fs.scandir
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import * as fsScandir from '@nodelib/fs.scandir';
|
||||
|
||||
fsScandir.scandir('path', (error, stats) => { /* … */ });
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### .scandir(path, [optionsOrSettings], callback)
|
||||
|
||||
Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path with standard callback-style.
|
||||
|
||||
```ts
|
||||
fsScandir.scandir('path', (error, entries) => { /* … */ });
|
||||
fsScandir.scandir('path', {}, (error, entries) => { /* … */ });
|
||||
fsScandir.scandir('path', new fsScandir.Settings(), (error, entries) => { /* … */ });
|
||||
```
|
||||
|
||||
### .scandirSync(path, [optionsOrSettings])
|
||||
|
||||
Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path.
|
||||
|
||||
```ts
|
||||
const entries = fsScandir.scandirSync('path');
|
||||
const entries = fsScandir.scandirSync('path', {});
|
||||
const entries = fsScandir.scandirSync(('path', new fsScandir.Settings());
|
||||
```
|
||||
|
||||
#### path
|
||||
|
||||
* Required: `true`
|
||||
* Type: `string | Buffer | URL`
|
||||
|
||||
A path to a file. If a URL is provided, it must use the `file:` protocol.
|
||||
|
||||
#### optionsOrSettings
|
||||
|
||||
* Required: `false`
|
||||
* Type: `Options | Settings`
|
||||
* Default: An instance of `Settings` class
|
||||
|
||||
An [`Options`](#options) object or an instance of [`Settings`](#settingsoptions) class.
|
||||
|
||||
> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
|
||||
|
||||
### Settings([options])
|
||||
|
||||
A class of full settings of the package.
|
||||
|
||||
```ts
|
||||
const settings = new fsScandir.Settings({ followSymbolicLinks: false });
|
||||
|
||||
const entries = fsScandir.scandirSync('path', settings);
|
||||
```
|
||||
|
||||
## Entry
|
||||
|
||||
* `name` — The name of the entry (`unknown.txt`).
|
||||
* `path` — The path of the entry relative to call directory (`root/unknown.txt`).
|
||||
* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. On Node.js below 10.10 will be emulated by [`DirentFromStats`](./src/utils/fs.ts) class.
|
||||
* `stats` (optional) — An instance of `fs.Stats` class.
|
||||
|
||||
For example, the `scandir` call for `tools` directory with one directory inside:
|
||||
|
||||
```ts
|
||||
{
|
||||
dirent: Dirent { name: 'typedoc', /* … */ },
|
||||
name: 'typedoc',
|
||||
path: 'tools/typedoc'
|
||||
}
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### stats
|
||||
|
||||
* Type: `boolean`
|
||||
* Default: `false`
|
||||
|
||||
Adds an instance of `fs.Stats` class to the [`Entry`](#entry).
|
||||
|
||||
> :book: Always use `fs.readdir` without the `withFileTypes` option. ??TODO??
|
||||
|
||||
### followSymbolicLinks
|
||||
|
||||
* Type: `boolean`
|
||||
* Default: `false`
|
||||
|
||||
Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`.
|
||||
|
||||
### `throwErrorOnBrokenSymbolicLink`
|
||||
|
||||
* Type: `boolean`
|
||||
* Default: `true`
|
||||
|
||||
Throw an error when symbolic link is broken if `true` or safely use `lstat` call if `false`.
|
||||
|
||||
### `pathSegmentSeparator`
|
||||
|
||||
* Type: `string`
|
||||
* Default: `path.sep`
|
||||
|
||||
By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead.
|
||||
|
||||
### `fs`
|
||||
|
||||
* Type: [`FileSystemAdapter`](./src/adapters/fs.ts)
|
||||
* Default: A default FS methods
|
||||
|
||||
By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
|
||||
|
||||
```ts
|
||||
interface FileSystemAdapter {
|
||||
lstat?: typeof fs.lstat;
|
||||
stat?: typeof fs.stat;
|
||||
lstatSync?: typeof fs.lstatSync;
|
||||
statSync?: typeof fs.statSync;
|
||||
readdir?: typeof fs.readdir;
|
||||
readdirSync?: typeof fs.readdirSync;
|
||||
}
|
||||
|
||||
const settings = new fsScandir.Settings({
|
||||
fs: { lstat: fakeLstat }
|
||||
});
|
||||
```
|
||||
|
||||
## `old` and `modern` mode
|
||||
|
||||
This package has two modes that are used depending on the environment and parameters of use.
|
||||
|
||||
### old
|
||||
|
||||
* Node.js below `10.10` or when the `stats` option is enabled
|
||||
|
||||
When working in the old mode, the directory is read first (`fs.readdir`), then the type of entries is determined (`fs.lstat` and/or `fs.stat` for symbolic links).
|
||||
|
||||
### modern
|
||||
|
||||
* Node.js 10.10+ and the `stats` option is disabled
|
||||
|
||||
In the modern mode, reading the directory (`fs.readdir` with the `withFileTypes` option) is combined with obtaining information about its entries. An additional call for symbolic links (`fs.stat`) is still present.
|
||||
|
||||
This mode makes fewer calls to the file system. It's faster.
|
||||
|
||||
## Changelog
|
||||
|
||||
See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
|
||||
|
||||
## License
|
||||
|
||||
This software is released under the terms of the MIT license.
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user