Skip to content
Open
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
8 changes: 8 additions & 0 deletions test/standard-mode-suite/publicApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ suite('Public APIs - Standard', () => {

test('getProjectSettings should work', async function () {
const api: ExtensionAPI = extensions.getExtension('redhat.java').exports;

await new Promise<void>((resolve) => {
api.onDidProjectsImport(() => {
resolve();
});
commands.executeCommand(Commands.IMPORT_PROJECTS_CMD);
});

const projectSetting: {} = await api.getProjectSettings(
Uri.file(constants.projectFsPath).toString(),
['org.eclipse.jdt.core.compiler.compliance', 'org.eclipse.jdt.core.compiler.source'],
Expand Down
Loading