mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Fix misspelling of parameters
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) };
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user