Skip to content

Commit b691648

Browse files
authored
feat: Add support for VS Code 1.99 (#1835)
1 parent 299bf7e commit b691648

File tree

8 files changed

+61
-32
lines changed

8 files changed

+61
-32
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
version: [min, 1.97.2, max]
20+
version: [min, 1.98.2, max]
2121
uses: ./.github/workflows/template-main.yaml
2222
with:
2323
version: ${{ matrix.version }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
| NodeJS | Visual Studio Code | Operating System |
4242
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
43-
| <table style="text-align:center;"> <tr><th>20.x.x</th><th>LTS</th><th>Latest</th></tr><tr><td>✅</td><td>✅❓</td><td>✅❓</td></tr><tr><td colspan="3">❓ Best-effort</td></tr> </table> | <table style="text-align:center;"> <tr><th>min</th><th>-</th><th>max</th></tr><tr><td>1.96.x</td><td>1.97.x</td><td>1.98.x</td></tr> </table> | <table style="text-align:center;"> <tr><th>Linux</th><th>Windows</th><th>macOS</th></tr><tr><td>✅ ⚠️</td><td>✅</td><td>✅ ⚠️</td></tr><tr><td colspan="3">⚠️ [Known Issues](KNOWN_ISSUES.md)</td></tr> </table> |
43+
| <table style="text-align:center;"> <tr><th>20.x.x</th><th>LTS</th><th>Latest</th></tr><tr><td>✅</td><td>✅❓</td><td>✅❓</td></tr><tr><td colspan="3">❓ Best-effort</td></tr> </table> | <table style="text-align:center;"> <tr><th>min</th><th>-</th><th>max</th></tr><tr><td>1.97.x</td><td>1.98.x</td><td>1.99.x</td></tr> </table> | <table style="text-align:center;"> <tr><th>Linux</th><th>Windows</th><th>macOS</th></tr><tr><td>✅ ⚠️</td><td>✅</td><td>✅ ⚠️</td></tr><tr><td colspan="3">⚠️ [Known Issues](KNOWN_ISSUES.md)</td></tr> </table> |
4444

4545
#### NodeJS Support Policy
4646

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@types/node": "^22.14.0",
3333
"@types/selenium-webdriver": "^4.1.28",
3434
"@types/targz": "^1.0.5",
35-
"@types/vscode": "^1.94.0",
35+
"@types/vscode": "^1.97.0",
3636
"@typescript-eslint/eslint-plugin": "^8.29.1",
3737
"@typescript-eslint/parser": "^8.29.1",
3838
"eslint": "^9.24.0",

packages/extester/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"ui-test"
5353
],
5454
"supportedVersions": {
55-
"vscode-min": "1.96.4",
56-
"vscode-max": "1.98.2",
55+
"vscode-min": "1.97.2",
56+
"vscode-max": "1.99.1",
5757
"nodejs": "20"
5858
},
5959
"dependencies": {

packages/locators/lib/1.99.0.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License", destination); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* https://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
import { By, LocatorDiff } from '@redhat-developer/page-objects';
19+
20+
export const diff: LocatorDiff = {
21+
locators: {
22+
ExtensionsViewItem: {
23+
author: By.className('publisher'),
24+
},
25+
},
26+
};

tests/test-project/package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"directory": "tests/test-project"
1616
},
1717
"engines": {
18-
"vscode": "^1.85.0"
18+
"vscode": "^1.97.0"
1919
},
2020
"categories": [
2121
"Other",
@@ -131,27 +131,32 @@
131131
"explorer": [
132132
{
133133
"id": "testView",
134-
"name": "Test View"
134+
"name": "Test View",
135+
"icon": "icons/logo.png"
135136
},
136137
{
137138
"id": "testView2",
138-
"name": "Test View 2"
139+
"name": "Test View 2",
140+
"icon": "icons/logo.png"
139141
},
140142
{
141143
"id": "emptyView",
142-
"name": "Empty View"
144+
"name": "Empty View",
145+
"icon": "icons/logo.png"
143146
},
144147
{
145148
"id": "mySidePanelView",
146149
"name": "My Side Panel View",
147-
"type": "webview"
150+
"type": "webview",
151+
"icon": "icons/logo.png"
148152
}
149153
],
150154
"myPanel": [
151155
{
152156
"id": "myPanelView",
153157
"name": "My Panel View",
154-
"type": "webview"
158+
"type": "webview",
159+
"icon": "icons/logo.png"
155160
}
156161
]
157162
},
@@ -249,8 +254,6 @@
249254
"ui-test:coverage": "MOCHA_GREP='order|clipboard|ExtensionsView|TitleBar' MOCHA_INVERT=true extest setup-and-run './out/test/**/*.test.js' -i -r . -e ./test-extensions --coverage"
250255
},
251256
"devDependencies": {
252-
"@types/chai": "^4.3.16",
253-
"@types/vscode": "^1.85.0",
254257
"chai": "^4.5.0",
255258
"clipboard-cli": "^4.0.0",
256259
"clipboardy": "^4.0.0",

tests/test-project/src/test/webview/webView.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ describe('WebViews', function () {
2626
this.timeout(8000);
2727
await new Workbench().executeCommand('Webview Test Column 1');
2828
await new Promise((res) => {
29-
setTimeout(res, 500);
29+
setTimeout(res, 1_000);
3030
});
3131
view = new WebView();
32-
await view.switchToFrame();
32+
await view.switchToFrame(5_000);
3333
});
3434

3535
after(async function () {
@@ -65,7 +65,7 @@ describe('WebViews', function () {
6565
for (let i = 0; i < 3; i++) {
6666
await workbench.executeCommand(`Webview Test Column ${i + 1}`);
6767
await new Promise((res) => {
68-
setTimeout(res, 500);
68+
setTimeout(res, 1_000);
6969
});
7070
}
7171

@@ -91,7 +91,7 @@ describe('WebViews', function () {
9191
describe(`WebView ${i}`, function () {
9292
before(async function () {
9393
view = new WebView(editorGroups[i]);
94-
await view.switchToFrame();
94+
await view.switchToFrame(5_000);
9595
});
9696

9797
after(async function () {
@@ -126,7 +126,7 @@ describe('WebViews', function () {
126126
for (let i = 0; i < 3; i++) {
127127
await workbench.executeCommand('Webview Test Column 1');
128128
await new Promise((res) => {
129-
setTimeout(res, 500);
129+
setTimeout(res, 1_000);
130130
});
131131
}
132132

@@ -137,7 +137,7 @@ describe('WebViews', function () {
137137
before(async function () {
138138
await new EditorView().openEditor(tabs[i]);
139139
view = new WebView();
140-
await view.switchToFrame();
140+
await view.switchToFrame(5_000);
141141
});
142142
it('findWebElement works', async function () {
143143
const element = await view.findWebElement(By.css('h1'));

0 commit comments

Comments
 (0)