Skip to content

Commit fa388cc

Browse files
authored
Fix Proposed API checks (#828)
1 parent dad2cc1 commit fa388cc

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [1.4.1] 14-Jan-2022
4+
- Fixes
5+
- Version 1.4.0 is failing to activate (#827)
6+
37
## [1.4.0] 14-Jan-2022
48
- Enhancements
59
- Make `Ctrl / Cmd+T` lookup (Open Symbol by Name) check all servers connected to a multi-root workspace (#815)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ To unlock these features (optional):
5656

5757
1. Download and install a beta version from GitHub. This is necessary because Marketplace does not allow publication of extensions that use proposed APIs.
5858
- Go to https://github.com/intersystems-community/vscode-objectscript/releases
59-
- Locate the beta immediately above the release you installed from Marketplace. For instance, if you installed `1.4.0`, look for `1.4.1-beta.1`. This will be functionally identical to the Marketplace version apart from being able to use proposed APIs.
60-
- Download the VSIX file (for example `vscode-objectscript-1.4.1-beta.1.vsix`) and install it. One way to install a VSIX is to drag it from your download folder and drop it onto the list of extensions in the Extensions view of VS Code.
59+
- Locate the beta immediately above the release you installed from Marketplace. For instance, if you installed `1.4.1`, look for `1.4.2-beta.1`. This will be functionally identical to the Marketplace version apart from being able to use proposed APIs.
60+
- Download the VSIX file (for example `vscode-objectscript-1.4.2-beta.1.vsix`) and install it. One way to install a VSIX is to drag it from your download folder and drop it onto the list of extensions in the Extensions view of VS Code.
6161

6262
2. From [Command Palette](https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_command-palette) choose `Preferences: Configure Runtime Arguments`.
6363
3. In the argv.json file that opens, add this line (required for both Stable and Insiders versions of VS Code):

src/extension.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,18 +636,22 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
636636

637637
// Gather the proposed APIs we will register to use when building with enabledApiProposals != []
638638
const proposed = [
639+
typeof packageJson.enabledApiProposals === "object" &&
639640
packageJson.enabledApiProposals.includes("fileSearchProvider") &&
640641
typeof vscode.workspace.registerFileSearchProvider === "function"
641642
? vscode.workspace.registerFileSearchProvider(FILESYSTEM_SCHEMA, new FileSearchProvider())
642643
: null,
644+
typeof packageJson.enabledApiProposals === "object" &&
643645
packageJson.enabledApiProposals.includes("fileSearchProvider") &&
644646
typeof vscode.workspace.registerFileSearchProvider === "function"
645647
? vscode.workspace.registerFileSearchProvider(FILESYSTEM_READONLY_SCHEMA, new FileSearchProvider())
646648
: null,
649+
typeof packageJson.enabledApiProposals === "object" &&
647650
packageJson.enabledApiProposals.includes("textSearchProvider") &&
648651
typeof vscode.workspace.registerTextSearchProvider === "function"
649652
? vscode.workspace.registerTextSearchProvider(FILESYSTEM_SCHEMA, new TextSearchProvider())
650653
: null,
654+
typeof packageJson.enabledApiProposals === "object" &&
651655
packageJson.enabledApiProposals.includes("textSearchProvider") &&
652656
typeof vscode.workspace.registerTextSearchProvider === "function"
653657
? vscode.workspace.registerTextSearchProvider(FILESYSTEM_READONLY_SCHEMA, new TextSearchProvider())

0 commit comments

Comments
 (0)