Skip to content

Commit 85a9e9a

Browse files
committed
Merge branch 'release/1.48' into isidorn/bump-version
2 parents cefb976 + 880811b commit 85a9e9a

File tree

8 files changed

+11
-32
lines changed

8 files changed

+11
-32
lines changed

build/gulpfile.vscode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const vscodeResources = [
7979
'out-build/vs/code/electron-browser/sharedProcess/sharedProcess.js',
8080
'out-build/vs/code/electron-sandbox/issue/issueReporter.js',
8181
'out-build/vs/code/electron-sandbox/processExplorer/processExplorer.js',
82-
'out-build/vs/platform/auth/common/auth.css',
82+
'out-build/vs/code/electron-sandbox/proxy/auth.js',
8383
'!**/test/**'
8484
];
8585

extensions/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
{
5757
"id": "npm",
5858
"name": "%view.name%",
59-
"when": "npm:showScriptExplorer",
6059
"icon": "images/code.svg",
6160
"visibility": "hidden"
6261
}
@@ -237,6 +236,7 @@
237236
"type": "boolean",
238237
"default": false,
239238
"scope": "resource",
239+
"deprecationMessage": "The NPM Script Explorer is now available in the 'Views' menu in the Explorer in all folders.",
240240
"description": "%config.npm.enableScriptExplorer%"
241241
},
242242
"npm.enableRunFromFolder": {

extensions/npm/src/npmMain.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as vscode from 'vscode';
88
import { addJSONProviders } from './features/jsonContributions';
99
import { runSelectedScript, selectAndRunScriptFromFolder } from './commands';
1010
import { NpmScriptsTreeDataProvider } from './npmView';
11-
import { invalidateTasksCache, NpmTaskProvider, hasPackageJson } from './tasks';
11+
import { invalidateTasksCache, NpmTaskProvider } from './tasks';
1212
import { invalidateHoverScriptsCache, NpmScriptHoverProvider } from './scriptHover';
1313

1414
let treeDataProvider: NpmScriptsTreeDataProvider | undefined;
@@ -44,11 +44,6 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
4444
registerHoverProvider(context);
4545

4646
context.subscriptions.push(vscode.commands.registerCommand('npm.runSelectedScript', runSelectedScript));
47-
48-
if (await hasPackageJson()) {
49-
vscode.commands.executeCommand('setContext', 'npm:showScriptExplorer', true);
50-
}
51-
5247
context.subscriptions.push(vscode.commands.registerCommand('npm.runScriptFromFolder', selectAndRunScriptFromFolder));
5348
}
5449

extensions/npm/src/tasks.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -311,22 +311,6 @@ export function getPackageJsonUriFromTask(task: Task): Uri | null {
311311
return null;
312312
}
313313

314-
export async function hasPackageJson(): Promise<boolean> {
315-
let folders = workspace.workspaceFolders;
316-
if (!folders) {
317-
return false;
318-
}
319-
for (const folder of folders) {
320-
if (folder.uri.scheme === 'file') {
321-
let packageJson = path.join(folder.uri.fsPath, 'package.json');
322-
if (await exists(packageJson)) {
323-
return true;
324-
}
325-
}
326-
}
327-
return false;
328-
}
329-
330314
async function exists(file: string): Promise<boolean> {
331315
return new Promise<boolean>((resolve, _reject) => {
332316
fs.exists(file, (value) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "code-oss-dev",
33
"version": "1.48.1",
4-
"distro": "db6c4e7925a5077a6e61690a057fa6cf139e0e49",
4+
"distro": "ffb610b4929b3e94a5827ba9a35981961602fa6d",
55
"author": {
66
"name": "Microsoft Corporation"
77
},

src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26062606
}
26072607
if (buildTasks.length === 1) {
26082608
this.tryResolveTask(buildTasks[0]).then(resolvedTask => {
2609-
this.run(resolvedTask).then(undefined, reason => {
2609+
this.run(resolvedTask, undefined, TaskRunSource.User).then(undefined, reason => {
26102610
// eat the error, it has already been surfaced to the user and we don't care about it here
26112611
});
26122612
});
@@ -2617,7 +2617,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26172617
if (tasks.length > 0) {
26182618
let { defaults, users } = this.splitPerGroupType(tasks);
26192619
if (defaults.length === 1) {
2620-
this.run(defaults[0]).then(undefined, reason => {
2620+
this.run(defaults[0], undefined, TaskRunSource.User).then(undefined, reason => {
26212621
// eat the error, it has already been surfaced to the user and we don't care about it here
26222622
});
26232623
return;
@@ -2641,7 +2641,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26412641
this.runConfigureDefaultBuildTask();
26422642
return;
26432643
}
2644-
this.run(task, { attachProblemMatcher: true }).then(undefined, reason => {
2644+
this.run(task, { attachProblemMatcher: true }, TaskRunSource.User).then(undefined, reason => {
26452645
// eat the error, it has already been surfaced to the user and we don't care about it here
26462646
});
26472647
});
@@ -2667,7 +2667,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26672667
if (tasks.length > 0) {
26682668
let { defaults, users } = this.splitPerGroupType(tasks);
26692669
if (defaults.length === 1) {
2670-
this.run(defaults[0]).then(undefined, reason => {
2670+
this.run(defaults[0], undefined, TaskRunSource.User).then(undefined, reason => {
26712671
// eat the error, it has already been surfaced to the user and we don't care about it here
26722672
});
26732673
return;
@@ -2691,7 +2691,7 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
26912691
this.runConfigureTasks();
26922692
return;
26932693
}
2694-
this.run(task).then(undefined, reason => {
2694+
this.run(task, undefined, TaskRunSource.User).then(undefined, reason => {
26952695
// eat the error, it has already been surfaced to the user and we don't care about it here
26962696
});
26972697
});

src/vs/workbench/contrib/webview/browser/pre/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
}, 0);
515515
}
516516

517-
if (host.fakeLoad) {
517+
if (host.fakeLoad && false) {
518518
// On Safari for iframes with scripts disabled, the `DOMContentLoaded` never seems to be fired.
519519
// Use polling instead.
520520
const interval = setInterval(() => {

src/vs/workbench/services/textfile/electron-browser/nativeTextFileService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export class NativeTextFileService extends AbstractTextFileService {
126126
}
127127

128128
try {
129-
return super.write(resource, value, options);
129+
return await super.write(resource, value, options);
130130
} catch (error) {
131131

132132
// In case of permission denied, we need to check for readonly

0 commit comments

Comments
 (0)