tis-vscode icon

Visual Studio Code

Paquet d’installation silencieuse pour Visual Studio Code

1.110.1-43
Development
Development

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-vscode
  • name: Visual Studio Code
  • version: 1.110.1-43
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
  • editor: Microsoft
  • licence: MIT,TypeScript
  • locale: all
  • target_os: debian(>=12),ubuntu(>=20)
  • impacted_process: Code,code
  • architecture: x64
  • signature_date:
  • size: 121.95 Mo
  • installed_size: 415.31 Mo
  • homepage : https://code.visualstudio.com/

package           : tis-vscode
version           : 1.110.1-43
architecture      : x64
section           : base
priority          : optional
name              : Visual Studio Code
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Jordan ARNAUD
description       : Visual Studio Code is a source-code editor developed by Microsoft
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : all
target_os         : debian(>=12),ubuntu(>=20)
min_wapt_version  : 2.3
sources           : https://code.visualstudio.com/Download
installed_size    : 415312378
impacted_process  : Code,code
description_fr    : Visual Studio Code est un éditeur de code extensible développé par Microsoft
description_pl    : Visual Studio Code to edytor kodu źródłowego opracowany przez firmę Microsoft
description_de    : Visual Studio Code ist ein von Microsoft entwickelter Quellcode-Editor
description_es    : Visual Studio Code es un editor de código fuente desarrollado por Microsoft
description_pt    : Visual Studio Code é um editor de código-fonte desenvolvido pela Microsoft
description_it    : Visual Studio Code è un editor di codice sorgente sviluppato da Microsoft
description_nl    : Visual Studio Code is een broncode-editor ontwikkeld door Microsoft
description_ru    : Visual Studio Code - это редактор исходного кода, разработанный компанией Microsoft
audit_schedule    : 
editor            : Microsoft
keywords          : visual,studio,code,vs,vscode,editor,debugger
licence           : MIT,TypeScript
homepage          : https://code.visualstudio.com/
package_uuid      : 45bf4127-ebf8-42db-ab23-d32bb9034105
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://code.visualstudio.com/updates
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 50b90b0ed98d91261db603bf1d2f762c0912d9f615961b92af1e483fbd129aa7
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-03-07T01:30:32.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : OyGlUm2vV51zlpKZBcJyx6FGAjnjOYhrSWj/YcuuCodbyQiY9KhgpTIgBa1OULlyWeCye3fIPZmjDzblFtbM3AE/lKSCKK8efkEHH1/dSg2/yAKQ/qBqVTajcAXnfkvYdML6DwhGrP9fgB2cPkpT7npe/z/y2QLCmQODzcJswEnTczZkzth/RdgXVjxa2oC8rqK6eoqLBa5p96Gadu5RknZw4fBAe6ZtxugPZNvUckc3Cj0nmi7A8TIghktGq1skB+fV3SSC1/kGgHLb0ZY+IMoeHV5nt9SF0cjwaNIxLaY90vRJJ1dfAbnevjH+/i8LQYArXQHamyezX78XtwDo5Q==

# -*- coding: utf-8 -*-
from setuphelpers import *
import json


# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "code_"
package_name = "code"
app_dist_source_path = "/etc/apt/sources.list.d/vscode.list"

if is_debian() and Version(get_debian_version()) >= Version("13"):
    app_dist_source_path = "/etc/apt/sources.list.d/vscode.sources"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.deb" % bin_contains)[0]
    
    # Deleting the distribution source file of the application
    if isfile(app_dist_source_path):
        print("Removing: %s" % app_dist_source_path)
        remove_file(app_dist_source_path)

    update_apt()

    # Installing the software
    print("Installing: %s" % bin_name)
    install_deb(bin_name)

    # Deleting the distribution source file of the application
    if isfile(app_dist_source_path):
        print("Removing: %s" % app_dist_source_path)
        remove_file(app_dist_source_path)


def uninstall():
    # Uninstalling the package
    print("Uninstalling: %s" % package_name)
    uninstall_apt(package_name)


def session_setup():
    print("Disabling: Telemetry, automatic updates, surveys")

    # Configuration procedure: https://supunkavinda.blog/vscode-editing-settings-json
    # C:\Users\username\AppData\Roaming\Code\User\settings.json

    # Initializing variables
    user_conf_dir = makepath(user_home_directory(), ".config", "Code", "User")
    user_conf_file = makepath(user_conf_dir, "settings.json")
    user_conf_content = r"""{
    "update.mode": "none",
    "update.enableWindowsBackgroundUpdates": false,
    "update.showReleaseNotes": false,
    "telemetry.telemetryLevel": "off",
    "typescript.surveys.enabled": false,
    "extensions.autoCheckUpdates": false,
    "extensions.autoUpdate": false
}"""
    user_conf_data = json.loads(user_conf_content.strip(","))
    if not isdir(user_conf_dir):
        mkdirs(user_conf_dir)
    if not isfile(user_conf_file):
        print("Creating: %s" % user_conf_file)
        json_write_file(user_conf_file, user_conf_data)
    else:
        new_user_conf_data = json_load_file(user_conf_file)
        new_user_conf_data.update(user_conf_data)
        print("Updating: %s" % user_conf_file)
        json_write_file(user_conf_file, new_user_conf_data)

# -*- coding: utf-8 -*-
from setuphelpers import *
import json


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    arch = control.architecture
    api_url = "https://api.github.com/repos/microsoft/vscode/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    version = json_load["tag_name"]
    download_url = f"https://update.code.visualstudio.com/{version}/linux-deb-x64/stable"
    latest_bin = f"code_{version}_{arch}.deb"

    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
977fca73925e8efd495d83b9f25ec49026b2e7a4458138dcb0945c3c97c21b95 : WAPT/control
50b90b0ed98d91261db603bf1d2f762c0912d9f615961b92af1e483fbd129aa7 : WAPT/icon.png
3ac2331429e21b4e889de096a131d1fd0370ee0b24ea63e65434d1ee5537e251 : code_1.110.1_x64.deb
30874b6e9dc47e7aa0ee0cd15a9957c69a1424fba0450984ee4c8acea6494a15 : luti.json
e327ca5ffad23d46dca858864012effe3eceb56e4ef15845f2eb3c3392f66674 : setup.py
77ffdc48a497fbc14eb021df890468aefe190cb6bec53511588b18ac553a0c63 : update_package.py