Skip to content

Commit 0186685

Browse files
authored
feat: fallback to latest supported patch version (#687)
* fix: fallback to latest supported patch version * fix: function docs and pr comments * fix: readme file correction * fix: work on pr comments * fix: linter
1 parent 4b2f1ee commit 0186685

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1270
-553
lines changed

.changeset/cool-days-itch.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@ui5-language-assistant/xml-views-completion": patch
3+
"@ui5-language-assistant/xml-views-validation": patch
4+
"@ui5-language-assistant/xml-views-tooltip": patch
5+
"@ui5-language-assistant/language-server": patch
6+
"@ui5-language-assistant/test-utils": patch
7+
"@ui5-language-assistant/semantic-model": patch
8+
"@ui5-language-assistant/logic-utils": patch
9+
"@ui5-language-assistant/context": patch
10+
"vscode-ui5-language-assistant": patch
11+
"@ui5-language-assistant/vscode-ui5-language-assistant-bas-ext": patch
12+
---
13+
14+
Fallback to the latest supported patch version

.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"args": [
5050
"${fileBasenameNoExtension}",
5151
"--coverage=false",
52+
"--maxWorkers=1",
5253
"--config",
5354
"jest.config.js"
5455
],
@@ -68,6 +69,7 @@
6869
"args": [
6970
"${fileBasenameNoExtension}",
7071
"--coverage=false",
72+
"--maxWorkers=1",
7173
"--config",
7274
"jest.config.js"
7375
],
@@ -87,6 +89,7 @@
8789
"args": [
8890
"${fileBasenameNoExtension}",
8991
"--coverage=false",
92+
"--maxWorkers=1",
9093
"--config",
9194
"jest.config.js"
9295
],
@@ -106,6 +109,7 @@
106109
"args": [
107110
"${fileBasenameNoExtension}",
108111
"--coverage=false",
112+
"--maxWorkers=1",
109113
"--config",
110114
"jest.config.js"
111115
],
@@ -117,6 +121,26 @@
117121
},
118122
"cwd": "${workspaceFolder}/packages/xml-views-validation"
119123
},
124+
{
125+
"type": "node",
126+
"request": "launch",
127+
"name": "XML completion: Run Current Jest File",
128+
"program": "${workspaceFolder}/node_modules/.bin/jest",
129+
"args": [
130+
"${fileBasenameNoExtension}",
131+
"--coverage=false",
132+
"--maxWorkers=1",
133+
"--config",
134+
"jest.config.js"
135+
],
136+
"console": "integratedTerminal",
137+
"internalConsoleOptions": "neverOpen",
138+
"disableOptimisticBPs": true,
139+
"windows": {
140+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
141+
},
142+
"cwd": "${workspaceFolder}/packages/xml-views-completion"
143+
},
120144
{
121145
"type": "node",
122146
"request": "launch",
@@ -125,6 +149,7 @@
125149
"args": [
126150
"${fileBasenameNoExtension}",
127151
"--coverage=false",
152+
"--maxWorkers=1",
128153
"--config",
129154
"jest.config.js"
130155
],
@@ -144,6 +169,7 @@
144169
"args": [
145170
"${fileBasenameNoExtension}",
146171
"--coverage=false",
172+
"--maxWorkers=1",
147173
"--config",
148174
"jest.config.js"
149175
],
@@ -163,6 +189,7 @@
163189
"args": [
164190
"${fileBasenameNoExtension}",
165191
"--coverage=false",
192+
"--maxWorkers=1",
166193
"--config",
167194
"jest.config.js"
168195
],

packages/context/src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { FetchResponse } from "@ui5-language-assistant/logic-utils";
88

99
export const DEFAULT_UI5_FRAMEWORK = "SAPUI5";
1010
export const DEFAULT_UI5_VERSION = "1.71.61";
11+
export const DEFAULT_UI5_VERSION_BASE = "1.71";
1112
export const UI5_VERSION_S4_PLACEHOLDER = "${sap.ui5.dist.version}";
1213
export const UI5_FRAMEWORK_CDN_BASE_URL = {
1314
OpenUI5: "https://sdk.openui5.org/",
@@ -113,4 +114,4 @@ export type CAPProjectKind = "Java" | "NodeJS";
113114
export type ProjectKind = CAPProjectKind | "UI5";
114115
export type Project = UI5Project | CAPProject;
115116
export type ProjectType = typeof UI5_PROJECT_TYPE | typeof CAP_PROJECT_TYPE;
116-
export type Fetcher = (url: string) => Promise<FetchResponse>;
117+
export type Fetcher<T = unknown> = (url: string) => Promise<FetchResponse<T>>;

0 commit comments

Comments
 (0)