mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
add vscode.env.appRoot
This commit is contained in:
@@ -12,6 +12,7 @@ suite('env-namespace', () => {
|
||||
|
||||
test('env is set', function () {
|
||||
assert.equal(typeof env.language, 'string');
|
||||
assert.equal(typeof env.appRoot, 'string');
|
||||
assert.equal(typeof env.appName, 'string');
|
||||
assert.equal(typeof env.machineId, 'string');
|
||||
assert.equal(typeof env.sessionId, 'string');
|
||||
@@ -19,9 +20,10 @@ suite('env-namespace', () => {
|
||||
|
||||
test('env is readonly', function () {
|
||||
assert.throws(() => env.language = '234');
|
||||
assert.throws(() => env.appRoot = '234');
|
||||
assert.throws(() => env.appName = '234');
|
||||
assert.throws(() => env.machineId = '234');
|
||||
assert.throws(() => env.sessionId = '234');
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user