Skip to content

Commit

Permalink
fix server api to include server instance on each method of the adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasmelo1 committed Dec 21, 2024
1 parent e2755ca commit f68cc6c
Show file tree
Hide file tree
Showing 45 changed files with 1,363 additions and 1,317 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
"trailingComma": "none"
}
2 changes: 1 addition & 1 deletion build/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"emitDeclarationOnly": true,
"allowJs": true,
"incremental": true,
"outDir": "./dist/cjs",
"outDir": "./dist/src",
"preserveSymlinks": true,
"target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"lib": ["ESNext"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
Expand Down
262 changes: 3 additions & 259 deletions docs/components/Code.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useRef, useEffect, useMemo, useId } from 'react';
import { useRef, useEffect, useId } from 'react';
import type * as TMonaco from 'monaco-editor';
import typescript from 'typescript';

Expand Down Expand Up @@ -73,264 +73,7 @@ export default function Code(props: Props) {
compilerOptions: {},
domID: id,
} satisfies Parameters<typeof sandbox['createTypeScriptSandbox']>[0];
const themeData = /*{
"base": "vs-dark",
"inherit": true,
"rules": [
{
"foreground": "fed5b3",
"token": "variable.parameter.function"
},
{
"foreground": "fb8b2e",
"token": "comment"
},
{
"foreground": "fb8b2e",
"token": "punctuation.definition.comment"
},
{
"foreground": "fed5b3",
"token": "punctuation.definition.string"
},
{
"foreground": "fed5b3",
"token": "punctuation.definition.variable"
},
{
"foreground": "fed5b3",
"token": "punctuation.definition.parameters"
},
{
"foreground": "fed5b3",
"token": "punctuation.definition.array"
},
{
"foreground": "fed5b3",
"token": "none"
},
{
"foreground": "fed5b3",
"token": "keyword.operator"
},
{
"foreground": "fcad6b",
"token": "keyword"
},
{
"foreground": "fcaf70",
"token": "variable"
},
{
"foreground": "fca660",
"token": "entity.name.function"
},
{
"foreground": "fca660",
"token": "meta.require"
},
{
"foreground": "fca660",
"token": "support.function.any-method"
},
{
"foreground": "fdc699",
"token": "support.class"
},
{
"foreground": "fdc699",
"token": "entity.name.class"
},
{
"foreground": "fdc699",
"token": "entity.name.type.class"
},
{
"foreground": "fff9f5",
"token": "meta.class"
},
{
"foreground": "fca660",
"token": "keyword.other.special-method"
},
{
"foreground": "fcad6b",
"token": "storage"
},
{
"foreground": "fdb880",
"token": "support.function"
},
{
"foreground": "fdbe8a",
"token": "string"
},
{
"foreground": "fdbe8a",
"token": "constant.other.symbol"
},
{
"foreground": "fdbe8a",
"token": "entity.other.inherited-class"
},
{
"foreground": "fdc291",
"token": "constant.numeric"
},
{
"foreground": "fdc291",
"token": "none"
},
{
"foreground": "fdc291",
"token": "none"
},
{
"foreground": "fdc291",
"token": "constant"
},
{
"foreground": "fcaf70",
"token": "entity.name.tag"
},
{
"foreground": "fdc291",
"token": "entity.other.attribute-name"
},
{
"foreground": "fca660",
"token": "entity.other.attribute-name.id"
},
{
"foreground": "fca660",
"token": "punctuation.definition.entity"
},
{
"foreground": "fcad6b",
"token": "meta.selector"
},
{
"foreground": "fdc291",
"token": "none"
},
{
"foreground": "fca660",
"token": "markup.heading punctuation.definition.heading"
},
{
"foreground": "fca660",
"token": "entity.name.section"
},
{
"foreground": "fdc291",
"token": "keyword.other.unit"
},
{
"foreground": "fdc699",
"fontStyle": "bold",
"token": "markup.bold"
},
{
"foreground": "fdc699",
"fontStyle": "bold",
"token": "punctuation.definition.bold"
},
{
"foreground": "fcad6b",
"fontStyle": "italic",
"token": "markup.italic"
},
{
"foreground": "fcad6b",
"fontStyle": "italic",
"token": "punctuation.definition.italic"
},
{
"foreground": "fdbe8a",
"token": "markup.raw.inline"
},
{
"foreground": "fcaf70",
"token": "string.other.link"
},
{
"foreground": "fcaf70",
"token": "punctuation.definition.string.end.markdown"
},
{
"foreground": "fdc291",
"token": "meta.link"
},
{
"foreground": "fcaf70",
"token": "markup.list"
},
{
"foreground": "fdc291",
"token": "markup.quote"
},
{
"foreground": "fed5b3",
"token": "meta.separator"
},
{
"foreground": "fdbe8a",
"token": "markup.inserted"
},
{
"foreground": "fcaf70",
"token": "markup.deleted"
},
{
"foreground": "fcad6b",
"token": "markup.changed"
},
{
"foreground": "fdb880",
"token": "constant.other.color"
},
{
"foreground": "fdb880",
"token": "string.regexp"
},
{
"foreground": "fdb880",
"token": "constant.character.escape"
},
{
"foreground": "fcad6b",
"token": "punctuation.section.embedded"
},
{
"foreground": "fcad6b",
"token": "variable.interpolation"
},
{
"foreground": "fff9f5",
"token": "invalid.illegal"
},
{
"foreground": "fa7100",
"token": "invalid.broken"
},
{
"foreground": "fff9f5",
"token": "invalid.deprecated"
},
{
"foreground": "fff9f5",
"token": "invalid.unimplemented"
}
],
"colors": {
"editor.foreground": "#fed5b3",
"editor.background": "#ffffff",
"editor.selectionBackground": "#a1a1aa",
"editor.lineHighlightBackground": "#71717a",
"editorCursor.foreground": "#fed5b3",
"editorWhitespace.foreground": "#fb7f1a"
}
}*/ {
const themeData = {
"base": "vs",
"inherit": true,
"rules": [
Expand Down Expand Up @@ -650,3 +393,4 @@ export default function Code(props: Props) {
</div>
);
};

Loading

0 comments on commit f68cc6c

Please sign in to comment.