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
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
9 changes: 9 additions & 0 deletions src/test/e2e/completion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
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