Fix misspelling of parameters

This commit is contained in:
Logan Ramos
2021-07-14 10:48:12 -04:00
parent 6b2802c41c
commit 63fad00228
4 changed files with 6 additions and 6 deletions

View File

@@ -64,7 +64,7 @@
"body": [ "body": [
"* @param ${1:Type} ${2:var} ${3:Description}$0" "* @param ${1:Type} ${2:var} ${3:Description}$0"
], ],
"description": "Paramater documentation" "description": "Parameter documentation"
}, },
"function …": { "function …": {
"prefix": "fun", "prefix": "fun",

View File

@@ -79,7 +79,7 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget {
})); }));
} }
private createParamaterHintDOMNodes() { private createParameterHintDOMNodes() {
const element = $('.editor-widget.parameter-hints-widget'); const element = $('.editor-widget.parameter-hints-widget');
const wrapper = dom.append(element, $('.phwrapper')); const wrapper = dom.append(element, $('.phwrapper'));
wrapper.tabIndex = -1; wrapper.tabIndex = -1;
@@ -150,7 +150,7 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget {
} }
if (!this.domNodes) { if (!this.domNodes) {
this.createParamaterHintDOMNodes(); this.createParameterHintDOMNodes();
} }
this.keyVisible.set(true); this.keyVisible.set(true);
@@ -352,7 +352,7 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget {
getDomNode(): HTMLElement { getDomNode(): HTMLElement {
if (!this.domNodes) { if (!this.domNodes) {
this.createParamaterHintDOMNodes(); this.createParameterHintDOMNodes();
} }
return this.domNodes!.element; return this.domNodes!.element;
} }

View File

@@ -608,7 +608,7 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
const path = resource ? resource.scheme === Schemas.file ? resource.fsPath : resource.path : undefined; const path = resource ? resource.scheme === Schemas.file ? resource.fsPath : resource.path : undefined;
if (resource && path) { if (resource && path) {
let resourceExt = extname(resource); let resourceExt = extname(resource);
// Remove query paramaters from the resource extension // Remove query parameters from the resource extension
const queryStringLocation = resourceExt.indexOf('?'); const queryStringLocation = resourceExt.indexOf('?');
resourceExt = queryStringLocation !== -1 ? resourceExt.substr(0, queryStringLocation) : resourceExt; resourceExt = queryStringLocation !== -1 ? resourceExt.substr(0, queryStringLocation) : resourceExt;
descriptor['resource'] = { mimeType: guessMimeTypes(resource).join(', '), scheme: resource.scheme, ext: resourceExt, path: hash(path) }; descriptor['resource'] = { mimeType: guessMimeTypes(resource).join(', '), scheme: resource.scheme, ext: resourceExt, path: hash(path) };

View File

@@ -195,7 +195,7 @@ export class TelemetryContribution extends Disposable implements IWorkbenchContr
private getTelemetryData(resource: URI, reason?: number): TelemetryData { private getTelemetryData(resource: URI, reason?: number): TelemetryData {
let ext = extname(resource); let ext = extname(resource);
// Remove query paramaters from the resource extension // Remove query parameters from the resource extension
const queryStringLocation = ext.indexOf('?'); const queryStringLocation = ext.indexOf('?');
ext = queryStringLocation !== -1 ? ext.substr(0, queryStringLocation) : ext; ext = queryStringLocation !== -1 ? ext.substr(0, queryStringLocation) : ext;
const fileName = basename(resource); const fileName = basename(resource);