Skip to content

Commit

Permalink
Replace Infinite scrolling behavior with Auto-Append behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
haydar-metin committed Feb 28, 2024
1 parent d1400a1 commit f3e03e3
Show file tree
Hide file tree
Showing 10 changed files with 323 additions and 102 deletions.
11 changes: 11 additions & 0 deletions media/options-widget.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
row-gap: 12px;
}

.form-textfield {
position: relative;
padding-bottom: 16px;
}

.form-textfield > input {
width: 150px;
}
Expand All @@ -81,6 +86,12 @@
align-self: start;
}

.form-options-memory-read-argument-hint {
position: absolute;
bottom: 0;
color: var(--vscode-descriptionForeground);
}

.advanced-options-content h2 {
font-size: 120%;
margin: 0.5rem 0 0 0;
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@vscode/codicons": "^0.0.32",
"fast-deep-equal": "^3.1.3",
"formik": "^2.4.5",
"lodash": "^4.17.21",
"memoize-one": "^6.0.0",
"primeflex": "^3.3.1",
"primereact": "^10.3.1",
Expand All @@ -45,6 +46,7 @@
"vscode-messenger-webview": "^0.4.3"
},
"devDependencies": {
"@types/lodash": "4.14.202",
"@types/node": "^12.20.0",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
Expand Down Expand Up @@ -210,12 +212,12 @@
"type": "string",
"enum": [
"Paginate",
"Infinite"
"Auto-Append"
],
"default": "Paginate",
"enumDescriptions": [
"Maintains a consistent memory size, replacing the previous request.",
"Appends new memory to bounds of current request, resulting in a growing list."
"Appends new memory to the bounds of the current request on reaching the end of the list, resulting in a growing list."
],
"description": "Behavior when adding more memory beyond the current view."
},
Expand Down Expand Up @@ -251,4 +253,4 @@
"extensionKind": [
"ui"
]
}
}
23 changes: 23 additions & 0 deletions src/common/typescript.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/********************************************************************************
* Copyright (C) 2024 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

import { isPlainObject } from 'lodash';

export type RequiredKey<T, K extends keyof T> = T & { [P in K]-?: T[P] };

export function isPlainObjectType(arg: unknown): arg is object {
return isPlainObject(arg);
}
Loading

0 comments on commit f3e03e3

Please sign in to comment.