Skip to content

Commit

Permalink
Finalize read-only message file system provider API
Browse files Browse the repository at this point in the history
Part of #166971
  • Loading branch information
alexr00 committed Jan 11, 2024
1 parent b8baf8e commit c6f31a6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/vs/workbench/api/common/extHostFileSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ export class ExtHostFileSystem implements ExtHostFileSystemShape {

let readOnlyMessage: IMarkdownString | undefined;
if (options.isReadonly && isMarkdownString(options.isReadonly)) {
checkProposedApiEnabled(extension, 'readonlyMessage');
readOnlyMessage = {
value: options.isReadonly.value,
isTrusted: options.isReadonly.isTrusted,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export const allApiProposals = Object.freeze({
quickDiffProvider: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickDiffProvider.d.ts',
quickPickItemTooltip: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts',
quickPickSortByLabel: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts',
readonlyMessage: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.readonlyMessage.d.ts',
resolvers: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.resolvers.d.ts',
scmActionButton: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmActionButton.d.ts',
scmHistoryProvider: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts',
Expand Down
3 changes: 2 additions & 1 deletion src/vscode-dts/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13635,8 +13635,9 @@ declare module 'vscode' {
readonly isCaseSensitive?: boolean;
/**
* Whether the file system provider is readonly, no modifications like write, delete, create are possible.
* If a {@link MarkdownString} is given, it will be shown as the reason why the file system is readonly.
*/
readonly isReadonly?: boolean;
readonly isReadonly?: boolean | MarkdownString;
}): Disposable;

/**
Expand Down
14 changes: 0 additions & 14 deletions src/vscode-dts/vscode.proposed.readonlyMessage.d.ts

This file was deleted.

0 comments on commit c6f31a6

Please sign in to comment.