Skip to content

Commit

Permalink
Merge pull request #300 from wakatime/bugfix/hide-vscode
Browse files Browse the repository at this point in the history
Hide IDEs with plugins from Monitored Apps list
  • Loading branch information
alanhamlett authored Aug 22, 2024
2 parents d3ee122 + d007f48 commit 3f8985e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WakaTime/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, StatusBarDelegate {
}

let time = Int(NSDate().timeIntervalSince1970)
guard lastTodayTime + 300 < time else {
guard lastTodayTime + 60 < time else {
setText(lastTodayText)
return
}
Expand Down
35 changes: 34 additions & 1 deletion WakaTime/Watchers/MonitoredApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,41 @@ enum MonitoredApp: String, CaseIterable {

// Hide these from the Monitored Apps menu
static let unsupportedAppIds = [
"macos-wakatime.WakaTime",
"aptana.studio",
"com.apple.finder",
"com.google.android.studio",
"com.jetbrains.CLion",
"com.jetbrains.DataSpell",
"com.jetbrains.PhpStorm",
"com.jetbrains.PyCharm",
"com.jetbrains.RubyMine",
"com.jetbrains.RustRover",
"com.jetbrains.WebStorm",
"com.jetbrains.goland",
"com.jetbrains.intellij",
"com.jetbrains.intellij.ce",
"com.jetbrains.pycharm.ce",
"com.jetbrains.rider",
"com.microsoft.VSCode",
"com.microsoft.VSCodeInsiders",
"com.sublimetext.2",
"com.sublimetext.3",
"com.sublimetext.4",
"com.visualstudio.code.oss",
"com.vscodium",
"epp.package.committers",
"epp.package.cpp",
"epp.package.dsl",
"epp.package.embedcpp",
"epp.package.java",
"epp.package.jee",
"epp.package.modeling",
"epp.package.parallel",
"epp.package.php",
"epp.package.rcp",
"epp.package.scout",
"macos-wakatime.WakaTime",
"org.vim.MacVim",
]

static var allBundleIds: [String] {
Expand Down

0 comments on commit 3f8985e

Please sign in to comment.