- package: tis-vscode
- name: Visual Studio Code
- version: 1.101.1-42
- 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: 108.61 Mo
- installed_size: 415.31 Mo
- homepage : https://code.visualstudio.com/
package : tis-vscode
version : 1.101.1-42
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 : PROD
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 : f8b6244f-2201-40c3-bc0f-11a840acd32a
valid_from :
valid_until :
forced_install_on :
changelog : https://code.visualstudio.com/updates
min_os_version :
max_os_version :
icon_sha256sum : 50b90b0ed98d91261db603bf1d2f762c0912d9f615961b92af1e483fbd129aa7
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-06-23T18:03:04.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 : ZtDPwybPgwjwwMkuVmwzjAthN07G6Hd1pbTxJAcs4z1eBFetmjwwYnUaWnpDBaNSLXO13iAJA1fw1aRUqwkqYy5ABDxET4V/l4Og+nAvdpq89EO6xKNCHkz5PPlLUHmnB82YStXV2edSQMutcPj5JLBUg+muhu5sSRCG9Q0F2JPCdbslPaSDnk/O9Z5sLHxITA3osP56cCZTNP/jhSgJCJSPYQ159xaU8/WMv5Y11zY5VMVKKljpn/qV8SPaZn1QsEiEQtCv2r7YZ6C6X1MeZnLNb30qPWsikycOfg05qBSWhGxKNrTmm0GkmZN17H7FnVwd61ZuHlDVggqjYTj7Tw==
# -*- 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"
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*%s*.deb" % bin_contains)[0]
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
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
97f0c9bd95b7fb123678f2810a5e5fb9b9f43de3a9dd6027f15dc1dbf6db3f48 : WAPT/control
50b90b0ed98d91261db603bf1d2f762c0912d9f615961b92af1e483fbd129aa7 : WAPT/icon.png
e1f65b55302c3e81af5102ec291cd8f71ea25fbc4259f24772fd57ccc7810871 : code_1.101.1_x64.deb
f30f7944765606a6a09561ff24d947ff9f714f92a22b51aa651de5b6979bd54e : luti.json
d16150fac16a51eac7807059f27dbf8b91e3483230530d4b6be75c442be27587 : setup.py
77ffdc48a497fbc14eb021df890468aefe190cb6bec53511588b18ac553a0c63 : update_package.py