From 4e364a5c7b01a173af2f7b8c094840080bed4ace Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 4 Feb 2025 06:50:57 -0800 Subject: [PATCH] Add issue references --- .../src/test/completions/upstream/ls.test.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/extensions/terminal-suggest/src/test/completions/upstream/ls.test.ts b/extensions/terminal-suggest/src/test/completions/upstream/ls.test.ts index 33bb80d8822..e8f0b7de7b5 100644 --- a/extensions/terminal-suggest/src/test/completions/upstream/ls.test.ts +++ b/extensions/terminal-suggest/src/test/completions/upstream/ls.test.ts @@ -52,13 +52,13 @@ const allOptions = [ '-x', ]; -export function removeEntry(array: T[], element: T): T[] { - const index = array.indexOf(element); - if (index > -1) { - array.splice(index, 1); - } - return array; -} +// function removeEntry(array: T[], element: T): T[] { +// const index = array.indexOf(element); +// if (index > -1) { +// array.splice(index, 1); +// } +// return array; +// } export const lsTestSuiteSpec: ISuiteSpec = { name: 'ls', @@ -74,7 +74,7 @@ export const lsTestSuiteSpec: ISuiteSpec = { // Basic options // TODO: The spec wants file paths and folders (which seems like it should only be folders), - // but neither are requested + // but neither are requested https://github.com/microsoft/vscode/issues/239606 { input: 'ls |', expectedCompletions: allOptions, expectedResourceRequests: undefined }, // { type: 'folders', cwd: testPaths.cwd } { input: 'ls -|', expectedCompletions: allOptions, expectedResourceRequests: undefined }, // { type: 'folders', cwd: testPaths.cwd } @@ -82,7 +82,7 @@ export const lsTestSuiteSpec: ISuiteSpec = { { input: 'ls -a|', expectedCompletions: allOptions, expectedResourceRequests: undefined }, // { type: 'folders', cwd: testPaths.cwd } // Duplicate option - // TODO: Duplicate options should not be presented + // TODO: Duplicate options should not be presented https://github.com/microsoft/vscode/issues/239607 // { input: 'ls -a -|', expectedCompletions: removeEntry(allOptions, '-a'), expectedResourceRequests: undefined }, // { type: 'folders', cwd: testPaths.cwd } // Relative paths