build: {
terser: false,
babel: {
presets({ isServer }, [preset, options]) {
options.targets = isServer ? { node: 'current' } : { chrome: 90 }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Forces typescript to expand the type in the hover output. Useful for debugging. | |
type Prettify<T> = T extends infer U ? { [K in keyof U]: U[K] } : never; |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
ANNOTATION_LINK = '<div class="actions" style="font-family:system"><a href=\'subl:lsp_run_text_command_helper {"command":"lsp_code_actions","view_id":195,"args":{"code_actions_by_config":[["LSP-rome",[{"kind":"quickfix.rome.style.noVar","title":"Use 'const' instead.","edit":{"changes":{"file:///usr/local/workspace/temp/nuxt3-app/node_modules/logrocket/dist/build.umd.js":[{"range":{"start":{"character":10,"line":11},"end":{"character":13,"line":11}},"newText":"const"}]}},"diagnostics":[{"source":"rome","code":"lint/style/noVar","codeDescription":{"href":"https://docs.rome.tools/lint/rules/noVar"},"range":{"start":{"character":10,"line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional, Tuple | |
import sublime_plugin | |
class ViewEventListener(sublime_plugin.ViewEventListener): | |
def on_text_command(self, command_name: str, args: Optional[dict]) -> Optional[Tuple[str, dict]]: | |
if 'fold' in command_name: | |
view = self.view | |
self._old_layout = view.text_to_layout(view.sel()[0].begin()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"clients": { | |
"spellcheck": { | |
"enabled": false, | |
"command": [ | |
"node", | |
"/Users/rafal/workspace/github/vscode-spell-checker/packages/_server/dist/main.js", | |
"--stdio" | |
], | |
"selector": "source.js | source.ts", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```python | |
(module) mdpopups | |
``` | |
Markdown popup. | |
Markdown tooltips and phantoms for SublimeText. | |
TextMate theme to CSS. | |
https://manual.macromates.com/en/language\_grammars#naming\_conventions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"clients": { | |
"diagnostic-ls": { | |
"enabled": true, | |
"command": [ | |
"diagnostic-languageserver", | |
"--stdio" | |
], | |
"selector": "source.shell, source.python", | |
"initializationOptions": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Auto-pair quotes | |
{ "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"$0\""}, "context": | |
[ | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, | |
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "[\"a-zA-Z0-9_]$", "match_all": true }, | |
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true } | |
] | |
}, | |
{ "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"${0:$SELECTION}\""}, "context": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
class CompletionListener(sublime_plugin.ViewEventListener): | |
def on_query_completions(self, prefix, locations): | |
completion_list = sublime.CompletionList() | |
sublime.set_timeout_async(lambda: self._on_query_completions_async(completion_list, locations[0])) | |
return completion_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
FIRST_RESPONSE_DELAY = 200 | |
SECOND_RESPONSE_DELAY = 2000 | |
class CompletionListener(sublime_plugin.ViewEventListener): | |
def on_query_completions(self, prefix, locations): |
NewerOlder