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

test completion on files with spaces #51

Merged
merged 1 commit into from
Feb 15, 2022
Merged
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
test completion on files with spaces
llibarona committed Feb 15, 2022
commit f9175934612c9f1e678cc3a6d54858e1a68c1d0b
9 changes: 9 additions & 0 deletions src/test/e2e/completion.test.ts
Original file line number Diff line number Diff line change
@@ -47,6 +47,15 @@ suite('Should do completion', async function () {
});
});


test('Complete encoded RAML file inclusion', async () => {
const docUri = getDocUri('with space api.raml');
await testCompletion(docUri, new vscode.Position(3, 11), {
items: [
{ label: 'with space library.raml', kind: vscode.CompletionItemKind.Property }
]
});
});
});

async function testCompletion(
4 changes: 4 additions & 0 deletions testFixture/with space api.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#%RAML 1.0

uses:
lib: w
3 changes: 3 additions & 0 deletions testFixture/with space library.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#%RAML 1.0 Library
types:
t: string