Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/commands/add.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as vscode from "vscode"
import { tf } from "../tfs/tfExe"
import * as os from "os"

export async function add(uri: vscode.Uri): Promise<void> {
const task = tf(["add", uri.fsPath, "/recursive"])
const prefix = os.platform() === "linux" ? "-" : "/" // ’darwin’, ‘freebsd’, ‘linux’, ‘sunos’ , ‘win32’
const task = tf(["add", uri.fsPath, `${prefix}recursive`])

vscode.window.setStatusBarMessage("TFS: Adding...", task)
await task
Expand Down
4 changes: 3 additions & 1 deletion src/commands/checkin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as vscode from "vscode"
import { tf } from "../tfs/tfExe"
import * as os from "os"

export async function checkin(uri: vscode.Uri): Promise<void> {
const task = tf(["checkin", uri.fsPath, "/recursive"])
const prefix = os.platform() === "linux" ? "-" : "/"
const task = tf(["checkin", uri.fsPath, `${prefix}recursive`])

vscode.window.setStatusBarMessage("TFS: Checking In...", task)
const { stdout } = await task
Expand Down
4 changes: 3 additions & 1 deletion src/commands/checkout.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as vscode from "vscode"
import { tf } from "../tfs/tfExe"
import * as os from "os"

export async function checkout(uri: vscode.Uri): Promise<void> {
const task = tf(["checkout", uri.fsPath, "/recursive"])
const prefix = os.platform() === "linux" ? "-" : "/" // ’darwin’, ‘freebsd’, ‘linux’, ‘sunos’ , ‘win32’
const task = tf(["checkout", uri.fsPath, `${prefix}recursive`])

vscode.window.setStatusBarMessage("TFS: Checking...", task)
await task
Expand Down
4 changes: 3 additions & 1 deletion src/commands/delete.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as vscode from "vscode"
import { tf } from "../tfs/tfExe"
import * as os from "os"

export async function del(uri: vscode.Uri): Promise<void> {
const task = tf(["delete", uri.fsPath, "/recursive"])
const prefix = os.platform() === "linux" ? "-" : "/" // ’darwin’, ‘freebsd’, ‘linux’, ‘sunos’ , ‘win32’
const task = tf(["delete", uri.fsPath, `${prefix}recursive`])

vscode.window.setStatusBarMessage("TFS: Deleting...", task)
await task
Expand Down
4 changes: 3 additions & 1 deletion src/commands/get.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as vscode from "vscode"
import { tf } from "../tfs/tfExe"
import * as os from "os"

export async function get(uri: vscode.Uri): Promise<void> {
const task = tf(["get", uri.fsPath, "/recursive"])
const prefix = os.platform() === "linux" ? "-" : "/" // ’darwin’, ‘freebsd’, ‘linux’, ‘sunos’ , ‘win32’
const task = tf(["get", uri.fsPath, `${prefix}recursive`])

vscode.window.setStatusBarMessage("TFS: Getting latest version...", task)
await task
Expand Down
4 changes: 3 additions & 1 deletion src/commands/undo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import * as vscode from "vscode"
import { tf } from "../tfs/tfExe"
import * as os from "os"

export async function undo(uri: vscode.Uri): Promise<void> {
const task = tf(["undo", uri.fsPath, "/recursive"])
const prefix = os.platform() === "linux" ? "-" : "/" // ’darwin’, ‘freebsd’, ‘linux’, ‘sunos’ , ‘win32’
const task = tf(["undo", uri.fsPath, `${prefix}recursive`])

vscode.window.setStatusBarMessage("TFS: Undoing...", task)
await task
Expand Down