mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
cli: when attaching, always print the connection link (#178445)
Fixes #178090
This commit is contained in:
@@ -10,13 +10,13 @@ use opentelemetry::{
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt;
|
||||
use std::{env, path::Path, sync::Arc};
|
||||
use std::{
|
||||
io::Write,
|
||||
sync::atomic::{AtomicU32, Ordering},
|
||||
};
|
||||
use std::{path::Path, sync::Arc};
|
||||
|
||||
const NO_COLOR_ENV: &str = "NO_COLOR";
|
||||
use crate::constants::COLORS_ENABLED;
|
||||
|
||||
static INSTANCE_COUNTER: AtomicU32 = AtomicU32::new(0);
|
||||
|
||||
@@ -71,7 +71,7 @@ impl Level {
|
||||
}
|
||||
|
||||
pub fn color_code(&self) -> Option<&str> {
|
||||
if env::var(NO_COLOR_ENV).is_ok() || !atty::is(atty::Stream::Stdout) {
|
||||
if !*COLORS_ENABLED {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user