Skip to content

Commit 4dceabb

Browse files
feat: fixed src/execute-handler.ts for testing
- issue visible in [pr #61](https://github.com/ndonfris/fish-lsp/pull/61/files) Co-authored-by: branchvincent <[email protected]>
1 parent 4e03925 commit 4dceabb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/execute-handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ export async function sourceFishBuffer(bufferName: string) {
123123
}
124124

125125
export async function FishThemeDump() {
126-
return (await execAsyncFish('fish_config theme dump')).stdout.split('\n');
126+
return (await execAsyncFish('fish_config theme dump; or true')).stdout.split('\n');
127127
}
128128

129129
export async function showCurrentTheme(buffName: string) {
130-
const output = (await execAsyncFish('fish_config theme demo')).stdout.split('\n');
130+
const output = (await execAsyncFish('fish_config theme demo; or true')).stdout.split('\n');
131131
// Append the longest line to the file
132132
for (const line of output) {
133133
appendFileSync(buffName, `${line}\n`, 'utf8');
@@ -147,7 +147,7 @@ const defaultThemeOptions: ThemeOptions = {
147147
};
148148

149149
export async function executeThemeDump(buffName: string, options: ThemeOptions = defaultThemeOptions): Promise<ExecResultWrapper> {
150-
const output = (await execAsyncFish('fish_config theme dump')).stdout.split('\n');
150+
const output = (await execAsyncFish('fish_config theme dump; or true')).stdout.split('\n');
151151
// Append the longest line to the file
152152
if (options.asVariables) {
153153
appendFileSync(buffName, '# created by fish-lsp');

0 commit comments

Comments
 (0)