Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

FUSETOOLS2-2311 - fix tests with VS Code 1.86+ #1814

Merged
merged 1 commit into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/OtherOSes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest]
version: ["1.85.2"] # [x.x.x | latest | max]
version: ["1.85.2", max] # [x.x.x | latest | max]
type: [stable] # [stable | insider]
fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
version: ["1.85.2"] # [x.x.x | latest | max]
version: ["1.85.2", max] # [x.x.x | latest | max]
type: [stable] # [stable | insider]
fail-fast: false

Expand Down
3 changes: 2 additions & 1 deletion src/test/suite/completion.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export async function checkExpectedCompletion(docUri: vscode.Uri, position: vsco
const actualCompletionList = value as vscode.CompletionList;
lastCompletionList = actualCompletionList;
const completionItemFound = actualCompletionList.items.find(completion => {
return completion.label.toString() === expectedCompletion.label.toString()
return (completion.label.toString() === expectedCompletion.label.toString()
|| completion.label.toString() === (expectedCompletion.label as vscode.CompletionItemLabel).label)
&& completion.documentation === expectedCompletion.documentation
&& (expectedCompletion.insertText === undefined || completion.insertText === expectedCompletion.insertText);
});
Expand Down
Loading