Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format XQL not printable #32

Closed
ThomasPerraudin opened this issue Jun 21, 2019 · 13 comments
Closed

Format XQL not printable #32

ThomasPerraudin opened this issue Jun 21, 2019 · 13 comments

Comments

@ThomasPerraudin
Copy link

I can't print a .xql format.
Althought it may be an 'exotic' file format, I need to print it, at least in black & white.

@PeterWone
Copy link
Collaborator

Sample?

@ThomasPerraudin
Copy link
Author

sample ?

  • create a tests.xql file with random content
  • open with VS Code
  • the print icon is missing

@PeterWone
Copy link
Collaborator

Okay I can reproduce that. This is fundamentally the same problem as #31 and the workaround is the same: paste content of interest into an open file of recognised type - a text file. Or you could rename the file then rename it back after printing. I'm still trying to figure out how to deal with this one as the problem is actually in the way VS Code manages toolbars and menus.

@ThomasPerraudin
Copy link
Author

Sad :(
Actually this workaround is not acceptable for me. I am printing files as evidences and I must keep real names in printed headers.

@PeterWone
Copy link
Collaborator

As I said, it's under active consideration. I will give it serious thought this weekend. Can you wait that long?

Incidentally, if you can spare the time would you mind having a look at readme.fra.md and manual.fra.md? French is a second language for me so the quality of translation will be poor.

@PeterWone
Copy link
Collaborator

PeterWone commented Jun 21, 2019

I think I can help you out, although it's not a solution fit for production.

In the package.json file around line 140 you will find this

		"menus": {
			"explorer/context": [
				{
					"when": "resourceLangId",
					"command": "extension.print",
					"group": "navigation"
				}
			],

If you remove the when property then the print icon will always appear. Beware that if you click it and there is no active editor it will probably crash.

For an installed extension the path will be something like this
C:\Users\your-profile-name\.vscode\extensions\pdconsec.vscode-print-0.7.4\package.json

@ThomasPerraudin
Copy link
Author

Arg it doesn't work. Your French files are not perfect but it's ok.

@PeterWone
Copy link
Collaborator

I believe I have found a fix here PowerShell/vscode-powershell#1475

It looks like the same problem and I have just tested it on an xql file with success. It also appears to address #31 so I will roll out an update ASAP.

@PeterWone
Copy link
Collaborator

PeterWone commented Jun 21, 2019

Please let me know if this solves your problem by closing this issue. After you do, 0.7.6 will be out shortly with the updated readme and changelog but you don't need that update.

@ThomasPerraudin
Copy link
Author

It works ! Thank you very much !

@PeterWone
Copy link
Collaborator

I'm looking for a French native speaker to handle translation. Perhaps you know someone who would like to be involved. I can read French but I'm horrible at writing it.

@ThomasPerraudin
Copy link
Author

I am personaly too busy for that but I know a professional translator if you want.

@PeterWone
Copy link
Collaborator

PeterWone commented Jun 21, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants