Skip to content

Commit

Permalink
fix invalid jar alert, solve #147
Browse files Browse the repository at this point in the history
  • Loading branch information
qjebbs committed Mar 14, 2019
1 parent 7f049ab commit 26041d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plantuml/intellisense/languageCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function getLanguageWords(): Promise<LanguageWord[]> {
let params = [
'-Djava.awt.headless=true',
'-jar',
// FIXME: this would cause false alarm of invalid jar, if user has jar setting in workspace.
config.jar(null),
"-language",
];
Expand Down Expand Up @@ -83,7 +84,7 @@ function processWords(value: string): LanguageWord[] {
export async function LanguageCompletionItems(): Promise<vscode.CompletionItem[]> {
if (cachedItems !== undefined)
return Promise.resolve(cachedItems);
let words = await getLanguageWords();
let words = processWords(preDefinedWords);
cachedItems = words.map(word => {

const item = new vscode.CompletionItem(word.label, word.kind);
Expand Down

0 comments on commit 26041d7

Please sign in to comment.