Skip to content

Commit

Permalink
Merge branch 'master' into a
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoon authored Dec 29, 2018
2 parents 07a306b + 43fd090 commit 85bd93c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cmd_line/subparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const commandParsers = {
vne: fileCmd.parseEditNewFileInNewVerticalWindowCommandArgs,
vnew: fileCmd.parseEditNewFileInNewVerticalWindowCommandArgs,

on: parseOnlyCommandArgs,
only: parseOnlyCommandArgs,

set: parseOptionsCommandArgs,
Expand Down
7 changes: 6 additions & 1 deletion src/util/vscode-context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import * as vscode from 'vscode';

export class VsCodeContextImpl {
/**
* Wrapper around VS Code's `setContext`.
* The API call takes several milliseconds to seconds to complete,
* so let's cache the values and only call the API when necessary.
*/
class VsCodeContextImpl {
contextMap: { [key: string]: any } = {};

public async Set(key: string, value: any): Promise<void> {
Expand Down

0 comments on commit 85bd93c

Please sign in to comment.