Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add path aliases
Nate Butler1f3feacb2162
diff --git a/styles/src/element/interactive/index.ts b/styles/src/element/index.tssimilarity index 100%rename from styles/src/element/interactive/index.tsrename to styles/src/element/index.tsdiff --git a/styles/src/element/interactive/interactive.test.ts b/styles/src/element/interactive.test.tssimilarity index 100%rename from styles/src/element/interactive/interactive.test.tsrename to styles/src/element/interactive.test.tsdiff --git a/styles/src/element/interactive/interactive.ts b/styles/src/element/interactive.tssimilarity index 100%rename from styles/src/element/interactive/interactive.tsrename to styles/src/element/interactive.tsdiff --git a/styles/src/styleTree/assistant.ts b/styles/src/styleTree/assistant.tsindex b31fe8169eb..6ebf648481d 100644--- a/styles/src/styleTree/assistant.ts+++ b/styles/src/styleTree/assistant.ts@@ -1,7 +1,7 @@import { ColorScheme } from "../theme/colorScheme"import { text, border, background, foreground } from "./components"import editor from "./editor"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function assistant(colorScheme: ColorScheme) {const layer = colorScheme.highestdiff --git a/styles/src/styleTree/commandPalette.ts b/styles/src/styleTree/commandPalette.tsindex 081a0ba68c1..8634d08a90e 100644--- a/styles/src/styleTree/commandPalette.ts+++ b/styles/src/styleTree/commandPalette.ts@@ -2,7 +2,7 @@ import { ColorScheme } from "../theme/colorScheme"import { withOpacity } from "../theme/color"import { text, background } from "./components"import { toggleable } from "./toggle"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function commandPalette(colorScheme: ColorScheme) {let layer = colorScheme.highestdiff --git a/styles/src/styleTree/contactList.ts b/styles/src/styleTree/contactList.tsindex 3b95a3c885f..f038d797168 100644--- a/styles/src/styleTree/contactList.ts+++ b/styles/src/styleTree/contactList.ts@@ -1,7 +1,7 @@import { ColorScheme } from "../theme/colorScheme"import { background, border, borderColor, foreground, text } from "./components"import { toggleable } from "./toggle"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function contactsPanel(colorScheme: ColorScheme) {const nameMargin = 8const sidePadding = 12diff --git a/styles/src/styleTree/contactNotification.ts b/styles/src/styleTree/contactNotification.tsindex 4d572390052..7de3f2fe0c5 100644--- a/styles/src/styleTree/contactNotification.ts+++ b/styles/src/styleTree/contactNotification.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { background, foreground, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"const avatarSize = 12const headerPadding = 8diff --git a/styles/src/styleTree/contextMenu.ts b/styles/src/styleTree/contextMenu.tsindex 51bff9de7fe..21231ccac9d 100644--- a/styles/src/styleTree/contextMenu.ts+++ b/styles/src/styleTree/contextMenu.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { background, border, borderColor, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"import { toggleable } from "./toggle"export default function contextMenu(colorScheme: ColorScheme) {diff --git a/styles/src/styleTree/copilot.ts b/styles/src/styleTree/copilot.tsindex 27ef5ec11c4..9229761414a 100644--- a/styles/src/styleTree/copilot.ts+++ b/styles/src/styleTree/copilot.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { background, border, foreground, svg, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function copilot(colorScheme: ColorScheme) {let layer = colorScheme.middlediff --git a/styles/src/styleTree/editor.ts b/styles/src/styleTree/editor.tsindex 3612a0acd1f..5a55341933b 100644--- a/styles/src/styleTree/editor.ts+++ b/styles/src/styleTree/editor.ts@@ -4,7 +4,7 @@ import { background, border, borderColor, foreground, text } from "./components"import hoverPopover from "./hoverPopover"import { buildSyntax } from "../theme/syntax"-import { interactive } from "../element/interactive"+import { interactive } from "../element"import { toggleable } from "./toggle"export default function editor(colorScheme: ColorScheme) {diff --git a/styles/src/styleTree/feedback.ts b/styles/src/styleTree/feedback.tsindex 19a8f1e4c75..4f0e99844df 100644--- a/styles/src/styleTree/feedback.ts+++ b/styles/src/styleTree/feedback.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { background, border, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function feedback(colorScheme: ColorScheme) {let layer = colorScheme.highestdiff --git a/styles/src/styleTree/picker.ts b/styles/src/styleTree/picker.tsindex 3bcdae584fd..940059eb438 100644--- a/styles/src/styleTree/picker.ts+++ b/styles/src/styleTree/picker.ts@@ -2,7 +2,7 @@ import { ColorScheme } from "../theme/colorScheme"import { withOpacity } from "../theme/color"import { background, border, text } from "./components"import { toggleable } from "./toggle"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function picker(colorScheme: ColorScheme): any {let layer = colorScheme.lowestdiff --git a/styles/src/styleTree/projectPanel.ts b/styles/src/styleTree/projectPanel.tsindex 132dfe102c1..5df3988be6f 100644--- a/styles/src/styleTree/projectPanel.ts+++ b/styles/src/styleTree/projectPanel.ts@@ -1,7 +1,7 @@import { ColorScheme } from "../theme/colorScheme"import { withOpacity } from "../theme/color"import { background, border, foreground, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"import { toggleable } from "./toggle"export default function projectPanel(colorScheme: ColorScheme) {const { isLight } = colorSchemediff --git a/styles/src/styleTree/search.ts b/styles/src/styleTree/search.tsindex 1f63d2740ba..64f17e7d740 100644--- a/styles/src/styleTree/search.ts+++ b/styles/src/styleTree/search.ts@@ -1,7 +1,7 @@import { ColorScheme } from "../theme/colorScheme"import { withOpacity } from "../theme/color"import { background, border, foreground, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"import { toggleable } from "./toggle"export default function search(colorScheme: ColorScheme) {diff --git a/styles/src/styleTree/simpleMessageNotification.ts b/styles/src/styleTree/simpleMessageNotification.tsindex 4c2abfcf9d6..404be2da7ea 100644--- a/styles/src/styleTree/simpleMessageNotification.ts+++ b/styles/src/styleTree/simpleMessageNotification.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { background, border, foreground, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"const headerPadding = 8diff --git a/styles/src/styleTree/statusBar.ts b/styles/src/styleTree/statusBar.tsindex ee78f5e6b31..30f933de8c1 100644--- a/styles/src/styleTree/statusBar.ts+++ b/styles/src/styleTree/statusBar.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { background, border, foreground, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"import { toggleable } from "./toggle"export default function statusBar(colorScheme: ColorScheme) {let layer = colorScheme.lowestdiff --git a/styles/src/styleTree/tabBar.ts b/styles/src/styleTree/tabBar.tsindex 8011a707727..ae2d14bfd62 100644--- a/styles/src/styleTree/tabBar.ts+++ b/styles/src/styleTree/tabBar.ts@@ -2,7 +2,7 @@ import { ColorScheme } from "../theme/colorScheme"import { withOpacity } from "../theme/color"import { text, border, background, foreground } from "./components"import { toggleable } from "./toggle"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function tabBar(colorScheme: ColorScheme) {const height = 32diff --git a/styles/src/styleTree/toolbarDropdownMenu.ts b/styles/src/styleTree/toolbarDropdownMenu.tsindex 0bb3958dc87..bb3e8eda0c8 100644--- a/styles/src/styleTree/toolbarDropdownMenu.ts+++ b/styles/src/styleTree/toolbarDropdownMenu.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { background, border, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"import { toggleable } from "./toggle"export default function dropdownMenu(colorScheme: ColorScheme) {let layer = colorScheme.middlediff --git a/styles/src/styleTree/updateNotification.ts b/styles/src/styleTree/updateNotification.tsindex a7a5aaabaa8..0cef7fa805e 100644--- a/styles/src/styleTree/updateNotification.ts+++ b/styles/src/styleTree/updateNotification.ts@@ -1,6 +1,6 @@import { ColorScheme } from "../theme/colorScheme"import { foreground, text } from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"const headerPadding = 8diff --git a/styles/src/styleTree/welcome.ts b/styles/src/styleTree/welcome.tsindex f0e4badf3f8..a0d599b7477 100644--- a/styles/src/styleTree/welcome.ts+++ b/styles/src/styleTree/welcome.ts@@ -8,7 +8,7 @@ import {TextProperties,svg,} from "./components"-import { interactive } from "../element/interactive"+import { interactive } from "../element"export default function welcome(colorScheme: ColorScheme) {let layer = colorScheme.highestdiff --git a/styles/src/styleTree/workspace.ts b/styles/src/styleTree/workspace.tsindex fa2d337592b..1045be1a9af 100644--- a/styles/src/styleTree/workspace.ts+++ b/styles/src/styleTree/workspace.ts@@ -11,7 +11,7 @@ import {} from "./components"import statusBar from "./statusBar"import tabBar from "./tabBar"-import { interactive } from "../element/interactive"+import { interactive } from "../element"import merge from 'ts-deepmerge';export default function workspace(colorScheme: ColorScheme) {const layer = colorScheme.lowestdiff --git a/styles/tsconfig.json b/styles/tsconfig.jsonindex 6d24728a0a9..051626adbc3 100644--- a/styles/tsconfig.json+++ b/styles/tsconfig.json@@ -20,7 +20,33 @@"noFallthroughCasesInSwitch": false,"experimentalDecorators": true,"strictPropertyInitialization": false,- "skipLibCheck": true+ "skipLibCheck": true,+ "baseUrl": ".",+ "paths": {+ "@/*": [+ "./*"+ ],+ "@element/*": [+ "./src/element/*"+ ],+ "@component/*": [+ "./src/component/*"+ ],+ "@styleTree/*": [+ "./src/styleTree/*"+ ],+ "@theme/*": [+ "./src/theme/*"+ ],+ "@themes/*": [+ "./src/themes/*"+ ],+ "@util/*": [+ "./src/util/*"+ ]+ }},- "exclude": ["node_modules"]+ "exclude": [+ "node_modules"+ ]}