✨ feat(vscode): 设置可关新开终端分屏
This commit is contained in:
1 parent
7463113170
commit
ffae9ce2b8
11 files changed
+66
-7
No files matched your search
@@ -159,6 +159,10 @@ export interface Settings {
|
||||
* Same env vars as the worktree hooks.
|
||||
*/
|
||||
implTabPostCloseScript: string
|
||||
/**
|
||||
* 新开会话终端是否分到右侧一栏。关掉则在当前编辑组加标签,适合小屏。
|
||||
*/
|
||||
splitNewTerminals: boolean
|
||||
/**
|
||||
* YouTrack instance base URL (e.g. `https://ziwuxian.youtrack.cloud`). Empty
|
||||
* string means "YouTrack source disabled" — the loader returns no issues.
|
||||
@@ -264,6 +268,7 @@ function defaults(ctx: ExtensionContext): Settings {
|
||||
worktreePreRemoveScript: '',
|
||||
implTabPreCreateScript: '',
|
||||
implTabPostCloseScript: '',
|
||||
splitNewTerminals: true,
|
||||
youtrackBaseUrl: '',
|
||||
youtrackProjectShortName: '',
|
||||
youtrackCloseCommand: '',
|
||||
@@ -350,6 +355,9 @@ export function getSettings(ctx: ExtensionContext): Settings {
|
||||
const implTabPostCloseScript = typeof stored.implTabPostCloseScript === 'string'
|
||||
? stored.implTabPostCloseScript
|
||||
: base.implTabPostCloseScript
|
||||
const splitNewTerminals = typeof stored.splitNewTerminals === 'boolean'
|
||||
? stored.splitNewTerminals
|
||||
: base.splitNewTerminals
|
||||
// YouTrack config: '' is meaningful (= "source disabled" / "auto-detect close
|
||||
// command"), so don't coerce. Non-string legacy values collapse to ''.
|
||||
const youtrackBaseUrl = typeof stored.youtrackBaseUrl === 'string'
|
||||
@@ -405,6 +413,7 @@ export function getSettings(ctx: ExtensionContext): Settings {
|
||||
worktreePreRemoveScript,
|
||||
implTabPreCreateScript,
|
||||
implTabPostCloseScript,
|
||||
splitNewTerminals,
|
||||
youtrackBaseUrl,
|
||||
youtrackProjectShortName,
|
||||
youtrackCloseCommand,
|
||||
|
||||
Reference in new issue
Block a user