mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 07:07:54 +03:00
Fix undefined client send pdf position query. #4
This commit is contained in:
parent
eafa2206d9
commit
7411086fc7
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [0.2.2] - 2017-01-13
|
||||
### Fixed
|
||||
- (#4) Compile throw error on sending websocket message with undefined client.
|
||||
|
||||
## [0.2.1] - 2017-01-12
|
||||
### Changed
|
||||
- In browser PDF preview URL.
|
||||
@ -27,7 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [0.1.10] - 2017-01-09
|
||||
### Changed
|
||||
- Use HTML data to store PDF position before compilation.
|
||||
- (#2) Use HTML data to store PDF position before compilation.
|
||||
- The PDF position can be restored after compilation instead of previous SyncTeX method.
|
||||
|
||||
## [0.1.9] - 2017-01-05
|
||||
@ -59,7 +63,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
- Right click text editor for compile option.
|
||||
|
||||
### Changed
|
||||
- Compile and preview will search for main tex document for processing.
|
||||
- (#1) Compile and preview will search for main tex document for processing.
|
||||
- Main document is determined by "\begin{document}" string.
|
||||
- If the current active file has this string, it is set to the main document.
|
||||
- Otherwise, all .tex files under the root of the opened folder is checked. The first one with this string is the main document.
|
||||
|
@ -3,7 +3,7 @@
|
||||
"displayName": "LaTeX Workshop",
|
||||
"description": "AIO LaTeX extension to preview, compile, autocomplete, colorize, and more.",
|
||||
"icon": "img/icon.png",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"publisher": "James-Yu",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/James-Yu/LaTeX-Workshop",
|
||||
|
@ -244,7 +244,8 @@ function parseSyncTex(out: string) {
|
||||
}
|
||||
|
||||
export function getPreviewPosition() {
|
||||
client.send(JSON.stringify({type:"get_position"}));
|
||||
if (client != undefined)
|
||||
client.send(JSON.stringify({type:"get_position"}));
|
||||
}
|
||||
|
||||
export class previewProvider implements vscode.TextDocumentContentProvider {
|
||||
|
Loading…
Reference in New Issue
Block a user