This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#19 added askEnableCheckProcedureDocumentation
- Loading branch information
Christoph Krieg
committed
Jul 24, 2020
1 parent
a9abadc
commit 26975b2
Showing
4 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { workspace, window } from "vscode"; | ||
|
||
export class CheckConfiguration { | ||
constructor() { | ||
this.AskEnableCheckProcedureDocumentation(); | ||
} | ||
|
||
private AskEnableCheckProcedureDocumentation() { | ||
if (workspace.getConfiguration("bdev-al-xml-doc").askEnableCheckProcedureDocumentation) { | ||
if (workspace.getConfiguration("bdev-al-xml-doc").inspect('checkProcedureDocumentation')?.workspaceValue) { | ||
return; // do not ask again | ||
} | ||
|
||
window.showInformationMessage('Do you want to enable AL XML Documentation procedure check for this workspace?', ...['Yes', 'No']).then(answer => { | ||
if (answer === undefined) { | ||
return; | ||
} | ||
workspace.getConfiguration("bdev-al-xml-doc").update('checkProcedureDocumentation', (answer === "Yes")); | ||
}); | ||
} | ||
} | ||
|
||
public dispose() { | ||
} | ||
} |
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