Skip to content

Commit 6e5e6d9

Browse files
authored
Merge branch 'master' into useAnOutputChannel
2 parents 6a7f1ee + 397c37d commit 6e5e6d9

File tree

2 files changed

+10
-27
lines changed

2 files changed

+10
-27
lines changed

Jenkinsfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,18 @@ node('rhel8'){
4545
input message:'Approve deployment?', submitter: 'jpinkney'
4646
}
4747

48-
stage "Publish to Marketplace"
48+
stage "Publish to Marketplaces"
4949
unstash 'vsix';
50+
def vsix = findFiles(glob: '**.vsix')
51+
// VS Code Marketplace
5052
withCredentials([[$class: 'StringBinding', credentialsId: 'vscode_java_marketplace', variable: 'TOKEN']]) {
51-
def vsix = findFiles(glob: '**.vsix')
5253
sh 'vsce publish -p ${TOKEN} --packagePath' + " ${vsix[0].path}"
5354
}
55+
56+
// Open-vsx Marketplace
57+
sh "npm install -g ovsx"
58+
withCredentials([[$class: 'StringBinding', credentialsId: 'open-vsx-access-token', variable: 'OVSX_TOKEN']]) {
59+
sh 'ovsx publish -p ${OVSX_TOKEN}' + " ${vsix[0].path}"
60+
}
5461
archive includes:"**.vsix"
5562
}

test/schemaProvider.test.ts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import * as vscode from 'vscode';
77
import { getDocUri, activate, testCompletion, testHover, testDiagnostics, sleep } from './helper';
8+
import { Uri } from 'vscode';
89

910
describe('Tests for schema provider feature', () => {
1011
const docUri = getDocUri('completion/completion.yaml');
@@ -133,23 +134,6 @@ describe('Tests for schema provider feature', () => {
133134
}
134135
]
135136
});
136-
});
137-
138-
it('Multiple contributors with one throwing an error', async () => {
139-
const client = await activate(docUri);
140-
client._customSchemaContributors = {};
141-
client.registerContributor(SCHEMA2, onRequestSchema2URI, onRequestSchema2Content);
142-
client.registerContributor("schemathrowingerror", onRequestSchemaURIThrowError, onRequestSchemaContentThrowError);
143-
144-
await testCompletion(docUri, new vscode.Position(0, 0), {
145-
items: [
146-
{
147-
label: "apple",
148-
kind: 9,
149-
documentation: "An apple"
150-
}
151-
]
152-
});
153137
});
154138
});
155139

@@ -177,14 +161,6 @@ function onRequestSchema1URI(resource: string): string | undefined {
177161
return undefined;
178162
}
179163

180-
function onRequestSchemaURIThrowError(resource: string): string | undefined {
181-
throw new Error('test what happens when an error is trhown and not caught');
182-
}
183-
184-
function onRequestSchemaContentThrowError(schemaUri: string): string | undefined {
185-
throw new Error('test what happens when an error is trhown and not caught');
186-
}
187-
188164
function onRequestSchema1Content(schemaUri: string): string | undefined {
189165
return schemaJSON;
190166
}

0 commit comments

Comments
 (0)