Skip to content

Commit

Permalink
fixup! feat: add Logger and Manager dependencies to Commander and Sni…
Browse files Browse the repository at this point in the history
…ppetView constructors
  • Loading branch information
tamuratak committed Jan 30, 2025
1 parent 7aaf614 commit 426bbbb
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/commander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export class Commander {
readonly section: Section,
readonly viewer: Viewer
}) {
this.extension = extension
this._texdoc = new TeXDoc(extension)
}

Expand Down
1 change: 0 additions & 1 deletion src/components/commander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class LaTeXCommanderProvider implements vscode.TreeDataProvider<LaTeXCommand> {
readonly extensionContext: vscode.ExtensionContext,
readonly manager: Manager
}) {
this.extension = extension
this.onDidChangeTreeData = this.treeDataEventEmitter.event
extension.extensionContext.subscriptions.push(
vscode.workspace.onDidChangeConfiguration((ev: vscode.ConfigurationChangeEvent) => {
Expand Down
1 change: 0 additions & 1 deletion src/components/duplicatelabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export class DuplicateLabels {
readonly logger: Logger,
readonly manager: Manager
}) {
this.extension = extension
this.extension.eventBus.completionUpdated.event((file: string) => {
const configuration = vscode.workspace.getConfiguration('latex-toybox')
if (configuration.get('check.duplicatedLabels.enabled')) {
Expand Down
1 change: 0 additions & 1 deletion src/components/locator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class Locator {
readonly manager: Manager,
readonly viewer: Viewer
}) {
this.extension = extension
this.synctexjs = new SyncTexJs(extension)
}

Expand Down
1 change: 0 additions & 1 deletion src/components/viewerlib/pdfviewerpanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export class PdfViewerPanelSerializer implements vscode.WebviewPanelSerializer {
panelService: PdfViewerPanelService,
service: PdfViewerManagerService
) {
this.extension = extension
this.panelService = panelService
this.managerService = service
}
Expand Down
1 change: 0 additions & 1 deletion src/providers/atsuggestionlib/atsuggestion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class AtSuggestion implements IProvider {
},
triggerCharacter: string
) {
this.extension = extension
this.triggerCharacter = triggerCharacter
this.escapedTriggerCharacter = escapeRegExp(this.triggerCharacter)

Expand Down

0 comments on commit 426bbbb

Please sign in to comment.