Skip to content

Commit

Permalink
Merge pull request #158 from PDConSec:feature/better-logging-printing…
Browse files Browse the repository at this point in the history
…-remote-file

Feature/better-logging-printing-remote-file
  • Loading branch information
PeterWone authored Oct 2, 2022
2 parents 85ca541 + c9f8517 commit b9e63b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

### 0.10.7

- Urdu localisation
- Enhanced debug logging of printing files from remote filesystems
- Fix typo in internal identifier for Atelier Sulphur
Pool colour scheme

### 0.10.4

- Fixed an issue preventing the selected colour scheme from being applied
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-print",
"displayName": "Print",
"description": "Rendered Markdown, coloured code.",
"version": "0.10.6",
"version": "0.10.7",
"icon": "assets/vscode-print-128.png",
"author": {
"name": "Peter Wone",
Expand Down
16 changes: 8 additions & 8 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ function openDoc(doc: string) {

const checkConfigurationChange = (e: vscode.ConfigurationChangeEvent) => {
if (e.affectsConfiguration('print.editorContextMenuItemPosition')) {
vscode.commands.executeCommand(
"setContext", "ecmPrint",
vscode.workspace.getConfiguration("print", null)
.get('editorContextMenuItemPosition'));
const ecmip = vscode.workspace.getConfiguration("print")
.editorContextMenuItemPosition as string;
logger.info(`editorContextMenuItemPosition set to ${ecmip}`)
vscode.commands.executeCommand("setContext", "ecmPrint", ecmip);
}
else if (e.affectsConfiguration('print.editorTitleMenuButton')) {
vscode.commands.executeCommand(
"setContext", "etmButton",
vscode.workspace.getConfiguration("print", null)
.get<boolean>('editorTitleMenuButton'));
const etmb = vscode.workspace.getConfiguration("print", null)
.get<boolean>('editorTitleMenuButton');
logger.info(`editorTitleMenuButton set to ${etmb}`);
vscode.commands.executeCommand("setContext", "etmButton", etmb);
}
};

Expand Down

0 comments on commit b9e63b7

Please sign in to comment.