зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1720308 - Support VSCode installed as a snap package on Linux. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D119769
This commit is contained in:
Родитель
a639abe1b3
Коммит
0132f4c4df
|
@ -13,11 +13,7 @@ from mozbuild.base import MachCommandBase
|
|||
from mozbuild.build_commands import Build
|
||||
|
||||
from mozfile import which
|
||||
from mach.decorators import (
|
||||
CommandArgument,
|
||||
CommandProvider,
|
||||
Command,
|
||||
)
|
||||
from mach.decorators import CommandArgument, CommandProvider, Command
|
||||
|
||||
import mozpack.path as mozpath
|
||||
|
||||
|
@ -119,6 +115,8 @@ class MachCommands(MachCommandBase):
|
|||
|
||||
if "linux" in self.platform[0]:
|
||||
cmd_and_path = [
|
||||
{"path": "/usr/local/bin/code", "cmd": ["/usr/local/bin/code"]},
|
||||
{"path": "/snap/bin/code", "cmd": ["/snap/bin/code"]},
|
||||
{"path": "/usr/bin/code", "cmd": ["/usr/bin/code"]},
|
||||
{"path": "/usr/bin/code-insiders", "cmd": ["/usr/bin/code-insiders"]},
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче