-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32667 from vespa-engine/interns/magnus/servicesxml
Interns/magnus/servicesxml
- Loading branch information
Showing
6 changed files
with
132 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...er/src/main/java/ai/vespa/schemals/lsp/common/command/commandtypes/HasSetupWorkspace.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package ai.vespa.schemals.lsp.common.command.commandtypes; | ||
|
||
import java.util.List; | ||
|
||
import ai.vespa.schemals.context.EventExecuteCommandContext; | ||
|
||
public class HasSetupWorkspace implements SchemaCommand { | ||
|
||
@Override | ||
public int getArity() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public boolean setArguments(List<Object> arguments) { | ||
assert arguments.size() == getArity(); | ||
return true; | ||
} | ||
|
||
@Override | ||
public Object execute(EventExecuteCommandContext context) { | ||
return Boolean.valueOf(context.scheduler.getWorkspaceURI() != null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters